Mesh generator for hexagonal duct. More...
#include <SCMTriDuctMeshGenerator.h>
Public Types | |
| typedef DataFileName | DataFileParameterType |
Public Member Functions | |
| SCMTriDuctMeshGenerator (const InputParameters ¶meters) | |
| std::unique_ptr< MeshBase > | generate () override |
| std::unique_ptr< CSG::CSGBase > | generateInternalCSG () |
| 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 | hasGenerateCSG () const |
| bool | isDataOnly () const |
| virtual bool | enabled () const |
| std::shared_ptr< MooseObject > | getSharedPtr () |
| std::shared_ptr< const MooseObject > | getSharedPtr () const |
| bool | isKokkosObject () const |
| MooseApp & | getMooseApp () const |
| const std::string & | type () const |
| const std::string & | name () const |
| std::string | typeAndName () const |
| MooseObjectParameterName | uniqueParameterName (const std::string ¶meter_name) const |
| MooseObjectName | uniqueName () const |
| const InputParameters & | parameters () const |
| const hit::Node * | getHitNode () const |
| bool | hasBase () const |
| const std::string & | getBase () 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 | haveParameter (const std::string &name) const |
| bool | isParamValid (const std::string &name) const |
| bool | isParamSetByUser (const std::string &name) const |
| void | connectControllableParams (const std::string ¶meter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const |
| void | paramError (const std::string ¶m, Args... args) const |
| void | paramWarning (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 |
| std::string | messagePrefix (const bool hit_prefix=true) const |
| std::string | errorPrefix (const std::string &) const |
| void | mooseError (Args &&... args) const |
| void | mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const |
| void | mooseErrorNonPrefixed (Args &&... args) const |
| void | mooseWarning (Args &&... args) const |
| void | mooseWarning (Args &&... args) const |
| void | mooseWarningNonPrefixed (Args &&... args) const |
| void | mooseWarningNonPrefixed (Args &&... args) const |
| void | mooseDeprecated (Args &&... args) const |
| void | mooseDeprecated (Args &&... args) const |
| void | mooseDeprecatedNoTrace (Args &&... args) const |
| void | mooseInfo (Args &&... args) const |
| void | callMooseError (std::string msg, const bool with_prefix, const hit::Node *node=nullptr, const bool show_trace=true) 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 bool | hasGenerateCSG (const InputParameters ¶ms) |
| static void | callMooseError (MooseApp *const app, const InputParameters ¶ms, std::string msg, const bool with_prefix, const hit::Node *node, const bool show_trace=true) |
| static void | setHasGenerateData (InputParameters ¶ms) |
| static void | setHasGenerateCSG (InputParameters ¶ms) |
Public Attributes | |
| usingCombinedWarningSolutionWarnings | |
| const ConsoleStream | _console |
Static Public Attributes | |
| static const std::string | data_only_param |
| static const std::string | type_param |
| static const std::string | name_param |
| static const std::string | unique_name_param |
| static const std::string | app_param |
| static const std::string | moose_base_param |
| static const std::string | kokkos_object_param |
| static constexpr auto | SYSTEM |
| static constexpr auto | NAME |
Protected Member Functions | |
| size_t | ductPointIndex (unsigned int points_per_layer, unsigned int layer, unsigned int point) const |
| Maps a duct cross-section point and axial layer to a linear point index. More... | |
| void | ductCorners (std::vector< Point > &corners, Real flat_to_flat, const Point ¢er) const |
| Computes the x-y corner coordinates of the duct cross-section. More... | |
| void | ductCrossSec (std::vector< Point > &cross_sec, const std::vector< Point > &corners, unsigned int nrings, Real pitch) const |
| Generates the points along the duct cross-section sides. More... | |
| void | ductPoints (std::vector< Point > &points, const std::vector< Point > &cross_sec, const std::vector< Real > &z_layers) const |
| Computes all 3D point locations used to construct the duct mesh. More... | |
| void | ductElems (std::vector< std::vector< size_t >> &elem_point_indices, unsigned int n_layers, unsigned int points_per_layer) const |
| Determines element connectivity for the duct mesh. More... | |
| void | buildDuct (std::unique_ptr< MeshBase > &mesh, std::vector< Node *> &duct_nodes, const std::vector< Point > &points, const std::vector< std::vector< size_t >> &elem_point_indices, SubdomainID block) const |
| Builds duct mesh nodes and elements and inserts them into the mesh. More... | |
| virtual void | generateData () |
| virtual std::unique_ptr< CSG::CSGBase > | generateCSG () |
| 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) |
| std::unique_ptr< CSG::CSGBase > & | getCSGBase (const std::string ¶m_name) |
| std::unique_ptr< CSG::CSGBase > & | getCSGBaseByName (const MeshGeneratorName &mesh_generator_name) |
| std::vector< std::unique_ptr< CSG::CSGBase > *> | getCSGBases (const std::string ¶m_name) |
| std::vector< std::unique_ptr< CSG::CSGBase > *> | getCSGBasesByName (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) |
| void | flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const |
| InvalidSolutionID | registerInvalidSolutionInternal (const std::string &message, const bool warning) const |
| 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 |
| Mesh that comes from another generator. More... | |
| const unsigned int | _n_cells |
| number of axial cells More... | |
| std::vector< Real > | _z_grid |
| axial location of nodes More... | |
| const Real | _unheated_length_entry |
| unheated length of the fuel Pin at the entry of the assembly More... | |
| const Real | _heated_length |
| heated length of the fuel Pin More... | |
| const Real | _unheated_length_exit |
| unheated length of the fuel Pin at the exit of the assembly More... | |
| const unsigned int | _block_id |
| block index More... | |
| const Real | _pitch |
| Distance between the neighbor fuel pins, pitch. More... | |
| const unsigned int | _n_rings |
| number of rings of fuel pins More... | |
| const Real | _flat_to_flat |
| the distance between flat surfaces of the duct facing each other More... | |
| MooseMesh *const | _mesh |
| const bool & | _enabled |
| MooseApp & | _app |
| Factory & | _factory |
| ActionFactory & | _action_factory |
| const std::string & | _type |
| const std::string & | _name |
| const InputParameters & | _pars |
| const Parallel::Communicator & | _communicator |
Mesh generator for hexagonal duct.
Definition at line 17 of file SCMTriDuctMeshGenerator.h.
| SCMTriDuctMeshGenerator::SCMTriDuctMeshGenerator | ( | const InputParameters & | parameters | ) |
Definition at line 37 of file SCMTriDuctMeshGenerator.C.
|
protected |
Builds duct mesh nodes and elements and inserts them into the mesh.
| mesh | Mesh object to which duct elements and nodes are added |
| duct_nodes | Output vector of created duct nodes |
| points | Point coordinates generated by ductPoints |
| elem_point_indices | Element connectivity generated by ductElems |
| block | Subdomain ID assigned to the duct elements |
Definition at line 185 of file SCMTriDuctMeshGenerator.C.
Referenced by generate().
|
protected |
Computes the x-y corner coordinates of the duct cross-section.
| corners | Output vector containing the duct corner points |
| flat_to_flat | Flat-to-flat distance of the duct |
| center | Center point of the duct cross-section |
Definition at line 81 of file SCMTriDuctMeshGenerator.C.
Referenced by generate().
|
protected |
Generates the points along the duct cross-section sides.
| cross_sec | Output vector of cross-section boundary points |
| corners | Corner points defining the duct geometry |
| nrings | Number of rings of the assembly. (Rings of pins around central pin) |
| pitch | Spacing between adjacent pins/subchannel centroids |
Definition at line 96 of file SCMTriDuctMeshGenerator.C.
Referenced by generate().
|
protected |
Determines element connectivity for the duct mesh.
| elem_point_indices | Output element connectivity defined by point indices |
| n_layers | Number of axial layers in the duct mesh |
| points_per_layer | Number of points per cross-section layer |
Definition at line 163 of file SCMTriDuctMeshGenerator.C.
Referenced by generate().
|
protected |
Maps a duct cross-section point and axial layer to a linear point index.
| points_per_layer | Number of points in each duct cross-section layer |
| layer | Axial (z-direction) layer index |
| point | Index of the point within the cross-section |
Definition at line 143 of file SCMTriDuctMeshGenerator.C.
Referenced by ductElems(), and ductPoints().
|
protected |
Computes all 3D point locations used to construct the duct mesh.
| points | Output vector of 3D point locations |
| cross_sec | Cross-section boundary points |
| z_layers | Axial (z-direction) layer coordinates |
Definition at line 151 of file SCMTriDuctMeshGenerator.C.
Referenced by generate().
|
overridevirtual |
Implements MeshGenerator.
Definition at line 54 of file SCMTriDuctMeshGenerator.C.
|
static |
Definition at line 19 of file SCMTriDuctMeshGenerator.C.
|
protected |
|
protected |
the distance between flat surfaces of the duct facing each other
Definition at line 96 of file SCMTriDuctMeshGenerator.h.
Referenced by generate().
|
protected |
heated length of the fuel Pin
Definition at line 86 of file SCMTriDuctMeshGenerator.h.
Referenced by SCMTriDuctMeshGenerator().
|
protected |
Mesh that comes from another generator.
Definition at line 78 of file SCMTriDuctMeshGenerator.h.
Referenced by generate().
|
protected |
number of axial cells
Definition at line 80 of file SCMTriDuctMeshGenerator.h.
Referenced by SCMTriDuctMeshGenerator().
|
protected |
number of rings of fuel pins
Definition at line 94 of file SCMTriDuctMeshGenerator.h.
Referenced by generate().
|
protected |
Distance between the neighbor fuel pins, pitch.
Definition at line 92 of file SCMTriDuctMeshGenerator.h.
Referenced by generate().
|
protected |
unheated length of the fuel Pin at the entry of the assembly
Definition at line 84 of file SCMTriDuctMeshGenerator.h.
Referenced by SCMTriDuctMeshGenerator().
|
protected |
unheated length of the fuel Pin at the exit of the assembly
Definition at line 88 of file SCMTriDuctMeshGenerator.h.
Referenced by SCMTriDuctMeshGenerator().
|
protected |
axial location of nodes
Definition at line 82 of file SCMTriDuctMeshGenerator.h.
Referenced by generate(), and SCMTriDuctMeshGenerator().
1.8.14