pyLBM.geometry.
Geometry
(dico)¶Create a geometry that defines the fluid part and the solid part.
Parameters: | dico : a dictionary that contains the following key:value
|
---|
Notes
Examples
see demo/examples/geometry/
Attributes
dim | (int) number of spatial dimensions (1, 2, or 3) |
bounds | (numpy array) the bounds of the box in each spatial direction |
box_label | (list of integers) a list of the four labels for the left, right, bottom, top, front, and back edges |
list_elem | (list of elements) a list that contains each element added or deleted in the box |
Methods
add_elem (elem) |
add a solid or a fluid part in the domain |
list_of_elements_labels () |
Get the list of all the labels used in the geometry. |
list_of_labels () |
Get the list of all the labels used in the geometry. |
visualize ([viewer_app, viewlabel, fluid_color]) |
plot a view of the geometry |