Functions | |
void | mergeBoundaryIDsWithSameName (MeshBase &mesh) |
Merges the boundary IDs of boundaries that have the same names but different IDs. More... | |
void | changeBoundaryId (MeshBase &mesh, const libMesh::boundary_id_type old_id, const libMesh::boundary_id_type new_id, bool delete_prev) |
Changes the old boundary ID to a new ID in the mesh. More... | |
void | changeSubdomainId (MeshBase &mesh, const subdomain_id_type old_id, const subdomain_id_type new_id) |
Changes the old subdomain ID to a new ID in the mesh. More... | |
std::vector< BoundaryID > | getBoundaryIDs (const libMesh::MeshBase &mesh, const std::vector< BoundaryName > &boundary_name, bool generate_unknown, const std::set< BoundaryID > &mesh_boundary_ids) |
Gets the boundary IDs with their names. More... | |
std::vector< BoundaryID > | getBoundaryIDs (const libMesh::MeshBase &mesh, const std::vector< BoundaryName > &boundary_name, bool generate_unknown) |
Gets the boundary IDs with their names. More... | |
std::set< BoundaryID > | getBoundaryIDSet (const libMesh::MeshBase &mesh, const std::vector< BoundaryName > &boundary_name, bool generate_unknown) |
Gets the boundary IDs into a set with their names. More... | |
BoundaryID | getBoundaryID (const BoundaryName &boundary_name, const MeshBase &mesh) |
Gets the boundary ID associated with the given BoundaryName. More... | |
SubdomainID | getSubdomainID (const SubdomainName &subdomain_name, const MeshBase &mesh) |
Gets the subdomain ID associated with the given SubdomainName. More... | |
std::vector< subdomain_id_type > | getSubdomainIDs (const libMesh::MeshBase &mesh, const std::vector< SubdomainName > &subdomain_name) |
Get the associated subdomainIDs for the subdomain names that are passed in. More... | |
std::set< subdomain_id_type > | getSubdomainIDs (const libMesh::MeshBase &mesh, const std::set< SubdomainName > &subdomain_name) |
Point | meshCentroidCalculator (const MeshBase &mesh) |
Calculates the centroid of a MeshBase. More... | |
template<typename P , typename C > | |
void | coordTransformFactor (const P &point, C &factor, const Moose::CoordinateSystemType coord_type, const unsigned int rz_radial_coord=libMesh::invalid_uint) |
compute a coordinate transformation factor More... | |
template<typename P , typename C > | |
C | computeDistanceToAxis (const P &point, const Point &origin, const RealVectorValue &direction) |
Computes the distance to a general axis. More... | |
template<typename P , typename C > | |
void | coordTransformFactorRZGeneral (const P &point, const std::pair< Point, RealVectorValue > &axis, C &factor) |
Computes a coordinate transformation factor for a general axisymmetric axis. More... | |
void | computeFiniteVolumeCoords (FaceInfo &fi, const Moose::CoordinateSystemType coord_type, const unsigned int rz_radial_coord=libMesh::invalid_uint) |
std::unordered_map< dof_id_type, dof_id_type > | getExtraIDUniqueCombinationMap (const MeshBase &mesh, const std::set< SubdomainID > &block_ids, std::vector< ExtraElementIDName > extra_ids) |
Crate a new set of element-wise IDs by finding unique combinations of existing extra ID values. More... | |
bool | isCoPlanar (const std::vector< Point > vec_pts, const Point plane_nvec, const Point fixed_pt) |
Decides whether all the Points of a vector of Points are in a plane that is defined by a normal vector and an inplane Point. More... | |
bool | isCoPlanar (const std::vector< Point > vec_pts, const Point plane_nvec) |
Decides whether all the Points of a vector of Points are in a plane with a given normal vector. More... | |
bool | isCoPlanar (const std::vector< Point > vec_pts) |
Decides whether all the Points of a vector of Points are coplanar. More... | |
SubdomainID | getNextFreeSubdomainID (MeshBase &input_mesh) |
Checks input mesh and returns max(block ID) + 1, which represents a block ID that is not currently in use in the mesh. More... | |
BoundaryID | getNextFreeBoundaryID (MeshBase &input_mesh) |
Checks input mesh and returns the largest boundary ID in the mesh plus one, which is a boundary ID in the mesh that is not currently in use. More... | |
bool | hasSubdomainID (const MeshBase &input_mesh, const SubdomainID &id) |
Whether a particular subdomain ID exists in the mesh. More... | |
bool | hasSubdomainName (const MeshBase &input_mesh, const SubdomainName &name) |
Whether a particular subdomain name exists in the mesh. More... | |
bool | hasBoundaryID (const MeshBase &input_mesh, const BoundaryID id) |
Whether a particular boundary ID exists in the mesh. More... | |
bool | hasBoundaryName (const MeshBase &input_mesh, const BoundaryName &name) |
Whether a particular boundary name exists in the mesh. More... | |
void | makeOrderedNodeList (std::vector< std::pair< dof_id_type, dof_id_type >> &node_assm, std::vector< dof_id_type > &elem_id_list, std::vector< dof_id_type > &midpoint_node_list, std::vector< dof_id_type > &ordered_node_list, std::vector< dof_id_type > &ordered_elem_id_list) |
Convert a list of sides in the form of a vector of pairs of node ids into a list of ordered nodes based on connectivity. More... | |
void | makeOrderedNodeList (std::vector< std::pair< dof_id_type, dof_id_type >> &node_assm, std::vector< dof_id_type > &elem_id_list, std::vector< dof_id_type > &ordered_node_list, std::vector< dof_id_type > &ordered_elem_id_list) |
Convert a list of sides in the form of a vector of pairs of node ids into a list of ordered nodes based on connectivity. More... | |
template<typename T , typename Q > | |
Q | getIDFromName (const T &name) |
Converts a given name (BoundaryName or SubdomainName) that is known to only contain digits into a corresponding ID (BoundaryID or SubdomainID) and performs bounds checking to ensure that overflow doesn't happen. More... | |
void | swapNodesInElem (Elem &elem, const unsigned int nd1, const unsigned int nd2) |
Swap two nodes within an element. More... | |
template<typename T > | |
void | idSwapParametersProcessor (const std::string &class_name, const std::string &id_name, const std::vector< std::vector< T >> &id_swaps, std::vector< std::unordered_map< T, T >> &id_swap_pairs, const unsigned int row_index_shift=0) |
Reprocess the swap related input parameters to make pairs out of them to ease further processing. More... | |
void | extraElemIntegerSwapParametersProcessor (const std::string &class_name, const unsigned int num_sections, const unsigned int num_integers, const std::vector< std::vector< std::vector< dof_id_type >>> &elem_integers_swaps, std::vector< std::unordered_map< dof_id_type, dof_id_type >> &elem_integers_swap_pairs) |
Reprocess the elem_integers_swaps into maps so they are easier to use. More... | |
std::unique_ptr< ReplicatedMesh > | buildBoundaryMesh (const ReplicatedMesh &input_mesh, const boundary_id_type boundary_id) |
Build a lower-dimensional mesh from a boundary of an input mesh Note: The lower-dimensional mesh will only have one subdomain and one boundary. More... | |
void | mergeBoundaryIDsWithSameName (MeshBase &mesh) |
void | changeBoundaryId (MeshBase &mesh, const boundary_id_type old_id, const boundary_id_type new_id, bool delete_prev) |
BoundaryID | getBoundaryID (const BoundaryName &boundary_name, const MeshBase &mesh) |
SubdomainID | getSubdomainID (const SubdomainName &subdomain_name, const MeshBase &mesh) |
void | changeSubdomainId (MeshBase &mesh, const subdomain_id_type old_id, const subdomain_id_type new_id) |
Point | meshCentroidCalculator (const MeshBase &mesh) |
std::unordered_map< dof_id_type, dof_id_type > | getExtraIDUniqueCombinationMap (const MeshBase &mesh, const std::set< SubdomainID > &block_ids, std::vector< ExtraElementIDName > extra_ids) |
bool | isCoPlanar (const std::vector< Point > vec_pts, const Point plane_nvec, const Point fixed_pt) |
bool | isCoPlanar (const std::vector< Point > vec_pts, const Point plane_nvec) |
bool | isCoPlanar (const std::vector< Point > vec_pts) |
SubdomainID | getNextFreeSubdomainID (MeshBase &input_mesh) |
BoundaryID | getNextFreeBoundaryID (MeshBase &input_mesh) |
bool | hasSubdomainID (const MeshBase &input_mesh, const SubdomainID &id) |
bool | hasSubdomainName (const MeshBase &input_mesh, const SubdomainName &name) |
bool | hasBoundaryID (const MeshBase &input_mesh, const BoundaryID id) |
bool | hasBoundaryName (const MeshBase &input_mesh, const BoundaryName &name) |
void | swapNodesInElem (Elem &elem, const unsigned int nd1, const unsigned int nd2) |
std::unique_ptr< ReplicatedMesh > | buildBoundaryMesh (const ReplicatedMesh &input_mesh, const boundary_id_type boundary_id) |
std::unique_ptr<ReplicatedMesh> MooseMeshUtils::buildBoundaryMesh | ( | const ReplicatedMesh & | input_mesh, |
const boundary_id_type | boundary_id | ||
) |
Build a lower-dimensional mesh from a boundary of an input mesh Note: The lower-dimensional mesh will only have one subdomain and one boundary.
Error will be thrown if the mesh does not have the boundary. This function works only with replicated mesh, for similar functionality with distributed meshes, please refer to LowerDBlockFromSidesetGenerator generator.
input_mesh | The input mesh |
boundary_id | The boundary id |
std::unique_ptr<ReplicatedMesh> MooseMeshUtils::buildBoundaryMesh | ( | const ReplicatedMesh & | input_mesh, |
const boundary_id_type | boundary_id | ||
) |
Definition at line 584 of file MooseMeshUtils.C.
void MooseMeshUtils::changeBoundaryId | ( | MeshBase & | mesh, |
const libMesh::boundary_id_type | old_id, | ||
const libMesh::boundary_id_type | new_id, | ||
bool | delete_prev | ||
) |
Changes the old boundary ID to a new ID in the mesh.
mesh | the mesh |
old_id | the old boundary id |
new_id | the new boundary id |
delete_prev | whether to delete the previous boundary id from the mesh |
Referenced by MeshExtruderGenerator::changeID(), and FillBetweenSidesetsGenerator::generate().
void MooseMeshUtils::changeBoundaryId | ( | MeshBase & | mesh, |
const boundary_id_type | old_id, | ||
const boundary_id_type | new_id, | ||
bool | delete_prev | ||
) |
Definition at line 52 of file MooseMeshUtils.C.
void MooseMeshUtils::changeSubdomainId | ( | MeshBase & | mesh, |
const subdomain_id_type | old_id, | ||
const subdomain_id_type | new_id | ||
) |
Changes the old subdomain ID to a new ID in the mesh.
mesh | the mesh |
old_id | the old subdomain id |
new_id | the new subdomain id |
void MooseMeshUtils::changeSubdomainId | ( | MeshBase & | mesh, |
const subdomain_id_type | old_id, | ||
const subdomain_id_type | new_id | ||
) |
Definition at line 239 of file MooseMeshUtils.C.
C MooseMeshUtils::computeDistanceToAxis | ( | const P & | point, |
const Point & | origin, | ||
const RealVectorValue & | direction | ||
) |
Computes the distance to a general axis.
[in] | point | Point for which to compute distance from axis |
[in] | origin | Axis starting point |
[in] | direction | Axis direction |
Definition at line 174 of file MooseMeshUtils.h.
|
inline |
Definition at line 197 of file MooseMeshUtils.h.
void MooseMeshUtils::coordTransformFactor | ( | const P & | point, |
C & | factor, | ||
const Moose::CoordinateSystemType | coord_type, | ||
const unsigned int | rz_radial_coord = libMesh::invalid_uint |
||
) |
compute a coordinate transformation factor
point | The libMesh Point in space where we are evaluating the factor |
factor | The output of this function. Would be 1 for cartesian coordinate systems, 2*pi*r for cylindrical coordinate systems, and 4*pi*r^2 for spherical coordinate systems |
coord_type | The coordinate system type, e.g. cartesian (COORD_XYZ), cylindrical (COORD_RZ), or spherical (COORD_RSPHERICAL) |
rz_radial_coord | The index at which to index point for the radial coordinate when in a cylindrical coordinate system |
Definition at line 140 of file MooseMeshUtils.h.
Referenced by computeFiniteVolumeCoords(), coordTransformFactor(), Moose::FV::greenGaussGradient(), and Moose::FV::loopOverElemFaceInfo().
void MooseMeshUtils::coordTransformFactorRZGeneral | ( | const P & | point, |
const std::pair< Point, RealVectorValue > & | axis, | ||
C & | factor | ||
) |
Computes a coordinate transformation factor for a general axisymmetric axis.
[in] | point | The libMesh Point in space where we are evaluating the factor |
[in] | axis | The pair of values defining the general axisymmetric axis. Respectively, the values are the axis starting point and direction. |
[out] | factor | The coordinate transformation factor |
Definition at line 189 of file MooseMeshUtils.h.
Referenced by coordTransformFactor().
void MooseMeshUtils::extraElemIntegerSwapParametersProcessor | ( | const std::string & | class_name, |
const unsigned int | num_sections, | ||
const unsigned int | num_integers, | ||
const std::vector< std::vector< std::vector< dof_id_type >>> & | elem_integers_swaps, | ||
std::vector< std::unordered_map< dof_id_type, dof_id_type >> & | elem_integers_swap_pairs | ||
) |
Reprocess the elem_integers_swaps into maps so they are easier to use.
class_name | name of the mesh generator class used for exception messages |
num_sections | number of sections in the mesh |
num_integers | number of extra element integers in the mesh |
elem_integers_swaps | vector of vectors of vectors of extra element ids to be swapped |
elem_integers_swap_pairs | vector of maps of the swapped pairs |
Definition at line 552 of file MooseMeshUtils.C.
Referenced by AdvancedExtruderGenerator::AdvancedExtruderGenerator().
BoundaryID MooseMeshUtils::getBoundaryID | ( | const BoundaryName & | boundary_name, |
const MeshBase & | mesh | ||
) |
Gets the boundary ID associated with the given BoundaryName.
This is needed because the BoundaryName can be either an ID or a name. If it is a name, the mesh is queried for the ID associated with said name.
Referenced by MultiAppNearestNodeTransfer::execute(), BoundaryDeletionGenerator::generate(), RenameBoundaryGenerator::generate(), SideSetsFromBoundingBoxGenerator::generate(), XYDelaunayGenerator::generate(), CutMeshByLevelSetGeneratorBase::generate(), and MooseMesh::getBoundaryID().
BoundaryID MooseMeshUtils::getBoundaryID | ( | const BoundaryName & | boundary_name, |
const MeshBase & | mesh | ||
) |
Definition at line 206 of file MooseMeshUtils.C.
Referenced by hasBoundaryName().
std::vector< boundary_id_type > MooseMeshUtils::getBoundaryIDs | ( | const libMesh::MeshBase & | mesh, |
const std::vector< BoundaryName > & | boundary_name, | ||
bool | generate_unknown, | ||
const std::set< BoundaryID > & | mesh_boundary_ids | ||
) |
Gets the boundary IDs with their names.
The ordering of the returned boundary ID vector matches the vector of the boundary names in boundary_name
. When a boundary name is not available in the mesh, if generate_unknown
is true a non-existant boundary ID will be returned, otherwise a BoundaryInfo::invalid_id will be returned.
If the conversion from a name to a number fails, that means that this must be a named boundary. We will look in the complete map for this sideset and create a new name/ID pair if requested.
If the conversion from a name to a number fails, that means that this must be a named boundary. We will look in the complete map for this sideset and create a new name/ID pair if requested.
Definition at line 105 of file MooseMeshUtils.C.
Referenced by BoundaryPreservedMarker::BoundaryPreservedMarker(), MeshExtruderGenerator::changeID(), SubProblem::checkBoundaryMatProps(), BoundaryLayerSubdomainGenerator::generate(), ExtraNodesetGenerator::generate(), FillBetweenSidesetsGenerator::generate(), LowerDBlockFromSidesetGenerator::generate(), SideSetsFromNormalsGenerator::generate(), BreakBoundaryOnSubdomainGenerator::generate(), PolyLineMeshGenerator::generate(), RefineSidesetGenerator::generate(), SideSetsBetweenSubdomainsGenerator::generate(), SideSetsFromPointsGenerator::generate(), MeshDiagnosticsGenerator::generate(), StackGenerator::generate(), ParsedGenerateNodeset::generate(), AdvancedExtruderGenerator::generate(), CircularBoundaryCorrectionGenerator::generate(), XYDelaunayGenerator::generate(), ElementDeletionGeneratorBase::generate(), ParsedGenerateSideset::generate(), SideSetsAroundSubdomainGenerator::generate(), PatternedMeshGenerator::generate(), BoundingBoxNodeSetGenerator::generate(), getBoundaryIDs(), MooseMesh::getBoundaryIDs(), getBoundaryIDSet(), NodeSetsGeneratorBase::setup(), and SideSetsGeneratorBase::setup().
std::vector< boundary_id_type > MooseMeshUtils::getBoundaryIDs | ( | const libMesh::MeshBase & | mesh, |
const std::vector< BoundaryName > & | boundary_name, | ||
bool | generate_unknown | ||
) |
Gets the boundary IDs with their names.
The ordering of the returned boundary ID vector matches the vector of the boundary names in boundary_name
. When a boundary name is not available in the mesh, if generate_unknown
is true a non-existant boundary ID will be returned, otherwise a BoundaryInfo::invalid_id will be returned.
Definition at line 96 of file MooseMeshUtils.C.
std::set< BoundaryID > MooseMeshUtils::getBoundaryIDSet | ( | const libMesh::MeshBase & | mesh, |
const std::vector< BoundaryName > & | boundary_name, | ||
bool | generate_unknown | ||
) |
Gets the boundary IDs into a set with their names.
Because libMesh allows the same boundary to have multiple different boundary names, the size of the returned boundary ID set may be smaller than the size of the bounndary name vector. When a boundary name is not available in the mesh, if generate_unknown
is true a non-existant boundary ID will be returned, otherwise a BoundaryInfo::invalid_id will be returned.
Definition at line 177 of file MooseMeshUtils.C.
Referenced by DomainUserObject::DomainUserObject().
std::unordered_map<dof_id_type, dof_id_type> MooseMeshUtils::getExtraIDUniqueCombinationMap | ( | const MeshBase & | mesh, |
const std::set< SubdomainID > & | block_ids, | ||
std::vector< ExtraElementIDName > | extra_ids | ||
) |
Crate a new set of element-wise IDs by finding unique combinations of existing extra ID values.
This function finds the unique combinations by recursively calling itself for extra ID inputs. In the recursive calling, the new unique combinations is determined by combining the extra ID value of current level and the unique combination determined in the previous level in recursion. In the lowest level of recursion, the base combination is set by the unique ID values of the corresponding extra ID.
mesh | input mesh |
block_ids | block ids |
extra_ids | extra ids |
Referenced by ExtraIDIntegralVectorPostprocessor::ExtraIDIntegralVectorPostprocessor(), UniqueExtraIDMeshGenerator::generate(), and getExtraIDUniqueCombinationMap().
std::unordered_map<dof_id_type, dof_id_type> MooseMeshUtils::getExtraIDUniqueCombinationMap | ( | const MeshBase & | mesh, |
const std::set< SubdomainID > & | block_ids, | ||
std::vector< ExtraElementIDName > | extra_ids | ||
) |
Definition at line 268 of file MooseMeshUtils.C.
Q MooseMeshUtils::getIDFromName | ( | const T & | name | ) |
Converts a given name (BoundaryName or SubdomainName) that is known to only contain digits into a corresponding ID (BoundaryID or SubdomainID) and performs bounds checking to ensure that overflow doesn't happen.
name | Name that is to be converted into an ID. |
Definition at line 328 of file MooseMeshUtils.h.
BoundaryID MooseMeshUtils::getNextFreeBoundaryID | ( | MeshBase & | input_mesh | ) |
Checks input mesh and returns the largest boundary ID in the mesh plus one, which is a boundary ID in the mesh that is not currently in use.
input | mesh over which to compute the next free boundary ID |
Referenced by SideSetsFromBoundingBoxGenerator::generate(), XYZDelaunayGenerator::generate(), XYMeshLineCutter::generate(), XYDelaunayGenerator::generate(), and CutMeshByLevelSetGeneratorBase::generate().
BoundaryID MooseMeshUtils::getNextFreeBoundaryID | ( | MeshBase & | input_mesh | ) |
Definition at line 409 of file MooseMeshUtils.C.
SubdomainID MooseMeshUtils::getNextFreeSubdomainID | ( | MeshBase & | input_mesh | ) |
Checks input mesh and returns max(block ID) + 1, which represents a block ID that is not currently in use in the mesh.
input | mesh over which to compute the next free block id |
Referenced by BoundaryLayerSubdomainGenerator::generate(), LowerDBlockFromSidesetGenerator::generate(), XYZDelaunayGenerator::generate(), XYDelaunayGenerator::generate(), and MeshRepairGenerator::separateSubdomainsByElementType().
SubdomainID MooseMeshUtils::getNextFreeSubdomainID | ( | MeshBase & | input_mesh | ) |
Definition at line 389 of file MooseMeshUtils.C.
SubdomainID MooseMeshUtils::getSubdomainID | ( | const SubdomainName & | subdomain_name, |
const MeshBase & | mesh | ||
) |
Gets the subdomain ID associated with the given SubdomainName.
This is needed because the SubdomainName can be either an ID or a name. If it is a name, the mesh is queried for the ID associated with said name.
Referenced by UniqueExtraIDMeshGenerator::generate(), RenameBlockGenerator::generate(), ParsedExtraElementIDGenerator::generate(), XYZDelaunayGenerator::generate(), XYDelaunayGenerator::generate(), SubdomainBoundingBoxGenerator::generate(), MooseMesh::getSubdomainID(), getSubdomainIDs(), MooseMeshXYCuttingUtils::quadToTriOnLine(), and MooseMeshXYCuttingUtils::quasiTriElementsFixer().
SubdomainID MooseMeshUtils::getSubdomainID | ( | const SubdomainName & | subdomain_name, |
const MeshBase & | mesh | ||
) |
Definition at line 221 of file MooseMeshUtils.C.
Referenced by hasSubdomainName().
std::vector< subdomain_id_type > MooseMeshUtils::getSubdomainIDs | ( | const libMesh::MeshBase & | mesh, |
const std::vector< SubdomainName > & | subdomain_name | ||
) |
Get the associated subdomainIDs for the subdomain names that are passed in.
mesh | The mesh |
subdomain_name | The names of the subdomains |
Definition at line 186 of file MooseMeshUtils.C.
Referenced by BlockToMeshConverterGenerator::generate(), BreakMeshByBlockGenerator::generate(), RefineBlockGenerator::generate(), CoarsenBlockGenerator::generate(), BlockDeletionGenerator::generate(), ParsedSubdomainGeneratorBase::generate(), XYDelaunayGenerator::generate(), MooseMesh::getSubdomainIDs(), BlockWeightedPartitioner::initialize(), LibmeshPartitioner::prepareBlocksForSubdomainPartitioner(), NodeSetsGeneratorBase::setup(), SideSetsGeneratorBase::setup(), and SidesetAroundSubdomainUpdater::SidesetAroundSubdomainUpdater().
std::set< subdomain_id_type > MooseMeshUtils::getSubdomainIDs | ( | const libMesh::MeshBase & | mesh, |
const std::set< SubdomainName > & | subdomain_name | ||
) |
Definition at line 197 of file MooseMeshUtils.C.
bool MooseMeshUtils::hasBoundaryID | ( | const MeshBase & | input_mesh, |
const BoundaryID | id | ||
) |
Whether a particular boundary ID exists in the mesh.
input | mesh over which to determine boundary IDs |
boundary | ID |
Referenced by MooseMeshXYCuttingUtils::boundaryTriElemImprover(), AdvancedExtruderGenerator::generate(), and XYMeshLineCutter::generate().
bool MooseMeshUtils::hasBoundaryID | ( | const MeshBase & | input_mesh, |
const BoundaryID | id | ||
) |
Definition at line 439 of file MooseMeshUtils.C.
Referenced by hasBoundaryName().
bool MooseMeshUtils::hasBoundaryName | ( | const MeshBase & | input_mesh, |
const BoundaryName & | name | ||
) |
Whether a particular boundary name exists in the mesh.
input | mesh over which to determine boundary names |
boundary | name |
Referenced by AddPeriodicBCAction::act(), MultiAppNearestNodeTransfer::execute(), MultiAppUserObjectTransfer::execute(), BreakBoundaryOnSubdomainGenerator::generate(), LowerDBlockFromSidesetGenerator::generate(), MeshDiagnosticsGenerator::generate(), CircularBoundaryCorrectionGenerator::generate(), CutMeshByLevelSetGeneratorBase::generate(), MultiAppNearestNodeTransfer::getLocalEntitiesAndComponents(), and MultiAppNearestNodeTransfer::getTargetLocalNodes().
bool MooseMeshUtils::hasBoundaryName | ( | const MeshBase & | input_mesh, |
const BoundaryName & | name | ||
) |
Definition at line 453 of file MooseMeshUtils.C.
bool MooseMeshUtils::hasSubdomainID | ( | const MeshBase & | input_mesh, |
const SubdomainID & | id | ||
) |
Whether a particular subdomain ID exists in the mesh.
input | mesh over which to determine subdomain IDs |
subdomain | ID |
Referenced by BlockDeletionGenerator::generate(), CoarsenBlockGenerator::generate(), RefineBlockGenerator::generate(), AdvancedExtruderGenerator::generate(), MeshExtruderGenerator::generate(), and BreakMeshByElementGenerator::generate().
bool MooseMeshUtils::hasSubdomainID | ( | const MeshBase & | input_mesh, |
const SubdomainID & | id | ||
) |
Definition at line 418 of file MooseMeshUtils.C.
Referenced by hasSubdomainName().
bool MooseMeshUtils::hasSubdomainName | ( | const MeshBase & | input_mesh, |
const SubdomainName & | name | ||
) |
Whether a particular subdomain name exists in the mesh.
input | mesh over which to determine subdomain names |
subdomain | name |
Referenced by MultiAppUserObjectTransfer::execute(), UniqueExtraIDMeshGenerator::generate(), ParsedSubdomainGeneratorBase::generate(), BreakMeshByBlockGenerator::generate(), ParsedExtraElementIDGenerator::generate(), SubdomainBoundingBoxGenerator::generate(), MultiAppDofCopyTransfer::initialSetup(), NodeSetsGeneratorBase::setup(), and SideSetsGeneratorBase::setup().
bool MooseMeshUtils::hasSubdomainName | ( | const MeshBase & | input_mesh, |
const SubdomainName & | name | ||
) |
Definition at line 432 of file MooseMeshUtils.C.
void MooseMeshUtils::idSwapParametersProcessor | ( | const std::string & | class_name, |
const std::string & | id_name, | ||
const std::vector< std::vector< T >> & | id_swaps, | ||
std::vector< std::unordered_map< T, T >> & | id_swap_pairs, | ||
const unsigned int | row_index_shift = 0 |
||
) |
Reprocess the swap related input parameters to make pairs out of them to ease further processing.
class_name | name of the mesh generator class used for exception messages |
id_name | name of the parameter to be swapped used for exception messages |
id_swaps | vector of vectors of the ids to be swapped |
id_swap_pairs | vector of maps of the swapped pairs |
row_index_shift | shift to be applied to the row index in the exception messages (useful when this method is utilized to process a fraction of a long vector) |
Definition at line 365 of file MooseMeshUtils.h.
Referenced by AdvancedExtruderGenerator::AdvancedExtruderGenerator(), and extraElemIntegerSwapParametersProcessor().
bool MooseMeshUtils::isCoPlanar | ( | const std::vector< Point > | vec_pts, |
const Point | plane_nvec, | ||
const Point | fixed_pt | ||
) |
Decides whether all the Points of a vector of Points are in a plane that is defined by a normal vector and an inplane Point.
vec_pts | vector of points to be examined |
plane_nvec | normal vector of the plane |
fixed_pt | a Point in the plane |
Referenced by Positions::arePositionsCoplanar(), and FillBetweenPointVectorsTools::fillBetweenPointVectorsGenerator().
bool MooseMeshUtils::isCoPlanar | ( | const std::vector< Point > | vec_pts, |
const Point | plane_nvec | ||
) |
Decides whether all the Points of a vector of Points are in a plane with a given normal vector.
vec_pts | vector of points to be examined |
plane_nvec | normal vector of the plane |
bool MooseMeshUtils::isCoPlanar | ( | const std::vector< Point > | vec_pts | ) |
Decides whether all the Points of a vector of Points are coplanar.
vec_pts | vector of points to be examined |
bool MooseMeshUtils::isCoPlanar | ( | const std::vector< Point > | vec_pts, |
const Point | plane_nvec, | ||
const Point | fixed_pt | ||
) |
Definition at line 347 of file MooseMeshUtils.C.
Definition at line 356 of file MooseMeshUtils.C.
bool MooseMeshUtils::isCoPlanar | ( | const std::vector< Point > | vec_pts | ) |
Definition at line 362 of file MooseMeshUtils.C.
Referenced by isCoPlanar().
void MooseMeshUtils::makeOrderedNodeList | ( | std::vector< std::pair< dof_id_type, dof_id_type >> & | node_assm, |
std::vector< dof_id_type > & | elem_id_list, | ||
std::vector< dof_id_type > & | midpoint_node_list, | ||
std::vector< dof_id_type > & | ordered_node_list, | ||
std::vector< dof_id_type > & | ordered_elem_id_list | ||
) |
Convert a list of sides in the form of a vector of pairs of node ids into a list of ordered nodes based on connectivity.
node_assm | vector of pairs of node ids that represent the sides |
elem_id_list | vector of element ids that represent the elements that contain the sides |
midpoint_node_list | vector of node ids that represent the midpoints of the sides for quadratic sides |
ordered_node_list | vector of node ids that represent the ordered nodes |
ordered_elem_id_list | vector of element corresponding to the ordered nodes |
Definition at line 460 of file MooseMeshUtils.C.
Referenced by MooseMeshXYCuttingUtils::boundaryTriElemImprover(), FillBetweenPointVectorsTools::isClosedLoop(), and makeOrderedNodeList().
void MooseMeshUtils::makeOrderedNodeList | ( | std::vector< std::pair< dof_id_type, dof_id_type >> & | node_assm, |
std::vector< dof_id_type > & | elem_id_list, | ||
std::vector< dof_id_type > & | ordered_node_list, | ||
std::vector< dof_id_type > & | ordered_elem_id_list | ||
) |
Convert a list of sides in the form of a vector of pairs of node ids into a list of ordered nodes based on connectivity.
node_assm | vector of pairs of node ids that represent the sides |
elem_id_list | vector of element ids that represent the elements that contain the sides |
ordered_node_list | vector of node ids that represent the ordered nodes |
ordered_elem_id_list | vector of element corresponding to the ordered nodes |
Definition at line 533 of file MooseMeshUtils.C.
Definition at line 25 of file MooseMeshUtils.C.
void MooseMeshUtils::mergeBoundaryIDsWithSameName | ( | MeshBase & | mesh | ) |
Merges the boundary IDs of boundaries that have the same names but different IDs.
mesh | The input mesh whose boundaries we will modify |
Referenced by MeshRepairGenerator::generate(), and StitchedMeshGenerator::generate().
Point MooseMeshUtils::meshCentroidCalculator | ( | const MeshBase & | mesh | ) |
Calculates the centroid of a MeshBase.
mesh | input mesh whose centroid needs to be calculated |
Referenced by FillBetweenSidesetsGenerator::generate(), and MultiAppPositions::initialize().
Definition at line 250 of file MooseMeshUtils.C.
void MooseMeshUtils::swapNodesInElem | ( | Elem & | elem, |
const unsigned int | nd1, | ||
const unsigned int | nd2 | ||
) |
Swap two nodes within an element.
elem | element whose nodes need to be swapped |
nd1 | index of the first node to be swapped |
nd2 | index of the second node to be swapped |
Referenced by AdvancedExtruderGenerator::generate().