|
| Mesh (int NNodes, int NElements, const index_t *ENList, const real_t *x, const real_t *y) |
|
| Mesh (int NNodes, int NElements, const index_t *ENList, const real_t *x, const real_t *y, const real_t *z) |
|
| ~Mesh () |
| Default destructor. More...
|
|
index_t | append_vertex (const real_t *x, const double *m) |
| Add a new vertex. More...
|
|
void | erase_vertex (const index_t nid) |
| Erase a vertex. More...
|
|
index_t | append_element (const index_t *n) |
| Add a new element. More...
|
|
index_t | append_element (const index_t *n, const int *b) |
| Add a new element and boundary. More...
|
|
void | create_boundary () |
|
void | set_boundary (int nfacets, const int *facets, const int *ids) |
|
void | erase_element (const index_t eid) |
| Erase an element. More...
|
|
void | invert_element (size_t eid) |
| Flip orientation of element. More...
|
|
const index_t * | get_element (size_t eid) const |
| Return a pointer to the element-node list. More...
|
|
void | get_element (size_t eid, index_t *ele) const |
| Return copy of element-node list. More...
|
|
size_t | get_number_nodes () const |
| Return the number of nodes in the mesh. More...
|
|
size_t | get_number_elements () const |
| Return the number of elements in the mesh. More...
|
|
size_t | get_number_dimensions () const |
| Return the number of spatial dimensions. More...
|
|
const real_t * | get_coords (index_t nid) const |
| Return positions vector. More...
|
|
void | get_coords (index_t nid, real_t *x) const |
| Return copy of the coordinate. More...
|
|
const double * | get_metric (index_t nid) const |
| Return metric at that vertex. More...
|
|
void | get_metric (index_t nid, double *m) const |
| Return copy of metric. More...
|
|
bool | is_halo_node (index_t nid) const |
| Returns true if the node is in any of the partitioned elements. More...
|
|
bool | is_owned_node (index_t nid) const |
| Returns true if the node is assigned to the local partition. More...
|
|
double | get_lmean () |
| Get the mean edge length metric space. More...
|
|
double | calculate_perimeter () |
| Calculate perimeter. More...
|
|
double | calculate_area () |
| Calculate area. More...
|
|
double | calculate_volume () |
| Calculate volume. More...
|
|
double | get_qmean () const |
| Get the element mean quality in metric space. More...
|
|
void | print_quality () const |
| Print out the qualities. Useful if you want to plot a histogram of element qualities. More...
|
|
double | get_qmin () const |
| Get the element minimum quality in metric space. More...
|
|
double | get_qmin_2d () const |
|
double | get_qmin_3d () const |
|
std::set< index_t > | get_node_patch (index_t nid) const |
| Return the node id's connected to the specified node_id. More...
|
|
std::set< index_t > | get_node_patch (index_t nid, size_t min_patch_size) |
| Grow a node patch around node id's until it reaches a minimum size. More...
|
|
real_t | calc_edge_length (index_t nid0, index_t nid1) const |
| Calculates the edge lengths in metric space. More...
|
|
real_t | maximal_edge_length () const |
|
void | defragment () |
|
bool | verify () const |
| This is used to verify that the mesh and its metadata is correct. More...
|
|
void | send_all_to_all (std::vector< std::vector< index_t > > send_vec, std::vector< std::vector< index_t > > *recv_vec) |
|
template<typename real_t>
class Mesh< real_t >
Manages mesh data.
This class is used to store the mesh and associated meta-data.
Definition at line 70 of file Mesh.h.