Initial conditions for compressible flow solver is defined in BLOCK:INIT
section. One can use
- the solution is the CGNS mesh file with
TYPE=CGNS
- the solution is TYPHON internal format with
TYPE=TYPHON
orTYPE=TYS
- or user-defined fields (default) with
TYPE=DEFINITION
where symbolic functions of X,Y,Z can be used.
Example (Lamb vortex definition) :
BLOCK:INIT
P = 1.E5 - 1.161*900/2*exp(1-(X*X+Y*Y)/4)
TI = 300
VX = 20-30*Y/2*exp(0.5*(1-(X*X+Y*Y)/4))
VY = 30*X/2*exp(0.5*(1-(X*X+Y*Y)/4))
VZ = 0.
ENDBLOCK
Combinations of quantities could be
- static or stagnation pressure
P, PI
- density, static or stagnation temperature
DENSITY, T, TI
- velocity as
- components
VX, VY, VZ
- Velocity magnitude and direction
VELOCITY, DIRECTION
- Mach magnitude and direction
MACH, DIRECTION
- components