create a class simulation
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/
spatial dimension
the type of the values
Domain
the domain given in argument
Scheme
the scheme given in argument
m
numpy arrayget the moment i in the interior domain.
F
numpy arrayget the distribution function i in the interior domain.
m_halo
numpy arrayget the moment i on the whole domain with halo points.
F_halo
numpy 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) |
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. |