Advection Initial Conditions
This pages describes the functions that apply initial conditions
AdvectionEquationMod.ICDict
— Constant.Dictionary that maps IC names to functions. Every new IC should be added to the list
AdvectionEquationMod.ICFile
— Method.AdvectionEquationMod.ICFile
This function reads a vector from a file on disk and set the solution to it. The vector must contain the same number of entries as there are degrees of freedom in the mesh.
This function is useful for things like restarting from a checkpoint. In this case, the file should be the output of writedlm(eqn.q). The degree of freedom number must be the same for both simulation for this to work (the file contains no degree of freedom number information).
Inputs
mesh
sbp
eqn
opts
Inputs/Outputs
u0
: vector to populate with the solutionAliasing restrictions: none.
AdvectionEquationMod.ICexp_xplusy
— Method.AdvectionEquationMod.ICexp_xplusy
Computes the initial conditions for the state variable u = exp(x + y + z), z is omitted in 2d
Inputs
mesh
: AbstractMesh typesbp
: Summation-by-parts operatoreqn
: Advection equation objectopts
: Options dictionaryu0
: Array that stores inital state variables
Outputs
None
AdvectionEquationMod.ICx5plusy5
— Method.AdvectionEquationMod.ICx5plusy5
Computes the initial conditions for the state variable u = x^5 + y^5 + z^5; z is omitted it 2d
Inputs
mesh
: AbstractMesh typesbp
: Summation-by-parts operatoreqn
: Advection equation objectopts
: Options dictionaryu0
: Array that stores inital state variables
Outputs
None