CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   controlDict in interFOAM (http://www.cfd-online.com/Forums/openfoam-pre-processing/104470-controldict-interfoam.html)

amin66 July 10, 2012 11:02

controlDict in interFOAM
 
Hi friends
can some1 explain how does result write with controlDict in interfoam?
my mean is that data for which times will be written?



/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application interFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 100;

deltaT 0.001;

writeControl adjustableRunTime;

writeInterval 0.05;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression uncompressed;

timeFormat general;

timePrecision 6;

runTimeModifiable yes;

adjustTimeStep yes;

maxCo 0.5;

maxDeltaT 1;

flowris July 10, 2012 11:08

Hi,

You can change the value of writeInterval to change when time steps are stored. Fields are now stored each 0.05 second, and since you have an endTIme of 100, this will result in 100/0.05 = 50000 saved time steps!


All times are GMT -4. The time now is 09:51.