Hands-On Training With OpenFOAM - Flow Around A 2-D Airfoil
Hands-On Training With OpenFOAM - Flow Around A 2-D Airfoil
Hands-On Training With OpenFOAM - Flow Around A 2-D Airfoil
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 ow elds 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
system controlDict fvSchemes fvSolution constant . . . Properties polyMesh points faces owner neighbour boundary time directories
Unlike standard CFD practice, in OpenFOAM case is a directory: each self-contained piece of heavy-weight data stored in its own le Light-weight data is presented in dictionary form: keyword-value pairs in free format. It can be changed and re-read during the run: solution steering Mesh data split into components for efcient management of moving mesh cases Time directories contain solution and derived elds (one per le) Support for compressed I/O: more efcient I/O and less disk space
// Diffusivity DT DT [0 2 -1 0 0 0 0] 0.01;
Contents of dictionaries depends on their role Material properties and physical model constants Solution elds, initial and boundary conditions Discretisation settings, solver controls I/O parameters etc.
// 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
} U {
solver preconditioner tolerance relTol PBiCG; DILU; 1e-07; 0;
} }
Cyprus Advanced HPC Workshop Winter 2012. Tracking: FH6190763 Feb/2012 Hands-On Training with OpenFOAM p. 9
} relaxationFactors { p U k omega }
Additional mesh les: sets and zones, mesh modiers, 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/
slip;
(4 1 1); 0.0001;