Functions | |
bool | getFineElementsFromInteriorNode (const libMesh::Node &interior_node, const libMesh::Node &reference_node, const libMesh::Elem &elem, std::vector< const libMesh::Node *> &tentative_coarse_nodes, std::set< const libMesh::Elem *> &fine_elements) |
Utility routine to gather vertex nodes for, and elements contained in, for a coarse QUAD or HEX element. More... | |
void | reorderNodes (std::vector< const libMesh::Node *> &nodes, const libMesh::Point &origin, const libMesh::Point &clock_start, libMesh::Point &axis) |
Utility routine to re-order a vector of nodes so that they can form a valid quad element. More... | |
unsigned int | getOppositeNodeIndex (libMesh::ElemType elem_type, unsigned int node_index) |
Utility routine to get the index of the node opposite, in the element, to the node of interest. More... | |
bool | getFineElementsFromInteriorNode (const libMesh::Node &interior_node, const libMesh::Node &reference_node, const libMesh::Elem &fine_elem, std::vector< const libMesh::Node *> &tentative_coarse_nodes, std::set< const libMesh::Elem *> &fine_elements) |
void | reorderNodes (std::vector< const libMesh::Node *> &nodes, const libMesh::Point &origin, const libMesh::Point &clock_start, libMesh::Point &axis) |
Utility routine to re-order a vector of nodes so that they can form a valid quad element. More... | |
bool MeshCoarseningUtils::getFineElementsFromInteriorNode | ( | const libMesh::Node & | interior_node, |
const libMesh::Node & | reference_node, | ||
const libMesh::Elem & | fine_elem, | ||
std::vector< const libMesh::Node *> & | tentative_coarse_nodes, | ||
std::set< const libMesh::Elem *> & | fine_elements | ||
) |
Definition at line 22 of file MeshCoarseningUtils.C.
bool MeshCoarseningUtils::getFineElementsFromInteriorNode | ( | const libMesh::Node & | interior_node, |
const libMesh::Node & | reference_node, | ||
const libMesh::Elem & | elem, | ||
std::vector< const libMesh::Node *> & | tentative_coarse_nodes, | ||
std::set< const libMesh::Elem *> & | fine_elements | ||
) |
Utility routine to gather vertex nodes for, and elements contained in, for a coarse QUAD or HEX element.
interior_node | the node inside the coarse element |
reference_node | another node used to order the vertex nodes in a clockwise order for QUAD elements |
elem | an element containing the node. Its neighbor lists must be up to date so it should come from a prepared mesh |
tentative_coarse_nodes | nodes to be used to form the coarse element |
fine_elements | fine elements that are inside the coarse element |
Referenced by MeshDiagnosticsGenerator::checkNonConformalMeshFromAdaptivity(), and CoarsenBlockGenerator::recursiveCoarsen().
unsigned int MeshCoarseningUtils::getOppositeNodeIndex | ( | libMesh::ElemType | elem_type, |
unsigned int | node_index | ||
) |
Utility routine to get the index of the node opposite, in the element, to the node of interest.
elem_type | type of the element |
node_index | local index of the node of interest |
Definition at line 260 of file MeshCoarseningUtils.C.
Referenced by getFineElementsFromInteriorNode(), and CoarsenBlockGenerator::recursiveCoarsen().
void MeshCoarseningUtils::reorderNodes | ( | std::vector< const libMesh::Node *> & | nodes, |
const libMesh::Point & | origin, | ||
const libMesh::Point & | clock_start, | ||
libMesh::Point & | axis | ||
) |
Utility routine to re-order a vector of nodes so that they can form a valid quad element.
nodes | the vector containing the nodes to re-order |
origin | the center of the clock (circle to align nodes around) |
clock_start | the start of the clock |
axis | the rotation axis (will be normalized) |
Definition at line 221 of file MeshCoarseningUtils.C.
Referenced by MeshDiagnosticsGenerator::checkNonConformalMeshFromAdaptivity(), and getFineElementsFromInteriorNode().
void MeshCoarseningUtils::reorderNodes | ( | std::vector< const libMesh::Node *> & | nodes, |
const libMesh::Point & | origin, | ||
const libMesh::Point & | clock_start, | ||
libMesh::Point & | axis | ||
) |
Utility routine to re-order a vector of nodes so that they can form a valid quad element.
nodes | the vector containing the nodes to re-order |
origin | the center of the clock (circle to align nodes around) |
clock_start | the start of the clock |
axis | the rotation axis (will be normalized) |
Definition at line 221 of file MeshCoarseningUtils.C.
Referenced by MeshDiagnosticsGenerator::checkNonConformalMeshFromAdaptivity(), and getFineElementsFromInteriorNode().