flecsi_mesh_wrapper.h
Go to the documentation of this file.
size_t num_ghost_faces() const
Number of ghost faces in the mesh.
Definition: flecsi_mesh_wrapper.h:198
Definition: wonton.h:130
flecsi_mesh_t & operator=(const flecsi_mesh_t &)=default
Default assignment operator.
size_t num_owned_edges() const
Number of owned edges in the mesh.
Definition: flecsi_mesh_wrapper.h:183
auto cell_get_type(size_t cell_id) const
Get the type of the cell - PARALLEL_OWNED or PARALLEL_GHOST.
Definition: flecsi_mesh_wrapper.h:462
Factorize a number N into D equal (or nearly equal) factors.
Definition: adaptive_refinement_mesh.h:31
Definition: wonton.h:87
flecsi_mesh_t(const mesh_t &mesh, bool request_sides=true, bool request_wedges=true, bool request_corners=true)
Constructor for creating a serial, 2D/3D Cartesian mesh.
Definition: flecsi_mesh_wrapper.h:120
size_t num_entities(entity_kind_t entity, entity_type_t entity_type=entity_type_t::ALL) const
Definition: flecsi_mesh_wrapper.h:211
Definition: wonton.h:90
auto cell_get_element_type(size_t cell_id) const
Get the element type of a cell.
Definition: flecsi_mesh_wrapper.h:475
void node_get_cells(size_t node_id, entity_type_t type, std::vector< T > *adj_cells) const
Get connected cells of given node.
Definition: flecsi_mesh_wrapper.h:312
Definition: wonton.h:85
Definition: wonton.h:161
size_t num_owned_cells() const
Number of owned cells in the mesh.
Definition: flecsi_mesh_wrapper.h:173
size_t num_ghost_nodes() const
Number of ghost nodes in the mesh.
Definition: flecsi_mesh_wrapper.h:203
void cell_get_coordinates(size_t const cell_id, std::vector< point_t > *point_list) const
Get the coodinates of the nodes of a cell.
Definition: flecsi_mesh_wrapper.h:386
Definition: wonton.h:88
Definition: wonton.h:86
void node_get_coordinates(size_t node_id, point_2d_t *pp) const
Definition: flecsi_mesh_wrapper.h:365
void node_get_coordinates(size_t node_id, point_1d_t *pp) const
Get the coords of a node.
Definition: flecsi_mesh_wrapper.h:358
void cell_centroid(size_t cell_id, point_t *centroid) const
Centroid of a cell.
Definition: flecsi_mesh_wrapper.h:424
counting_iterator make_counting_iterator(int const i)
Definition: wonton.h:291
auto cell_volume(size_t cell_id) const
Cell area/volume.
Definition: flecsi_mesh_wrapper.h:154
void dual_cell_get_node_adj_cells(size_t node_id, entity_type_t const type, std::vector< T > *adj_nodes) const
Get adjacent "dual cells" of a given "dual cell".
Definition: flecsi_mesh_wrapper.h:329
size_t num_ghost_cells() const
Number of ghost cells in the mesh.
Definition: flecsi_mesh_wrapper.h:193
void cell_get_nodes(size_t cell_id, std::vector< T > *nodes) const
Definition: flecsi_mesh_wrapper.h:260
void node_get_coordinates(size_t node_id, point_3d_t *pp) const
Definition: flecsi_mesh_wrapper.h:372
size_t num_owned_nodes() const
Number of owned nodes in the mesh.
Definition: flecsi_mesh_wrapper.h:188
void build_aux_entities()
Definition: AuxMeshTopology.h:1331
typename mesh_t::shape_t shape_t
the gometric shape
Definition: flecsi_mesh_wrapper.h:86
auto begin(entity_kind_t entity, entity_type_t entity_type=entity_type_t::ALL) const
Definition: flecsi_mesh_wrapper.h:239
typename mesh_t::real_t real_t
the real type
Definition: flecsi_mesh_wrapper.h:84
Definition: wonton.h:91
auto end(entity_kind_t entity, entity_type_t entity_type=entity_type_t::ALL) const
Definition: flecsi_mesh_wrapper.h:250
auto node_get_type(size_t node_id) const
Get the type of the node - PARALLEL_OWNED or PARALLEL_GHOST.
Definition: flecsi_mesh_wrapper.h:501
void dual_cell_centroid(size_t node_id, point_t *centroid) const
Centroid of a dual cell.
Definition: flecsi_mesh_wrapper.h:441
static const shape_map_t shapes_to_wonton
the map between
Definition: flecsi_mesh_wrapper.h:112
Definition: wonton.h:154
void dual_cell_get_coordinates(size_t node_id, std::vector< point_t > *point_list) const
2D version of coords of nodes of a dual cell
Definition: flecsi_mesh_wrapper.h:412
size_t num_owned_faces() const
Number of owned faces in the mesh.
Definition: flecsi_mesh_wrapper.h:178
void face_get_nodes(size_t face_id, std::vector< T > *nodes) const
Definition: flecsi_mesh_wrapper.h:291
std::map< shape_t, element_type_t > shape_map_t
a map type for mapping mesh shapes to wonton shapes
Definition: flecsi_mesh_wrapper.h:98
auto dual_cell_volume(size_t node_id) const
Definition: flecsi_mesh_wrapper.h:160
GID_t get_global_id(size_t id, entity_kind_t const kind) const
Get global id.
Definition: flecsi_mesh_wrapper.h:506
Definition: wonton.h:127
void cell_get_faces_and_dirs(size_t cell_id, std::vector< T > *faces, std::vector< T > *face_dirs) const
Definition: flecsi_mesh_wrapper.h:274
Implements a mesh wrapper for Wonton mesh queries.
Definition: flecsi_mesh_wrapper.h:70
Point< 3 > make_point(const A< T, 3 > &a)
A utility function to convert a type to a wonton point.
Definition: flecsi_mesh_wrapper.h:35
constexpr auto space_dimension() const
Dimension of space or mesh points.
Definition: flecsi_mesh_wrapper.h:149