11.3 Session file configuration

The session file follows the structure described in Section 10.3 for the legacy solver; below we describe the sections that differ, and the options currently understood.

Parameters

1<PARAMETERS> 
2  <P> TimeStep        = 0.0000001         </P> 
3  <P> FinTime         = 1.0               </P> 
4  <P> NumSteps        = FinTime/TimeStep  </P> 
5  <P> IO_InfoSteps    = 100               </P> 
6  <P> Twall           = 300.15            </P> 
7</PARAMETERS>

Time integration scheme

The <TIMEINTEGRATIONSCHEME> block is unchanged from the legacy solver:

1<TIMEINTEGRATIONSCHEME> 
2  <METHOD> RungeKutta </METHOD> 
3  <ORDER> 4 </ORDER> 
4</TIMEINTEGRATIONSCHEME>

The compressible systems are integrated explicitly, so the explicit families (ForwardEuler, RungeKutta and its SSP variants, AdamsBashforth) are the relevant ones.

Solver info

1<SOLVERINFO> 
2  <I PROPERTY="EQType"            VALUE="NavierStokesCFE"  /> 
3  <I PROPERTY="Projection"        VALUE="DisContinuous"    /> 
4  <I PROPERTY="AdvectionType"     VALUE="WeakDG"           /> 
5  <I PROPERTY="DiffusionType"     VALUE="InteriorPenalty"  /> 
6  <I PROPERTY="UpwindType"        VALUE="Roe"              /> 
7  <I PROPERTY="ViscosityType"     VALUE="Constant"         /> 
8</SOLVERINFO>

Equation of state

Where the legacy solver selects the equation of state through SOLVERINFO and reads its constants from PARAMETERS, the redesign solver has a dedicated session block, and every operator that needs the gas law (Riemann solvers, viscous fluxes, boundary conditions) is compiled for each equation of state:

1<EquationOfState> 
2  <Type> IdealGas </Type> 
3  <Parameters> 
4    <Gamma>       1.4 </Gamma> 
5    <GasConstant> 287 </GasConstant> 
6  </Parameters> 
7</EquationOfState>

Two types are available:

The parameters are required – there are no silent defaults – and may be expressions in terms of PARAMETERS entries.

Reference values

The gas transport properties of the Navier-Stokes system come from a ReferenceValues block rather than from the parameters:

1<ReferenceValues> 
2  <Viscosity>   mu     </Viscosity> 
3  <Prandtl>     Pr     </Prandtl> 
4  <Density>     rhoInf </Density> 
5  <Pressure>    pInf   </Pressure> 
6</ReferenceValues>

Anything omitted falls back to its default with a warning, so it is good practice to state every value the case depends on explicitly.

Boundary conditions

Boundary regions and the conserved variables are declared exactly as in the legacy solver. The following USERDEFINEDTYPE tags are available; each is implemented as a boundary operator that claims the regions carrying its tag.

USERDEFINEDTYPE Behaviour
Wall, Symmetry Slip (inviscid) wall / symmetry plane
WallViscous No-slip isothermal wall at Twall
WallAdiabatic No-slip adiabatic wall
RiemannInvariant Farfield in/outflow via Riemann invariants
PressureOutflow Outflow imposing only the static pressure
StagnationInflow Inflow from stagnation conditions
EnforceEntropyPressure Entropy-consistent inflow, pressure form
EnforceEntropyTotalEnthalpy Entropy-consistent inflow, total-enthalpy form
EnforceEntropyVelocity Entropy-consistent inflow, velocity form
ExtrapOrder0 Zeroth-order extrapolation of the interior state

For example, a farfield region reads:

1<REGION REF="0"> 
2  <D VAR="rho"  USERDEFINEDTYPE="RiemannInvariant" VALUE="0" /> 
3  <D VAR="rhou" USERDEFINEDTYPE="RiemannInvariant" VALUE="0" /> 
4  <D VAR="rhov" USERDEFINEDTYPE="RiemannInvariant" VALUE="0" /> 
5  <D VAR="E"    USERDEFINEDTYPE="RiemannInvariant" VALUE="0" /> 
6</REGION>

A boundary tag can carry parameters of its own: an isothermal wall may be given a temperature that differs from the session-wide Twall with

1<D VAR="rho" USERDEFINEDTYPE="WallViscous:twall=350.0" VALUE="0" />

which is how, for instance, a channel heated on one side is set up. Ordinary Dirichlet values and periodic boundaries are also supported, the latter across processor partitions in parallel runs.

Initial conditions and restarts

Initial conditions are given either as expressions, as in the legacy solver, or from a field file:

1<FUNCTION NAME="InitialConditions"> 
2  <F VAR="rho,rhou,rhov,E" FILE="restart.fld" /> 
3</FUNCTION>

Restart files may be read at a different polynomial order from the one they were written at, and modal (orthogonal) as well as modified expansion bases round-trip; the coefficients are interpolated element by element. A warning is printed at t = 0 if a projected initial state would be lossy at the current order.