pylbm.boundary.BouzidiAntiBounceBack

class pylbm.boundary.BouzidiAntiBounceBack(istore, ilabel, distance, normal, stencil, value_bc, time_bc, nspace, generator)

Boundary condition of type Bouzidi anti bounce-back

Notes

(Source code)

../../_images/Bouzidi_00.png

(png, pdf)

../../_images/Bouzidi_01.png

(png, pdf)

Attributes:
function

Return the generated function

Methods

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, **kwargs)

Update distribution functions with this boundary condition.

update_feq

Attributes

function

Return the generated function