CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Time control (https://www.cfd-online.com/Forums/openfoam-solving/58851-time-control.html)

sunnysun June 2, 2008 05:17

Hi,everyone, After I runni
 
Hi,everyone,

After I running a solver, I got 'T' for each timestep, then I manage to run another sover based on T in each time step. Although I set start time to be zero and endtime to be 50, time step is 0.5 in controlDict, it always runs from t=50s, anybody know why this is happening?

Thanks,
Vivien

dmoroian June 2, 2008 05:23

Hi Vivien, What does it say t
 
Hi Vivien,
What does it say the startFrom variable in your system/controlDict file?

In my case I have:
startFrom latestTime;
which basically says "start from the last time you find in the case directory".
So, if you have something similar, and your last time directory is 50, than it should start from 50s.
If you want to change it, replace latestTime with the time you want, 0 for instance.

I hope this is helpful,
Dragos

olesen June 2, 2008 05:28

After running the solver, you
 
After running the solver, you have the results. You can continue calculating with the same solver, or a new solver, from a particular time
controlDict> startFrom (startTime | firstTime | latestTime)

If you want, you can also post-process each of the time results with your own utility. If you wish to somehow use your temperature results for a second solver, you'll need to move the old results out of the way (so they aren't overwritten), restart from time=0 and have a time-varying boundary condition or some other field that uses the previously calculated temperatures.

sunnysun June 2, 2008 05:55

Hi, I see what is going wrong.
 
Hi, I see what is going wrong... I missed a semicolon after the application...

Thanks for the reply!

vivien


All times are GMT -4. The time now is 07:46.