pyLBM.Scheme.set_boundary_conditions

Scheme.set_boundary_conditions(f, m, bc, interface)

Apply the boundary conditions

Parameters:

f : numpy array

the array of the distribution functions

m : numpy array

the array of the moments

bc : pyLBM.boundary.Boundary

the class that contains all the informations needed for the boundary conditions

Returns:

Modify the array of the distribution functions f in the phantom border area

according to the labels. In the direction parallel to the bounday, N denotes

the number of inner points, phantom cells are added to take into account

the boundary conditions.

Notes

If n is the number of outer cells on each bound and N the number of inner cells, the following representation could be usefull (Na = N+2*n)

n outer cells N inner cells n outer cells
  0 ... N-1  
0 ... n-1 n ... N+n-1 N+n ... Na-1