pylbm.boundary.Neumann

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

Boundary condition of type Neumann

__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.

generate(sorder)

Generate the numerical code.

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.

set_iload()

Compute the indices that are needed (symmertic velocities and space indices).

set_rhs()

Compute and set the additional terms to fix the boundary values.

update(ff)

Update distribution functions with this boundary condition.

Attributes

function