pylbm.geometry.
Geometry
(dico)¶Create a geometry that defines the fluid part and the solid part.
dico (a dictionary that contains the following key:value) –
box : a dictionary for the definition of the computed box
elements : a list of elements (optional)
Notes
x : a list of the bounds in the first direction
y : a list of the bounds in the second direction (optional)
z : a list of the bounds in the third direction (optional)
label : an integer or a list of integers (length twice the number of dimensions) used to label each edge (optional)
dim
¶number of spatial dimensions (1, 2, or 3)
int
bounds
¶the bounds of the box in each spatial direction
numpy array
box_label
¶a list of the four labels for the left, right, bottom, top, front, and back edges
list of integers
list_elem
¶a list that contains each element added or deleted in the box
list of elements
Examples
see demo/examples/geometry/
__init__
(dico)¶Initialize self. See help(type(self)) for accurate signature.
Methods
|
Initialize self. |
|
add a solid or a fluid part in the domain |
|
Get the list of all the labels used in the geometry. |
|
Get the list of all the labels used in the geometry. |
|
plot a view of the geometry |