Tut Expansion Fan
Tut Expansion Fan
$PTOFC/expansion_fan
• $PTOFC is pointing to the directory where you extracted the training material.
• In the case directory, you will find the README.FIRST file. In this file, you will find the general instructions of
how to run the case. In this file, you might also find some additional comments.
• You will also find a few additional files (or scripts) with the extension .sh, namely, run_all.sh,
run_mesh.sh, run_sampling.sh, run_solver.sh, and so on. These files can be used to run the case
automatically by typing in the terminal, for example, sh run_solver.
• We highly recommend you to open the README.FIRST file and type the commands in the terminal, in this
way, you will get used with the command line interface and OpenFOAM® commands.
• If you are already comfortable with OpenFOAM®, use the automatic scripts to run the cases.
High speed compressible flow – Expansion fan
What are we going to do?
• We will use this case to learn how to setup supersonic flow cases.
• We will compare the numerical solution with the analytical solution.
• We will run the case with a robust numerics, but you are invited to try different setups
and compare the different outcomes.
• To find the numerical solution we will use the solver rhoSimpleFoam with zero
viscosity (Euler equations).
• rhoSimpleFoam is a steady solver for turbulent flow of compressible fluids.
• After finding the numerical solution we will do some sampling.
• Then we will do some plotting (using gnuplot or Python) and scientific visualization.
High speed compressible flow – Expansion fan
Running the case
• Let us first convert the mesh from Fluent format.
• In the terminal window type:
1. $> foamCleanTutorials
2. $> rm -rf 0 > /dev/null 2>&1
3. $> fluentMeshToFoam -2D 1 ./mesh/ascii.cas
4. $> checkMesh
• If you want to generate the mesh using blockMesh, in the directory system you will
the dictionary blockMeshDict, which has been already parametrized.
• In this case we are using a medium mesh and the wedge angle is 15 degrees.
• If you want to try different meshes or wedge angles, feel free to modify the dictionary
blockMeshDict.
High speed compressible flow – Expansion fan
…
…
…
dpdt no;
High speed compressible flow – Expansion fan
simulationType laminar;
fixedValue
T → 300 U → (867.7192 0 0)
p → 303961
T → 300
OUTLET-FARFIELD:
U → inletOutlet
p → zeroGradient
T → inletOutlet
SLIP WALLS:
U, p, T → slip
min 100;
Allowed minimum and maximum values
max 1000;
1. $> cp -r 0_empty 0
2. $> renumberMesh -overwrite
3. $> rhoSimpleFoam | tee log.solver
4. $> rhoSimpleFoam -postProcess -func MachNo
5. $> paraFoam
Mach number
• [1] Modern compressible flow: with historical perspective. Third edition. McGraw-Hill.
• [2] Compressible aerodynamics calculator. http://www.dept.aoe.vt.edu/~devenpor/aoe3114/calc.html