Mesh class for triangular, edge and corner subchannels for hexagonal lattice fuel assemblies. More...
#include <SCMTriInterWrapperMeshGenerator.h>
Public Types | |
typedef DataFileName | DataFileParameterType |
Public Member Functions | |
SCMTriInterWrapperMeshGenerator (const InputParameters ¶meters) | |
std::unique_ptr< MeshBase > | generate () override |
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 | |
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 | |
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 Real & | _kij |
Lateral form loss coefficient. More... | |
std::vector< Real > | _z_grid |
axial location of nodes More... | |
std::vector< std::vector< Real > > | _k_grid |
axial form loss coefficient per computational cell More... | |
const Real | _assembly_pitch |
Distance between the neighbor fuel pins, assembly_pitch. More... | |
const unsigned int | _n_cells |
number of axial cells More... | |
const unsigned int | _n_rings |
number of rings of fuel pins More... | |
unsigned int | _n_channels |
number of subchannels More... | |
const Real | _flat_to_flat |
the distance between flat surfaces of the duct facing each other More... | |
const Real | _duct_to_pin_gap |
the gap thickness between the duct and peripheral fuel pins More... | |
const bool | _tight_side_bypass |
whether the side bypass shape follows the hexagonal shape of the assemblies TODO: add a picture in the documentation of both tight and non-tight layouts More... | |
std::vector< std::vector< Node * > > | _nodes |
nodes More... | |
std::vector< std::pair< unsigned int, unsigned int > > | _gap_to_chan_map |
stores the channel pairs for each gap More... | |
std::vector< std::pair< unsigned int, unsigned int > > | _gap_to_pin_map |
stores the fuel pin pairs for each gap each gap More... | |
std::vector< std::vector< unsigned int > > | _chan_to_gap_map |
stores the gaps that forms each interstice More... | |
std::vector< std::vector< Real > > | _sign_id_crossflow_map |
Defines the global cross-flow direction -1 or 1 for each interstice and for all gaps that are belonging to the corresponding interstice. More... | |
std::vector< Real > | _gij_map |
gap size More... | |
std::vector< std::vector< Real > > | _subchannel_position |
x,y coordinates of the interstices More... | |
std::vector< Point > | _pin_position |
x,y coordinates of the fuel pins More... | |
std::vector< std::vector< Real > > | _pins_in_rings |
fuel pins that are belonging to each ring More... | |
std::vector< std::vector< unsigned int > > | _chan_to_pin_map |
stores the fuel pins belonging to each interstice More... | |
unsigned int | _n_assemblies |
number of assemblies More... | |
unsigned int | _n_gaps |
number of gaps More... | |
std::vector< EChannelType > | _subch_type |
interstice type More... | |
std::vector< EChannelType > | _gap_type |
gap type More... | |
std::vector< std::pair< unsigned int, unsigned int > > | _gap_pairs_sf |
sweeping flow model gap pairs per channel to specify directional edge flow More... | |
std::vector< std::pair< unsigned int, unsigned int > > | _chan_pairs_sf |
sweeping flow model channel pairs to specify directional edge flow 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 |
Mesh class for triangular, edge and corner subchannels for hexagonal lattice fuel assemblies.
Definition at line 18 of file SCMTriInterWrapperMeshGenerator.h.
SCMTriInterWrapperMeshGenerator::SCMTriInterWrapperMeshGenerator | ( | const InputParameters & | parameters | ) |
Re-sizing the object lists with the right number of channels
initial assignment
Definition at line 46 of file SCMTriInterWrapperMeshGenerator.C.
|
overridevirtual |
Implements MeshGenerator.
Definition at line 631 of file SCMTriInterWrapperMeshGenerator.C.
|
static |
Definition at line 23 of file SCMTriInterWrapperMeshGenerator.C.
|
protected |
Distance between the neighbor fuel pins, assembly_pitch.
Definition at line 39 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
sweeping flow model channel pairs to specify directional edge flow
Definition at line 88 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
stores the gaps that forms each interstice
Definition at line 61 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
stores the fuel pins belonging to each interstice
Definition at line 76 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
the gap thickness between the duct and peripheral fuel pins
Definition at line 49 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
the distance between flat surfaces of the duct facing each other
Definition at line 47 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
sweeping flow model gap pairs per channel to specify directional edge flow
Definition at line 86 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
stores the channel pairs for each gap
Definition at line 57 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
stores the fuel pin pairs for each gap each gap
Definition at line 59 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
gap type
Definition at line 84 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
gap size
Definition at line 68 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
heated length of the fuel Pin
Definition at line 29 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
axial form loss coefficient per computational cell
Definition at line 37 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
Lateral form loss coefficient.
Definition at line 33 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate().
|
protected |
number of assemblies
Definition at line 78 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
number of axial cells
Definition at line 41 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
number of subchannels
Definition at line 45 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
number of gaps
Definition at line 80 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
number of rings of fuel pins
Definition at line 43 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
|
protected |
x,y coordinates of the fuel pins
Definition at line 72 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
fuel pins that are belonging to each ring
Definition at line 74 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
Defines the global cross-flow direction -1 or 1 for each interstice and for all gaps that are belonging to the corresponding interstice.
Given a interstice and a gap, if the neighbor interstice index belonging to the same gap is lower, set it to -1, otherwise set it to 1.
Definition at line 66 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
interstice type
Definition at line 82 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
x,y coordinates of the interstices
Definition at line 70 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
whether the side bypass shape follows the hexagonal shape of the assemblies TODO: add a picture in the documentation of both tight and non-tight layouts
Definition at line 52 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
unheated length of the fuel Pin at the entry of the assembly
Definition at line 27 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
unheated length of the fuel Pin at the exit of the assembly
Definition at line 31 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().
|
protected |
axial location of nodes
Definition at line 35 of file SCMTriInterWrapperMeshGenerator.h.
Referenced by generate(), and SCMTriInterWrapperMeshGenerator().