simple_mesh_wrapper.h
Go to the documentation of this file.
Element_type cell_get_element_type(int const cellid) const
Get the Element_type (e.g. HEX) of a specific cell.
Definition: simple_mesh_wrapper.h:146
Definition: wonton.h:128
void cell_get_nodes(int const cellid, std::vector< int > *nodes) const
Get the list of node IDs for a specific cell.
Definition: simple_mesh_wrapper.h:172
Entity_type node_get_type(int const nodeid) const
Get the Entity_type (e.g. PARALLEL_OWNED) of a specific node.
Definition: simple_mesh_wrapper.h:135
int num_entities(const Entity_kind kind, const Entity_type type) const
Determine the number of a specific mesh entity.
Definition: simple_mesh.h:163
Simple_Mesh_Wrapper & operator=(Simple_Mesh_Wrapper const &inmesh)=delete
Assignment operator (disabled).
void node_get_coordinates(int const nodeid, Point< D > *pp) const
Get the coordinates of a specific node as a Wonton::Point.
Definition: simple_mesh_wrapper.h:213
A thin wrapper that implements mesh methods for Simple_Mesh.
Definition: simple_mesh_wrapper.h:38
Factorize a number N into D equal (or nearly equal) factors.
Definition: adaptive_refinement_mesh.h:31
void node_get_cells(const ID nodeid, std::vector< ID > *cells) const
For a given node, get all the cells attached to this node.
Definition: simple_mesh.h:260
Definition: wonton.h:87
void cell_get_faces_and_dirs(int const cellid, std::vector< int > *cfaces, std::vector< int > *cfdirs) const
Get the list of face IDs and face normal directions for a specific cell.
Definition: simple_mesh_wrapper.h:161
int space_dimension() const
Spatial dimension of the mesh.
Definition: simple_mesh.h:153
int num_ghost_nodes() const
The number of GHOST nodes in the mesh.
Definition: simple_mesh_wrapper.h:112
Definition: wonton.h:85
Definition: wonton.h:161
int space_dimension() const
The spatial dimension of the mesh.
Definition: simple_mesh_wrapper.h:73
int num_ghost_cells() const
The number of GHOST cells in the mesh.
Definition: simple_mesh_wrapper.h:100
Definition: wonton.h:88
void cell_get_faces_and_dirs(const ID cellid, std::vector< ID > *faces, std::vector< int > *fdirs) const
For a given cell, get the list of faces and the direction of their normals.
Definition: simple_mesh.h:218
void node_get_cells(int const nodeid, Entity_type const ptype, std::vector< int > *nodecells) const
Get the list of IDs of all cells of a particular parallel type attached to a node.
Definition: simple_mesh_wrapper.h:192
GID_t get_global_id(int const id, Entity_kind const kind) const
Get the global ID. NOTE: Simple_Mesh only has local IDs.
Definition: simple_mesh_wrapper.h:199
void build_aux_entities()
Definition: AuxMeshTopology.h:1331
int num_owned_faces() const
The number of OWNED faces in the mesh.
Definition: simple_mesh_wrapper.h:86
A very light-weight, simple mesh infrastructure.
void face_get_nodes(int const faceid, std::vector< int > *nodes) const
Get the list of node IDs for a specific face.
Definition: simple_mesh_wrapper.h:181
int num_owned_nodes() const
The number of ONWED nodes in the mesh.
Definition: simple_mesh_wrapper.h:92
Simple_Mesh_Wrapper(Simple_Mesh const &mesh, bool request_sides=true, bool request_wedges=true, bool request_corners=true)
Constructor for the mesh wrapper.
Definition: simple_mesh_wrapper.h:50
void face_get_nodes(const ID faceid, std::vector< ID > *nodes) const
For a given face, get the list of nodes.
Definition: simple_mesh.h:247
void node_get_coordinates(const ID nodeid, Point< D > *pp) const
Get the coordinates of a node.
Definition: simple_mesh.h:280
Definition: wonton.h:127
int num_owned_cells() const
The number of OWNED cells in the mesh.
Definition: simple_mesh_wrapper.h:80
int num_ghost_faces() const
The number of GHOST faces in the mesh.
Definition: simple_mesh_wrapper.h:106
Entity_type cell_get_type(int const cellid) const
Get the Entity_type (e.g. PARALLEL_OWNED) of a specific cell.
Definition: simple_mesh_wrapper.h:124
void cell_get_nodes(const ID cellid, std::vector< ID > *nodes) const
For a given cell, get the list of nodes.
Definition: simple_mesh.h:235