pyLBM.storage.
Array
(nv, gspace_size, vmax, sorder=None, mpi_topo=None, dtype=<type 'numpy.float64'>, gpu_support=False)¶This class defines the storage of the moments and distribution functions in pyLBM.
It sets the storage in memory and how to access.
Parameters: | nv: int
gspace_size: list of int
vmax: list of int
sorder: list of int
mpi_topo:
dtype: type
|
---|
Attributes
nspace |
the space size. |
nv |
the number of velocities. |
shape |
the shape of the array that stores the data. |
size |
the size of the array that stores the data. |
array |
Methods
generate () |
generate periodic conditions functions for loo.py backend. |
set_conserved_moments (consm, nv_ptr) |
add conserved moments information to have a direct access. |
update () |
update ghost points on the interface with the datas of the neighbors. |