13#include "libmesh/replicated_mesh.h"
28 std::unique_ptr<MeshBase>
generate()
override;
boundary_id_type BoundaryID
const InputParameters & parameters() const
const std::string & type() const
Subdivides a sidesets into smaller patches each of which is going to be a new patch.
MooseEnum _partitioner_name
the name of the partitioner being used
unsigned int _dim
dimensionality of the sidesets to partition
unsigned int _n_patches
the number of patches that this sideset generator divides _sideset into
void partition(MeshBase &mesh)
a function for implementing custom partitioning
const BoundaryName & _sideset_name
The sideset that will be subdivided.
static InputParameters validParams()
std::unique_ptr< MeshBase > generate() override
BoundaryID _sideset
The sideset that will be subdivided.
std::unique_ptr< MeshBase > & _input
Elem * boundaryElementHelper(MeshBase &mesh, libMesh::ElemType type) const
void checkPartitionAndCompress(MeshBase &mesh)
Checks partitions and makes sure every partition has at least one elem.
unsigned int nPatches() const
dof_id_type _n_boundary_mesh_elems
number of elements of the boundary mesh
std::vector< BoundaryName > sidesetNameHelper(const std::string &base_name) const
returns the name of the _n_patches subdivisions derived from _sideset