29.7 Usage and parameters


entry

meaning

SOLVERINFO

SolverType

VelocityCorrectionScheme; selects the equation system (overrides EQTYPE).

EQTYPE

required by the driver, e.g. UnsteadyNavierStokes; otherwise only reported in the summary.

Projection

must be Galerkin.

FORMULATION

SemiImplicit or LinearImplicit, case insensitive. Required: there is no default.

SPECTRALHPDEALIASING

True (default) or False.

AdvectionForm

not read; the convective form is always used.

PressureFormulation

Strong or Weak (Section 29.2.3), case insensitive. Default Strong with SemiImplicit, Weak with LinearImplicit.

ProjectInitialConditions

Average (default) or Galerkin (Section 29.4). A lower-order pressure is projected from a file element by element in both.

TIMEINTEGRATIONSCHEME

METHOD, ORDER

IMEX with order 1–4. IMEXdirk (with VARIANT) is also available.

PARAMETERS

Kinvis

ν, default 1.

TimeStep, NumSteps, FinTime

time step (must be positive), number of steps, final time.

IO_InfoSteps, IO_CFLSteps, CFL

cadence of the step and Courant-number reports, CFL safety factor.

D00, D01, …

anisotropic diffusion tensor, default identity.

HOutflow parameters

Table 29.2.

GLOBALSYSSOLNINFO (per variable) or PARAMETERS

IterativeSolverTolerance

default 10-9.

NekLinSysMaxIterations

default 5000.

AbsoluteTolerance

True for an absolute criterion (GLOBALSYSSOLNINFO only).

Preconditioner

Diagonal (default) or Null; also SOLVERINFO.

LinSysIterSolver

ignored: the pressure, velocity and initial-condition projection solves use ConjGrad, or GMRES for the linear-implicit velocity.

command line

–opExecSpace

Serial, AVX or Device; default Device if a device is present, else AVX or Serial, with a warning.

–opImpl

StdMat, SumFac (default) or SumFacTOP (Device only); overrides per-operator choices in OPTIMISATION/OPERATORS.

-I, -P

override a SOLVERINFO entry or a parameter, e.g. -I Formulation=semiimplicit.

-v

verbose output, including linear-solver iteration counts.

Table 29.5 Session and command-line settings used by the solver.

Linear-solver settings. Each solve reads the GLOBALSYSSOLNINFO entry of its first variable, falling back to the parameter of the same name: the velocity components are solved together and use the setting of u, the pressure that of p. With the default relative criterion an iteration stops when ∥r∥ < ϵ∥b -Ax0∥, with the previous solution as initial guess x0. With AbsoluteTolerance=True it stops when ∥r∥ < ϵ. The right-hand sides are scaled: the velocity forcing (29.5) contains ^u∕(νλΔt) and the pressure forcing ∇⋅^u∕(λΔt). For small ν and Δt these are many orders of magnitude larger than the velocity, so an absolute tolerance on them is far stricter than it looks and can prevent convergence.

Example. A minimal conditions block, adapted from Tests/KovasznayFlow2D.xml: the test sets ORDER to 1 and passes the formulation on the command line (-I Formulation=...).

1<SOLVERINFO> 
2  <I PROPERTY="SolverType"  VALUE="VelocityCorrectionScheme" /> 
3  <I PROPERTY="EQTYPE"      VALUE="UnsteadyNavierStokes" /> 
4  <I PROPERTY="Projection"  VALUE="Galerkin" /> 
5  <I PROPERTY="Formulation" VALUE="SemiImplicit" /> 
6</SOLVERINFO> 
7<TIMEINTEGRATIONSCHEME> 
8  <METHOD> IMEX </METHOD> 
9  <ORDER> 2 </ORDER> 
10</TIMEINTEGRATIONSCHEME> 
11<PARAMETERS> 
12  <P> TimeStep = 0.01 </P> 
13  <P> NumSteps = 10 </P> 
14  <P> IO_InfoSteps = NumSteps </P> 
15  <P> Kinvis = 0.025 </P> 
16  <P> IterativeSolverTolerance = 1e-12 </P> 
17</PARAMETERS>

A wall with a higher-order pressure condition is declared as <N VAR="p" USERDEFINEDTYPE="H" VALUE="0" /> next to Dirichlet velocity conditions (see Tests/ChannelFlowHOPBC2D.xml). The solver is run as

1IncNavierStokesSolverRedesign --opExecSpace=Serial --opImpl=SumFac \ 
2    KovasznayFlow2D.xml