|
[Sponsors] |
Automatic time step adjustment in channelOodles |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 6, 2005, 06:08 |
Hi,
Is the automatic time s
|
#1 |
Senior Member
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18 |
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. |
|
October 6, 2005, 06:40 |
Putting stuff into the diction
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,906
Rep Power: 33 |
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 |
|
October 6, 2005, 11:04 |
Thanks. It worked!
|
#3 |
Senior Member
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18 |
Thanks. It worked!
|
|
May 9, 2009, 05:11 |
|
#4 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
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!" |
|
May 13, 2009, 10:47 |
|
#5 | |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Quote:
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;
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Time step size and max iterations per time step | pUl| | FLUENT | 31 | 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 |