pylbm.boundary.BoundaryMethod

class pylbm.boundary.BoundaryMethod(istore, ilabel, distance, stencil, value_bc, nspace, generator)

Set boundary method.

Parameters
FIXMEadd parameters documentation
Attributes
feqndarray

the equilibrium values of the distribution function on the border

rhsndarray

the additional terms to fix the boundary values

distancendarray

distance to the border (needed for Bouzidi type conditions)

istorendarray

indices of points where we store the boundary condition

ilabelndarray

label of the boundary

iloadlist

indices of points needed to compute the boundary condition

value_bcdictionnary

the prescribed values on the border

Methods

fix_iload(self)

Transpose iload and istore.

move2gpu(self)

Move arrays needed to compute the boundary on the GPU memory.

prepare_rhs(self, simulation)

Compute the distribution function at the equilibrium with the value on the border.

update(self, ff, \*\*kwargs)

Update distribution functions with this boundary condition.