create a class simulation
spatial dimension
the type of the values
Domainthe domain given in argument
Schemethe scheme given in argument
mnumpy arrayget the moment i in the interior domain.
Fnumpy arrayget the distribution function i in the interior domain.
m_halonumpy arrayget the moment i on the whole domain with halo points.
F_halonumpy arrayget the distribution function i on the whole domain with halo points.
Methods
|
perform the boundary conditions |
|
set the moments to the equilibrium values (the array _m is modified) |
|
compute the moments from the distribution functions (the array _m is modified) |
initialize all the numy array with the initial conditions set the initial values to the numpy arrays _F and _m |
|
|
compute the distribution functions from the moments (the array _F is modified) |
|
compute one time step |
|
compute the relaxation phase on moments (the array _m is modified) |
|
compute the source term phase on moments (the array _m is modified) |
|
compute the transport phase on distribution functions (the array _F is modified) |
Notes
The methods
transport,
relaxation,
equilibrium,
f2m,
m2f,
boundary_condition,
and
one_time_step
are just call of the methods of the class
Scheme.
Examples
see demo/examples/
Attributes
|
get the distribution function i in the interior domain. |
|
get the distribution function i on the whole domain with halo points. |
|
|
|
get the moment i in the interior domain. |
|
get the moment i on the whole domain with halo points. |