MeshGeometry¶
-
class
dolfin.cpp.mesh.MeshGeometry(*args)¶ Bases:
objectMeshGeometrystores the geometry imposed on a mesh. Currently, the geometry is represented by the set of coordinates for the vertices of a mesh, but other representations are possible.Copy constructor.
Parameters: MeshGeometry & geometry (const) – -
degree()¶ Return polynomial degree of coordinate field.
Return type: std::size_t
-
dim()¶ Return Euclidean dimension of coordinate system.
Return type: std::size_t
-
get_entity_index()¶ Get the index for an entity point in coordinates.
Parameters: - entity_dim (std::size_t) –
- order (std::size_t) –
- index (std::size_t) –
Return type: std::size_t
-
hash()¶ Hash of coordinate values Returns std::size_t A tree-hashed value of the coordinates over all
MPIprocessesReturn type: std::size_t
-
init()¶ Initialize coordinate list to given dimension and degree.
Parameters: - dim (std::size_t) –
- degree (std::size_t) –
Return type: void
-
init_entities()¶ Initialise entities. To be called after init.
Parameters: std::vector< std::size_t > & num_entities (const) – Return type: void
-
num_entity_coordinates()¶ Get the number of coordinate points per entity for this degree.
Parameters: entity_dim (std::size_t) – Return type: std::size_t
-
num_points()¶ Return the total number of points in the geometry, located on any entity
Return type: std::size_t
-
num_vertices()¶ Return the number of vertex coordinates.
Return type: std::size_t
-
point()¶ Return coordinate with local index n as a 3D point value.
Parameters: n (std::size_t) – Return type: Point
-
point_coordinates()¶ Get vertex coordinates.
Parameters: point_index (std::size_t) – Return type: const double *
-
set()¶ Setvalue of coordinate.Parameters: - local_index (std::size_t) –
- double * x (const) –
Return type: void
-
str()¶ Return informal string representation (pretty-print)
Parameters: verbose (bool) – Return type: std::string
-
thisown¶ The membership flag
-
vertex_coordinates()¶ Get vertex coordinates.
Parameters: point_index (std::size_t) – Return type: const double *
-
x()¶ Return array of values for all coordinates.
Return type: std::vector< double > &
-