Create the class with all the needed informations for each elementary scheme.
dim : spatial dimension (optional if the box is given)
scheme_velocity : the value of the ratio space step over time step (la = dx / dt)
schemes : a list of dictionaries, one for each scheme
Notes
Each dictionary of the list schemes should contains the following key:value
velocities : list of the velocities number
conserved moments : list of the moments conserved by each scheme
polynomials : list of the polynomial functions that define the moments
equilibrium : list of the values that define the equilibrium
relaxation_parameters : list of the value of the relaxation parameters
source_terms : dictionary do define the source terms (optional, see examples)
init : dictionary to define the initial conditions (see examples)
If the stencil has already been computed, it can be pass in argument.
Examples
see demo/examples/scheme/
spatial dimension
space step
time step
scheme velocity, ratio dx/dt
number of elementary schemes
Stencil
a stencil of velocities
list of polynomials that define the moments
list of the equilibrium functions
relaxation parameters (exemple: s[k][l] is the parameter associated to the lth moment in the kth scheme)
the symbolic matrix of the moments
the numeric matrix of the moments (m = Mnum F)
the symbolic inverse matrix
the numeric inverse matrix (F = invMnum m)
Methods
|
set the source terms functions for the conserved moments. |
vue |