CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Automatic time step adjustment in channelOodles

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2005, 06:08
Default Hi, Is the automatic time s
  #1
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
Hi,

Is the automatic time step adjustment available in channelOodles or it is just in interFoam. I ran the following setup to see the feature but it did not work. I need this option in a solver that I write which is a variant of channelOoles. Here is system/controlDict. Thanks!

---------------------------
application channelOodles;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 1;

deltaT 0.2;

writeControl timeStep;

writeInterval 200;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression uncompressed;

timeFormat general;

timePrecision 6;

runTimeModifiable yes;

// automatic time step

adjustTimeStep yes;

maxCo 0.1;

maxDeltaT 1;


thanks.
maka is offline   Reply With Quote

Old   October 6, 2005, 06:40
Default Putting stuff into the diction
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Putting stuff into the dictionary without having the code read it will not help you much :-)

No, chanelOodles does not have the time-step control built in, but you can easily do it yourself:

1) go to interFoam have a look how time-step control is done:

...
# include "readTimeControls.H"
# include "setInitialDeltaT.H"
...

while (runTime.run())
{
...
# include "readTimeControls.H"
# include "CourantNo.H"
# include "setDeltaT.H"

runTime++;

Info<< "Time = " << runTime.timeName() << nl << endl;

2) make a copy of the solver you want to change and replace the time loop with the similar stuff
3) adjust include paths (looking at interFoam as an example), compile and fix any compilation problems you hit
4) done!

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   October 6, 2005, 11:04
Default Thanks. It worked!
  #3
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
Thanks. It worked!
maka is offline   Reply With Quote

Old   May 9, 2009, 05:11
Default
  #4
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Can you post your code for channelOodles with additonal time step control.
I'm currently facing a similar problem.
I have to ensure an upper limit for the Courant-Number, but need to save computational time, so maximum timestep for the given maxCo is the goal!
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   May 13, 2009, 10:47
Default
  #5
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Quote:
Originally Posted by sega View Post
Can you post your code for channelOodles with additonal time step control.
Well, just to complete my own question for all the followers to read this thread.
It's basically copy & past of the stuff Hrvoje wrote above.
Additionally you have to put the three lines
Code:
adjustTimeStep  yes;
maxCo           0.3;
maxDeltaT       1;
into your controlDict! Thats it and have fun!
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time step size and max iterations per time step pUl| FLUENT 33 October 23, 2020 22:50
SELECTING TIME STEP SIZE, NUMBER OF TIME STEP NITUL KALITA FLUENT 2 November 22, 2012 08:28
Is there a way to write the time step size, time a may FLUENT 6 November 22, 2009 11:52
Long time CHT transient simulation time step.... JP CFX 0 May 9, 2008 03:36
Relation of computational time step with real time Salman Main CFD Forum 2 August 3, 2005 14:13


All times are GMT -4. The time now is 06:12.