pyLBM.boundary.Boundary_method

class pyLBM.boundary.Boundary_method(istore, ilabel, distance, stencil, value_bc, nspace, backend)

Set boundary method.

Parameters:None

Attributes

feq (NumPy array) the equilibrium values of the distribution function on the border
rhs (NumPy array) the additional terms to fix the boundary values
distance (NumPy array) distance to the border (needed for Bouzidi type conditions)
istore (NumPy array)
ilabel (NumPy array)
iload (list)
value_bc (dictionnary) the prescribed values on the border

Methods

fix_iload() Transpose iload and istore.
move2gpu() Move arrays needed to compute the boundary on the GPU memory.
prepare_rhs(simulation) Compute the distribution function at the equilibrium with the value on the border.
update(ff) Update distribution functions with this boundary condition.