pylbm.boundary.AntiBounceBack

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

Boundary condition of type anti bounce-back

Notes

(Source code, png, pdf)

../../_images/anti_bounce_back.png
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.