pyLBM.boundary.Boundary

class pyLBM.boundary.Boundary(domain, dico)

Construct the boundary problem by defining the list of indices on the border and the methods used on each label.

Parameters:

domain : Domain class

dico : a dictionary that describes the boundaries

  • key is a label
  • value are again a dictionnary with
    • “method” key that gives the boundary method class used (Bounce_back, Anti_bounce_back, ...)
    • “value_bc” key that gives the value on the boundary

Attributes

bv (dictionnary) for each label key, a list of spatial indices and distance define for each velocity the points on the domain that are on the boundary.
methods (list) list of boundary methods used in the LBM scheme The list contains Boundary_method instance.