A boundary or volume tag representing the entire boundary or volume.
In the case of the boundary, TAG_ALL does not include rank boundaries, or, more generally, anything tagged with TAG_NO_BOUNDARY.
A boundary tag representing the entire boundary.
Unlike TAG_ALL, this includes rank boundaries, or, more generally, everything tagged with TAG_NO_BOUNDARY.
Information about the geometry and connectivity of a finite element mesh. (Note: no information about the discretization is stored here.)
| Variable points: | |
|---|---|
list of Pylinear vectors of node coordinates |
|
| Variable elements: | |
list of Element instances |
|
| Variable interfaces: | |
a list of pairs:
enumerating elements bordering one another. The relation “element 1 touches element 2” is always reflexive, but this list will only contain one entry per element pair. |
|
| Variable tag_to_boundary: | |
The boundary tag TAG_NONE always refers to an empty boundary. The boundary tag TAG_ALL always refers to the entire boundary. |
|
| Variable tag_to_elements: | |
a mapping of the form element_tag -> [element instances] The element tag TAG_NONE always refers to an empty domain. The element tag TAG_ALL always refers to the entire domain. |
|
| Variable periodicity: | |
A list of tuples (minus_tag, plus_tag) or None indicating the tags of the boundaries to be matched together as periodic. There is one tuple per axis, so that for example a 3D mesh has three tuples. |
|
| Variable periodic_opposite_faces: | |
This maps a face to its periodicity-induced opposite. |
|
| Variable periodic_opposite_vertices: | |
This maps one vertex to a list of its periodicity-induced opposites. |
|
Bases: hedge.mesh.Mesh
A mesh whose elements’ faces exactly match up with one another.
See Mesh for attributes provided by this class.
Construct a simplical mesh.
Face indices follow the convention for the respective element, such as Triangle or Tetrahedron, in this module.
| Parameters: |
|
|---|
Verify boundary condition coverage.
Given a list of boundary tags as bc_tags, this function verifies that
1. the union of all these boundaries gives the complete boundary, 1. all these boundaries are disjoint.
| Parameter: | incomplete_ok – Do not report an error if some faces are not covered by the boundary conditions. |
|---|
Create a semi-structured rectangular mesh.
| Parameters: |
|
|---|
Create a semi-structured rectangular mesh.
| Parameters: |
|
|---|
Create a semi-structured square mesh.
| Parameters: |
|
|---|
Create an unstructured rectangular mesh.
| Parameters: |
|
|---|
Create a semi-structured rectangular mesh.
| Parameters: |
|
|---|
Create an unstructured square mesh.
| Parameters: |
|
|---|
Return a mesh for a brick from the origin to dimensions.
max_volume specifies the maximum volume for each tetrahedron. periodicity is either None, or a triple of bools, indicating whether periodic BCs are to be applied along that axis. See make_conformal_mesh() for the meaning of boundary_tagger.
A few stock boundary tags are provided for easy application of boundary conditions, namely plus_[xyz] and minus_[xyz] tag the appropriate faces of the brick.