pylbm.boundary.Boundary_method

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

Set boundary method.

Parameters

None

feq

the equilibrium values of the distribution function on the border

Type

NumPy array

rhs

the additional terms to fix the boundary values

Type

NumPy array

distance

distance to the border (needed for Bouzidi type conditions)

Type

NumPy array

istore
Type

NumPy array

ilabel
Type

NumPy array

iload
Type

list

value_bc

the prescribed values on the border

Type

dictionnary

__init__(istore, ilabel, distance, stencil, value_bc, nspace, backend)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(istore, ilabel, distance, stencil, …)

Initialize self.

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.