Simulation parameters

The file controlDict in the system directory contains the information necessary to start a simulation like:

  • Duration (startTime and endTime)

  • Calculation time step deltaT

  • Results writing frequency writeInterval

1
/*--------------------------------*- C++ -*----------------------------------*\
2
| ========= | |
3
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4
| \\ / O peration | Version: 2.3.0 |
5
| \\ / A nd | Web: www.OpenFOAM.org |
6
| \\/ M anipulation | |
7
\*---------------------------------------------------------------------------*/
8
FoamFile
9
{
10
version 2.0;
11
format ascii;
12
class dictionary;
13
location "system";
14
object controlDict;
15
}
16
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
application pisoFoam;
18
startFrom latestTime;
19
startTime 0;
20
stopAt endTime;
21
endTime 3000000;
22
deltaT 1;
23
writeControl timeStep;
24
writeInterval 20;
25
purgeWrite 0;
26
writeFormat ascii;
27
writePrecision 6;
28
writeCompression off;
29
timeFormat general;
30
timePrecision 6;
31
runTimeModifiable true;
32
// ************************************************************************* //

Fondamental

The fvSolution and fvSchemes contains important information about numerical schemes that goes beyond the scope of this workshop. The case studies here are already configured with the working configuration but remind that this a fundamental step of a CFD simulation! More details here [pdf][1].