47 auto & binfo =
mesh().
getMesh().get_boundary_info();
49 binfo.sideset_name(boundary_id) =
name();
boundary_id_type BoundaryID
std::string _connected_component_name
Name of the connected component.
virtual void check() const override
Check the component integrity.
BoundaryName _input
Name of the boundary this component attaches to.
unsigned short int _side
Side ID.
virtual void setupMesh() override
Performs mesh setup such as creating mesh or naming mesh sets.
EEndType _connected_component_end_type
End type of the connected component.
static InputParameters validParams()
Real _normal
Outward normal on this boundary.
dof_id_type _node
Node ID.
const Elem * _elem
Element.
Component1DBoundary(const InputParameters ¶ms)
Base class for 1D component junctions and boundaries.
std::vector< Real > _normals
Outward normals associated with connected components.
virtual void setupMesh() override
Performs mesh setup such as creating mesh or naming mesh sets.
static InputParameters validParams()
virtual void check() const override
Check the component integrity.
void checkNumberOfConnections(const unsigned int &n_connections) const
Checks that the number of connections is equal to the supplied value.
void addConnection(const BoundaryName &boundary_name)
Adds a connection for this component.
std::vector< const Elem * > _elems
Boundary elements of connected components.
const std::vector< Connection > & getConnections() const
Returns the vector of connections of this component.
std::vector< dof_id_type > _nodes
Boundary node IDs from connected components.
std::vector< unsigned short int > _sides
Boundary sides of connected components.
THMMesh & mesh()
Non-const reference to THM mesh, which can only be called before the end of mesh setup.
virtual BoundaryID getNextBoundaryId()
Gets the next nodeset or sideset ID.
Structure for holding data for a connection.
const EEndType _end_type
End type for the connection.
const std::string _component_name
Name of the component in the connection.