12 #include "libmesh/mesh_base.h" 13 #include "libmesh/boundary_info.h" 54 const std::vector<BoundaryName> & boundary_name,
55 bool generate_unknown,
56 const std::set<BoundaryID> & mesh_boundary_ids);
68 const std::vector<BoundaryName> & boundary_name,
69 bool generate_unknown);
82 const std::vector<BoundaryName> & boundary_name,
83 bool generate_unknown);
109 const std::vector<SubdomainName> & subdomain_name);
128 template <
typename P,
typename C>
143 "Must pass in a valid rz radial coordinate");
144 factor = 2 * M_PI * point(rz_radial_coord);
148 factor = 4 * M_PI * point(0) * point(0);
162 template <
typename P,
typename C>
166 return (point - origin).cross(direction).norm();
177 template <
typename P,
typename C>
180 const std::pair<Point, RealVectorValue> & axis,
183 factor = 2 * M_PI * computeDistanceToAxis<P, C>(point, axis.first, axis.second);
208 std::unordered_map<dof_id_type, dof_id_type>
210 const std::set<SubdomainID> & block_ids,
211 std::vector<ExtraElementIDName> extra_ids);
221 bool isCoPlanar(
const std::vector<Point> vec_pts,
const Point plane_nvec,
const Point fixed_pt);
229 bool isCoPlanar(
const std::vector<Point> vec_pts,
const Point plane_nvec);
236 bool isCoPlanar(
const std::vector<Point> vec_pts);
278 bool hasBoundaryName(
const MeshBase & input_mesh,
const BoundaryName & name);
289 std::vector<dof_id_type> & elem_id_list,
290 std::vector<dof_id_type> & ordered_node_list,
291 std::vector<dof_id_type> & ordered_elem_id_list);
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...
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.
const unsigned int invalid_uint
bool hasBoundaryName(const MeshBase &input_mesh, const BoundaryName &name)
Whether a particular boundary name exists in the mesh.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
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
const Point & faceCentroid() const
Returns the coordinates of the face centroid.
void coordTransformFactorRZGeneral(const P &point, const std::pair< Point, RealVectorValue > &axis, C &factor)
Computes a coordinate transformation factor for a general axisymmetric axis.
bool hasBoundaryID(const MeshBase &input_mesh, const BoundaryID id)
Whether a particular boundary ID exists in the mesh.
Real & faceCoord()
Sets/gets the coordinate transformation factor (for e.g.
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.
SubdomainID getSubdomainID(const SubdomainName &subdomain_name, const MeshBase &mesh)
Gets the subdomain ID associated with the given SubdomainName.
C computeDistanceToAxis(const P &point, const Point &origin, const RealVectorValue &direction)
Computes the distance to a general axis.
BoundaryID getBoundaryID(const BoundaryName &boundary_name, const MeshBase &mesh)
Gets the boundary ID associated with the given BoundaryName.
This data structure is used to store geometric and variable related metadata about each cell face in ...
boundary_id_type BoundaryID
void computeFaceInfoFaceCoord(FaceInfo &fi, const Moose::CoordinateSystemType coord_type, const unsigned int rz_radial_coord=libMesh::invalid_uint)
bool hasSubdomainName(MeshBase &input_mesh, const SubdomainName &name)
Whether a particular subdomain name exists in the mesh.
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.
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 vecto...
subdomain_id_type SubdomainID
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 bas...
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.
Point meshCentroidCalculator(const MeshBase &mesh)
Calculates the centroid of a MeshBase.
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.
SubdomainID getNextFreeSubdomainID(MeshBase &input_mesh)
Checks input mesh and returns max(block ID) + 1, which represents a block ID that is not currently in...
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...
bool hasSubdomainID(MeshBase &input_mesh, const SubdomainID &id)
Whether a particular subdomain ID exists in the mesh.