pylbm.boundary.NeumannZ

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

Boundary condition of type Neumann along the z direction

Attributes
function

Return the generated function

Methods

fix_iload(self)

Transpose iload and istore.

generate(self, sorder)

Generate the numerical code.

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.

set_iload(self)

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

set_rhs(self)

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

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

Update distribution functions with this boundary condition.