pylbm.boundary.Boundary

class pylbm.boundary.Boundary(domain, generator, dico)

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

Parameters
domainpylbm.Domain

the simulation domain

dicodictionary
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_per_labeldictionnary

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.

methodslist

list of boundary methods used in the LBM scheme The list contains Boundary_method instance.