11 #include "libmesh/node.h" 12 #include "libmesh/node_elem.h" 13 #include "libmesh/edge_edge2.h" 14 #include "libmesh/edge_edge3.h" 15 #include "libmesh/face_quad4.h" 16 #include "libmesh/face_quad9.h" 30 params.
addParam<
MooseEnum>(
"dim", dims,
"The dimension of the mesh to be generated");
32 params.
set<
bool>(
"allow_renumbering") =
false;
41 _next_subdomain_id(0),
48 _dim(other_mesh._dim),
49 _next_node_id(other_mesh._next_node_id),
50 _next_element_id(other_mesh._next_element_id),
51 _next_subdomain_id(other_mesh._next_subdomain_id),
52 _next_boundary_id(other_mesh._next_boundary_id)
68 std::unique_ptr<MooseMesh>
110 for (std::size_t i = 0; i < node_ids.size(); i++)
static InputParameters validParams()
static InputParameters validParams()
virtual Node *& set_node(const unsigned int i)
virtual dof_id_type getNextNodeId()
Gets the next node ID.
void set_spatial_dimension(unsigned char d)
Elem * addElementEdge2(dof_id_type node0, dof_id_type node1)
THMMesh(const InputParameters ¶meters)
virtual unsigned int effectiveSpatialDimension() const override
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
dof_id_type _next_element_id
The next element ID in the mesh (used for mesh generation)
static const BoundaryName INVALID_BOUNDARY_ID
Elem * addElementEdge3(dof_id_type node0, dof_id_type node1, dof_id_type node2)
Elem * addNodeElement(dof_id_type node)
BoundaryID _next_boundary_id
The next boundary ID in the mesh (used for mesh generation)
unsigned int _dim
The dimension of the mesh.
Elem * addElementQuad4(dof_id_type node0, dof_id_type node1, dof_id_type node2, dof_id_type node3)
Elem * addElement(libMesh::ElemType elem_type, const std::vector< dof_id_type > &node_ids)
Add a new element into the mesh.
static std::unique_ptr< Elem > build(const ElemType type, Elem *p=nullptr)
boundary_id_type BoundaryID
Elem * addElementQuad9(dof_id_type node0, dof_id_type node1, dof_id_type node2, dof_id_type node3, dof_id_type node4, dof_id_type node5, dof_id_type node6, dof_id_type node7, dof_id_type node8)
virtual SubdomainID getNextSubdomainId()
Gets the next subdomain ID.
virtual std::unique_ptr< MooseMesh > safeClone() const override
virtual dof_id_type getNextElementId()
Gets the next element ID.
std::unique_ptr< libMesh::MeshBase > _mesh
virtual BoundaryID getNextBoundaryId()
Gets the next nodeset or sideset ID.
virtual void buildMesh() override
virtual const Node & node(const dof_id_type i) const
dof_id_type _next_node_id
The next node ID in the mesh (used for mesh generation)
virtual unsigned int dimension() const override
virtual Elem * elem(const dof_id_type i)
SubdomainID _next_subdomain_id
The next subdomain ID in the mesh (used for mesh generation)
Node * addNode(const Point &pt)
Add a new node into the mesh.
registerMooseObject("ThermalHydraulicsApp", THMMesh)