Professional Documents
Culture Documents
OpenFOAM Airfoil Tutorial
OpenFOAM Airfoil Tutorial
Outline
Summary of Objectives: Basic Code and Case Structure
Basic structure of the OpenFOAM case and CFD runs
Tutorial Steps
1. Basic review of case organisation
2. Convert the mesh generated in Pointwise
3. constant/polyMesh/boundary: set wall patch type
4. Set material properties: viscosity; turbulence model
5. 0 directory: set initial and boundary conditions for flow fields
6. checkMesh: analysis of mesh quality
7. Flow solver: sonicFoam
8. Basic post-processing with FieldView
9. Utilities and data manipulation: Mach number, forceCoeffs function object
10. Further post-processing
11. Basic review of solver and discretisation parameters
k = 220.4 m2 /s2
T = 260 K
= 2688.26 m2 /s3
system
controlDict
fvSchemes
fvSolution
constant
. . . Properties
polyMesh
points
faces
owner
neighbour
boundary
time directories
2.0;
ascii;
dictionary;
transportProperties;
// Diffusivity
DT
DT [0 2 -1 0 0 0 0] 0.01;
startTime;
0;
stopAt
endTime
endTime;
2500;
deltaT
1;
writeControl
writeInterval
timeStep;
50;
// latestTime // firstTime
// writeNow // nextWrite
writeFormat
ascii;
// binary
writePrecision 6;
writeCompression uncompressed; // compressed
timeFormat
timePrecision
general;
6;
// fixed // scientific
runTimeModifiable yes;
Cyprus Advanced HPC Workshop Winter 2012. Tracking: FH6190763 Feb/2012
PCG;
DIC;
tolerance
relTol
1e-8;
0.01;
solver
preconditioner
PBiCG;
DILU;
tolerance
relTol
1e-07;
0;
}
U
{
}
}
Cyprus Advanced HPC Workshop Winter 2012. Tracking: FH6190763 Feb/2012
}
relaxationFactors
{
p
U
k
omega
}
0.3;
0.7;
0.7;
0.7;
2011-07-22
2011-07-22
2011-07-22
2011-07-22
2011-07-22
11:19
11:19
11:19
11:19
11:19
points
faces
owner
neighbour
boundary
Additional mesh files: sets and zones, mesh modifiers, parallel mapping etc.
586
24K
868K
78K
4.0K
2011-03-14
2011-03-14
2011-03-14
2011-03-14
2011-03-14
09:43
09:43
09:43
09:43
09:43
pointZones
faceZones
cellZones
meshModifiers
sets/
}
FrontAndBack
{
type
nFaces
startFace
}
Inlet
{
type
nFaces
startFace
...
wall;
154;
23579;
empty;
30712;
23733;
patch;
74;
54445;
}
leftPlane
{
type
nFaces
startFace
}
patch;
148;
54519;
symmetryPlane;
74;
54667;
fixedValue;
uniform (0 0 0);
fixedValue;
uniform (40 0 0);
slip;
metis;
(4 1 1);
0.0001;
metisCoeffs
{
processorWeights 4( 1 1 1 1 );
}
roots ();