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.
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>
TimeStep is the time-step. It is always required: the redesign solver integrates with
a fixed step and, unlike the legacy solver, does not (yet) let the CFL number drive
the step size.
FinTime, NumSteps and IO_InfoSteps behave as in the legacy solver.
Twall sets the wall temperature for every isothermal (WallViscous) boundary at
once; individual regions can override it as described under boundary conditions.
Default value = 300.15 K.
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.
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>
EQType selects the equations:
EulerCFE – compressible Euler equations;
NavierStokesCFE – compressible Navier-Stokes equations.
Projection must be DisContinuous.
AdvectionType must be WeakDG.
DiffusionType (Navier-Stokes only) must be InteriorPenalty.
UpwindType selects the Riemann solver for the inviscid trace flux: Average, AUSM0,
AUSM1, AUSM2, AUSM3, HLL, HLLC, LaxFriedrichs or Roe. This property is
required.
ViscosityType (Navier-Stokes only) is Constant (default) or Variable for Sutherland’s
law.
OperatorExecSpace selects the execution space (Serial, AVX or Device) from
within the session file; the –opExecSpace command-line argument overrides
it.
OperatorImplementation sets the elemental implementation, either SumFac
or StdMat, for every operator at once; the –opImpl command-line argument
overrides it. When neither is given, individual operators may be assigned their
own implementation per execution space through the OPTIMISATION section,
1<OPTIMISATION> 2 <OPERATORS> 3 <AVXBACKEND> 4 <MASS> StdMat </MASS> 5 </AVXBACKEND> 6 </OPERATORS> 7</OPTIMISATION>
where SERIALBACKEND, AVXBACKEND and DEVICEBACKEND sections each list operators by
name with their implementation. Anything still unspecified defaults to SumFac with a
warning.
ProjectInitialConditions, when set to Galerkin (True is still accepted), performs an
element-local Galerkin projection of expression-based initial conditions instead of the
default collocation interpolation, which is useful when comparing against a projected
reference solution. The default (None, or False) matches the legacy solver’s behaviour.
See the description of ProjectInitialConditions in the SOLVERINFO section of the
conditions chapter.
ViscousTraceFlux (Navier-Stokes only) selects the viscous trace flux of the
interior-penalty method:
FluxOfAverages (default) evaluates the viscous flux from the averaged state
and gradient on each interface, as the legacy solver does;
AverageOfNormalFluxes averages the two elements’ own outward normal
viscous fluxes, with the same interior-penalty term. The interface then
exchanges five values per point rather than fifteen and needs no gradient trace
on interior or partition interfaces.
The two forms differ at the level of the discretisation error. Boundary traces use the first form in either case.
FusedElmt selects how the element-local part of the right-hand side is evaluated, that is
the state on the element traces, the gradient, the volume fluxes and their derivative inner
products:
Auto (default) takes the fused pass where it applies and the separate operators
otherwise;
On runs them as a single pass over each collection, which keeps the gradient
and the fluxes in workspace, and stops with an error when the session cannot
take it;
Off runs one element operator after another, each writing a field for the next.
The fused pass applies to the Euler equations and, for Navier-Stokes, with
ViscousTraceFlux set to AverageOfNormalFluxes. It supports the ideal-gas and van
der Waals equations of state, and needs the SumFac implementation on Serial and AVX
or SumFacTOP on a Device (–opImpl=SumFacTOP). On and Off give the same solution up
to rounding.
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:
IdealGas with parameters Gamma and GasConstant;
VanDerWaals with parameters Gamma, GasConstant, Tcrit and Pcrit.
The parameters are required – there are no silent defaults – and may be expressions in terms
of PARAMETERS entries.
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>
Viscosity is the (reference) dynamic viscosity. Default value = 1.78e-05 Pas.
Prandtl is the Prandtl number (default value = 0.72).
thermalConductivity may be given in its place, the Prandtl number then being
computed from it; only one of the two may be set.
Density and Pressure are the reference density and pressure. Default values =
1.225 Kg∕m3 and 101325 Pa.
Temperature and Tsutherland are read when ViscosityType is Variable and
set the reference and Sutherland temperatures of Sutherland’s law. Default values
= 288.15 K and 110 K.
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 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 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.