Field propagator

HasegawaWakataniStep

Advances n and omega.

What it solves

FEEC discretization of the following equations:

find such that

where is a given stream function, , and are constants and .

time_discret: explicit Runge-Kutta, see struphy.ode.solvers.ODEsolverFEEC.

Variables it advances

The variables this step updates over a time step dt, and the discrete spaces each one accepts.

NameKindAccepted spaces
nFEECVariableH1
omegaFEECVariableH1

Options

Set these on the propagator in a parameter file, for example HasegawaWakataniStep.Options(c_fun=...).

OptionDefaultChoicesDescription
c_funconstconstChoice of coupling profile used in the model.
kappa1floatConstant multiplying the background-gradient drift term.
nu0.01floatDiffusion coefficient in density and vorticity equations.
butcherNoneButcherTableauButcher tableau for explicit Runge-Kutta integration. If None, defaults to ButcherTableau().
solverpcgpcgcgSymmetric iterative solver used for M0 inversions.
precondMassMatrixPreconditionerMassMatrixPreconditionerMassMatrixDiagonalPreconditionerNonePreconditioner used with M0 inversions.
solver_paramsNoneSolverParametersIterative-solver controls. If None, defaults to SolverParameters().

Used by

Each model splits its time step into a sequence of propagators. This one appears in 1 model, at the position shown.