pylbm.boundary.Neumann

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

Boundary condition of type Neumann

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

name