pylbm.storage.
Array
(nv, gspace_size, vmax, sorder=None, mpi_topo=None, dtype=<class '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.
nv (int) – number of velocities
gspace_size (list of int) – number of points in each direction including the fictitious point
vmax (list of int) – the size of the fictitious points in each direction
sorder (list of int) – the order of nv, nx, ny and nz Default is None which mean [nv, nx, ny, nz]
mpi_topo – the mpi topology
dtype (type) – the type of the array. Default is numpy.double
array
¶nspace
¶nv
¶shape
¶size
¶__init__
(nv, gspace_size, vmax, sorder=None, mpi_topo=None, dtype=<class 'numpy.float64'>, gpu_support=False)¶Initialize self. See help(type(self)) for accurate signature.
Methods
|
Initialize self. |
|
generate periodic conditions functions for loo.py backend. |
|
add conserved moments information to have a direct access. |
|
update ghost points on the interface with the datas of the neighbors. |
Attributes
the space size. |
|
the number of velocities. |
|
the shape of the array that stores the data. |
|
the size of the array that stores the data. |