Subdivides a sidesets into smaller patches each of which is going to be a new patch. More...
#include <PatchSidesetGenerator.h>
Public Types | |
typedef DataFileName | DataFileParameterType |
Public Member Functions | |
PatchSidesetGenerator (const InputParameters ¶meters) | |
std::unique_ptr< MeshBase > | generate () override |
unsigned int | nPatches () const |
std::unique_ptr< MeshBase > | generateInternal () |
const std::set< MeshGeneratorName > & | getRequestedMeshGenerators () const |
const std::set< MeshGeneratorName > & | getRequestedMeshGeneratorsForSub () const |
void | addParentMeshGenerator (const MeshGenerator &mg, const AddParentChildKey) |
void | addChildMeshGenerator (const MeshGenerator &mg, const AddParentChildKey) |
const std::set< const MeshGenerator *, Comparator > & | getParentMeshGenerators () const |
const std::set< const MeshGenerator *, Comparator > & | getChildMeshGenerators () const |
const std::set< const MeshGenerator *, Comparator > & | getSubMeshGenerators () const |
bool | isParentMeshGenerator (const MeshGeneratorName &name, const bool direct=true) const |
bool | isChildMeshGenerator (const MeshGeneratorName &name, const bool direct=true) const |
bool | isNullMeshName (const MeshGeneratorName &name) const |
bool | hasSaveMesh () const |
bool | hasOutput () const |
const std::string & | getSavedMeshName () const |
bool | hasGenerateData () const |
bool | isDataOnly () const |
virtual bool | enabled () const |
std::shared_ptr< MooseObject > | getSharedPtr () |
std::shared_ptr< const MooseObject > | getSharedPtr () const |
MooseApp & | getMooseApp () const |
const std::string & | type () const |
virtual const std::string & | name () const |
std::string | typeAndName () const |
std::string | errorPrefix (const std::string &error_type) const |
void | callMooseError (std::string msg, const bool with_prefix) const |
MooseObjectParameterName | uniqueParameterName (const std::string ¶meter_name) const |
const InputParameters & | parameters () const |
MooseObjectName | uniqueName () const |
const T & | getParam (const std::string &name) const |
std::vector< std::pair< T1, T2 > > | getParam (const std::string ¶m1, const std::string ¶m2) const |
const T * | queryParam (const std::string &name) const |
const T & | getRenamedParam (const std::string &old_name, const std::string &new_name) const |
T | getCheckedPointerParam (const std::string &name, const std::string &error_string="") const |
bool | isParamValid (const std::string &name) const |
bool | isParamSetByUser (const std::string &nm) const |
void | paramError (const std::string ¶m, Args... args) const |
void | paramWarning (const std::string ¶m, Args... args) const |
void | paramInfo (const std::string ¶m, Args... args) const |
void | connectControllableParams (const std::string ¶meter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const |
void | mooseError (Args &&... args) const |
void | mooseErrorNonPrefixed (Args &&... args) const |
void | mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const |
void | mooseWarning (Args &&... args) const |
void | mooseWarningNonPrefixed (Args &&... args) const |
void | mooseDeprecated (Args &&... args) const |
void | mooseInfo (Args &&... args) const |
std::string | getDataFileName (const std::string ¶m) const |
std::string | getDataFileNameByName (const std::string &relative_path) const |
std::string | getDataFilePath (const std::string &relative_path) const |
const Parallel::Communicator & | comm () const |
processor_id_type | n_processors () const |
processor_id_type | processor_id () const |
Static Public Member Functions | |
static InputParameters | validParams () |
static bool | hasGenerateData (const InputParameters ¶ms) |
static void | setHasGenerateData (InputParameters ¶ms) |
Public Attributes | |
const ConsoleStream | _console |
Static Public Attributes | |
static const std::string | data_only_param |
static constexpr auto | SYSTEM |
static constexpr auto | NAME |
Protected Member Functions | |
std::vector< BoundaryName > | sidesetNameHelper (const std::string &base_name) const |
returns the name of the _n_patches subdivisions derived from _sideset More... | |
Elem * | boundaryElementHelper (MeshBase &mesh, libMesh::ElemType type) const |
void | partition (MeshBase &mesh) |
a function for implementing custom partitioning More... | |
void | checkPartitionAndCompress (MeshBase &mesh) |
Checks partitions and makes sure every partition has at least one elem. More... | |
virtual void | generateData () |
T & | copyMeshProperty (const std::string &target_data_name, const std::string &source_data_name, const std::string &source_mesh) |
T & | copyMeshProperty (const std::string &source_data_name, const std::string &source_mesh) |
std::unique_ptr< MeshBase > & | getMesh (const std::string ¶m_name, const bool allow_invalid=false) |
std::vector< std::unique_ptr< MeshBase > *> | getMeshes (const std::string ¶m_name) |
std::unique_ptr< MeshBase > & | getMeshByName (const MeshGeneratorName &mesh_generator_name) |
std::vector< std::unique_ptr< MeshBase > *> | getMeshesByName (const std::vector< MeshGeneratorName > &mesh_generator_names) |
void | declareMeshForSub (const std::string ¶m_name) |
void | declareMeshesForSub (const std::string ¶m_name) |
void | declareMeshForSubByName (const MeshGeneratorName &mesh_generator_name) |
void | declareMeshesForSubByName (const std::vector< MeshGeneratorName > &mesh_generator_names) |
std::unique_ptr< MeshBase > | buildMeshBaseObject (unsigned int dim=libMesh::invalid_uint) |
std::unique_ptr< ReplicatedMesh > | buildReplicatedMesh (unsigned int dim=libMesh::invalid_uint) |
std::unique_ptr< DistributedMesh > | buildDistributedMesh (unsigned int dim=libMesh::invalid_uint) |
void | addMeshSubgenerator (const std::string &type, const std::string &name, Ts... extra_input_parameters) |
void | addMeshSubgenerator (const std::string &type, const std::string &name, InputParameters params) |
void | declareNullMeshName (const MeshGeneratorName &name) |
const T & | getMeshProperty (const std::string &data_name, const std::string &prefix) |
const T & | getMeshProperty (const std::string &data_name) |
bool | hasMeshProperty (const std::string &data_name, const std::string &prefix) const |
bool | hasMeshProperty (const std::string &data_name, const std::string &prefix) const |
bool | hasMeshProperty (const std::string &data_name) const |
bool | hasMeshProperty (const std::string &data_name) const |
std::string | meshPropertyName (const std::string &data_name) const |
T & | declareMeshProperty (const std::string &data_name, Args &&... args) |
T & | declareMeshProperty (const std::string &data_name, const T &data_value) |
T & | declareMeshProperty (const std::string &data_name, Args &&... args) |
T & | declareMeshProperty (const std::string &data_name, const T &data_value) |
T & | setMeshProperty (const std::string &data_name, Args &&... args) |
T & | setMeshProperty (const std::string &data_name, const T &data_value) |
T & | setMeshProperty (const std::string &data_name, Args &&... args) |
T & | setMeshProperty (const std::string &data_name, const T &data_value) |
Static Protected Member Functions | |
static std::string | meshPropertyName (const std::string &data_name, const std::string &prefix) |
Protected Attributes | |
std::unique_ptr< MeshBase > & | _input |
unsigned int | _dim |
dimensionality of the sidesets to partition More... | |
unsigned int | _n_patches |
the number of patches that this sideset generator divides _sideset into More... | |
const BoundaryName & | _sideset_name |
The sideset that will be subdivided. More... | |
MooseEnum | _partitioner_name |
the name of the partitioner being used More... | |
subdomain_id_type | _sideset |
The sideset that will be subdivided. More... | |
dof_id_type | _n_boundary_mesh_elems |
number of elements of the boundary mesh More... | |
MooseMesh *const | _mesh |
const bool & | _enabled |
MooseApp & | _app |
const std::string | _type |
const std::string | _name |
const InputParameters & | _pars |
Factory & | _factory |
ActionFactory & | _action_factory |
const Parallel::Communicator & | _communicator |
Subdivides a sidesets into smaller patches each of which is going to be a new patch.
Definition at line 21 of file PatchSidesetGenerator.h.
PatchSidesetGenerator::PatchSidesetGenerator | ( | const InputParameters & | parameters | ) |
Definition at line 64 of file PatchSidesetGenerator.C.
|
protected |
Definition at line 372 of file PatchSidesetGenerator.C.
Referenced by generate().
|
protected |
Checks partitions and makes sure every partition has at least one elem.
If a partition is empty, it's removed and the remaining ones are "renamed"
Definition at line 321 of file PatchSidesetGenerator.C.
Referenced by generate().
|
overridevirtual |
Implements MeshGenerator.
Definition at line 74 of file PatchSidesetGenerator.C.
|
inline |
Definition at line 30 of file PatchSidesetGenerator.h.
Referenced by RadiationTransferAction::nPatch().
|
protected |
a function for implementing custom partitioning
Definition at line 238 of file PatchSidesetGenerator.C.
Referenced by generate().
|
protected |
returns the name of the _n_patches subdivisions derived from _sideset
Definition at line 359 of file PatchSidesetGenerator.C.
Referenced by generate().
|
static |
Definition at line 33 of file PatchSidesetGenerator.C.
|
protected |
dimensionality of the sidesets to partition
Definition at line 50 of file PatchSidesetGenerator.h.
Referenced by generate(), and partition().
|
protected |
Definition at line 47 of file PatchSidesetGenerator.h.
Referenced by generate().
|
protected |
number of elements of the boundary mesh
Definition at line 65 of file PatchSidesetGenerator.h.
Referenced by generate().
|
protected |
the number of patches that this sideset generator divides _sideset into
Definition at line 53 of file PatchSidesetGenerator.h.
Referenced by checkPartitionAndCompress(), generate(), nPatches(), partition(), and sidesetNameHelper().
|
protected |
the name of the partitioner being used
Definition at line 59 of file PatchSidesetGenerator.h.
Referenced by generate(), and partition().
|
protected |
The sideset that will be subdivided.
Definition at line 62 of file PatchSidesetGenerator.h.
Referenced by checkPartitionAndCompress(), generate(), and partition().
|
protected |
The sideset that will be subdivided.
Definition at line 56 of file PatchSidesetGenerator.h.
Referenced by generate().