pylbm.stencil.OneStencil

class pylbm.stencil.OneStencil(v, nv, num2index, nv_ptr)

Create a stencil of a LBM scheme.

Parameters
  • v (list) – the list of the velocities of that stencil

  • nv (int) – size of the list

  • num2index (list of integers) – link between the velocity number and its position in the unique velocities array

v

the list of the velocities of that stencil

Type

list

nv

size of the list v

Type

int

num2index

link between the velocity number and its position in the unique velocities array

Type

list of integers

num

the numbering of the velocities

vx

the x component of the velocities

vy

the y component of the velocities

vz
__init__(v, nv, num2index, nv_ptr)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(v, nv, num2index, nv_ptr)

Initialize self.

Attributes

num

the numbering of the velocities.

vx

the x component of the velocities.

vy

the y component of the velocities.

vz

the z component of the velocities.