CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Writing in regular time steps (https://www.cfd-online.com/Forums/openfoam-post-processing/229269-writing-regular-time-steps.html)

milad1990 August 2, 2020 17:06

Writing in regular time steps
 
Hi every one.
I am trying to adjust my control-Dict to write my data on 0.01 second of my simulation. I am using PISO solver and MaxCO feature. So I used "AdjustableTimestep" for writing my data. I got my P,U and other things in 0.01 seconds as I wanted, but in Postprocessing folder, I got my forcecoefficients in a very irregular time steps, which should be actual time steps adjusted by my MaxCO. Do you know why it happens? How can I solve it?

Thank you for you kind help
Milad

VigneshSP August 3, 2020 03:44

Hi milad1990,
I think adding writeControl and and writeInterval to the forceCoeffs will get you the force coefficients at specified time of simulation.

writeControl runTime;
writeInterval 1;

the above will write for every 1s of simulation time.

milad1990 August 10, 2020 07:50

Hi VigneshSP
Thanks for your reply.
The problem however, was not that. Because I was using 'MAX CO' feature I found that OpenFOAM could not follow "Adjustable time step" in "0.001" increment that I determined in ControlDict. Also RunTime feature is not working too. btw, thank you |I solved my problem since I write my data in f=100hz, I can just write my forces and force coefficients in "output time" and its working. Thank you


All times are GMT -4. The time now is 19:36.