https://mooseframework.inl.gov
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
TriSubChannelMesh Class Reference

Mesh class for triangular, edge and corner subchannels for hexagonal lattice fuel assemblies. More...

#include <TriSubChannelMesh.h>

Inheritance diagram for TriSubChannelMesh:
[legend]

Public Types

enum  ParallelType { ParallelType::DEFAULT, ParallelType::REPLICATED, ParallelType::DISTRIBUTED }
 
typedef std::pair< const Node *, BoundaryIDPeriodicNodeInfo
 
typedef DataFileName DataFileParameterType
 

Public Member Functions

 TriSubChannelMesh (const InputParameters &parameters)
 
 TriSubChannelMesh (const TriSubChannelMesh &other_mesh)
 
virtual std::unique_ptr< MooseMeshsafeClone () const override
 
virtual void buildMesh () override
 
virtual const unsigned intgetNumOfPins () const override
 Return the number of pins. More...
 
virtual Node * getPinNode (unsigned int i_pin, unsigned iz) const override
 Get the pin mesh node for a given pin index and elevation index. More...
 
virtual bool pinMeshExist () const override
 Return if Pin Mesh exists or not. More...
 
virtual bool ductMeshExist () const override
 Return if Duct Mesh exists or not. More...
 
virtual const RealgetDuctToPinGap () const
 Return the the gap thickness between the duct and peripheral fuel pins. More...
 
virtual const unsigned intgetNumOfRings () const
 Return the number of rings. More...
 
virtual const unsigned intgetPinIndex (const unsigned int channel_idx, const unsigned int neighbor_idx)
 Return Pin index given subchannel index and local neighbor index. More...
 
virtual const RealgetWireDiameter () const
 Return wire diameter. More...
 
virtual const RealgetFlatToFlat () const
 Return flat to flat [m]. More...
 
virtual const RealgetWireLeadLength () const
 Return the wire lead length. More...
 
virtual Node * getChannelNode (unsigned int i_chan, unsigned iz) const override
 Get the subchannel mesh node for a given channel index and elevation index. More...
 
virtual const unsigned intgetNumOfChannels () const override
 Return the number of channels per layer. More...
 
virtual const unsigned intgetNumOfGapsPerLayer () const override
 Return the number of gaps per layer. More...
 
virtual const std::pair< unsigned int, unsigned int > & getGapChannels (unsigned int i_gap) const override
 Return a pair of subchannel indices for a given gap index. More...
 
virtual const std::pair< unsigned int, unsigned int > & getGapPins (unsigned int i_gap) const override
 Return a pair of pin indices for a given gap index. More...
 
virtual const std::vector< unsigned int > & getChannelGaps (unsigned int i_chan) const override
 Return a vector of gap indices for a given channel index. More...
 
virtual const RealgetCrossflowSign (unsigned int i_chan, unsigned int i_local) const override
 Return a sign for the crossflow given a subchannel index and local neighbor index. More...
 
virtual unsigned int getSubchannelIndexFromPoint (const Point &p) const override
 Return a subchannel index for a given physical point p More...
 
virtual unsigned int channelIndex (const Point &point) const override
 
virtual EChannelType getSubchannelType (unsigned int index) const override
 Return the type of the subchannel for given subchannel index. More...
 
virtual Real getGapWidth (unsigned int axial_index, unsigned int gap_index) const override
 Return gap width for a given gap index. More...
 
virtual const std::pair< unsigned int, unsigned int > & getSweepFlowGaps (unsigned int i_chan) const
 
virtual const std::pair< unsigned int, unsigned int > & getSweepFlowChans (unsigned int i_chan) const
 
virtual const std::vector< unsigned int > & getPinChannels (unsigned int i_pin) const override
 Return a vector of channel indices for a given Pin index. More...
 
virtual const std::vector< unsigned int > & getChannelPins (unsigned int i_chan) const override
 Return a vector of pin indices for a given channel index. More...
 
virtual unsigned int getPinIndexFromPoint (const Point &p) const override
 Return a pin index for a given physical point p More...
 
virtual unsigned int pinIndex (const Point &p) const override
 
void setChannelToDuctMaps (const std::vector< Node *> &duct_nodes)
 Function that gets the channel node from the duct node. More...
 
virtual Node * getChanNodeFromDuct (Node *duct_node) override
 Function that gets the channel node from the duct node. More...
 
virtual Node * getDuctNodeFromChannel (Node *channel_node) override
 Function that gets the duct node from the channel node. More...
 
virtual Node * getChannelNodeFromDuct (Node *channel_node) override
 Function that gets the channel node from the duct node. More...
 
virtual const std::vector< Node * > getDuctNodes () const override
 Function that return the vector with the maps to the nodes. More...
 
virtual const std::vector< Real > & getZGrid () const
 Get axial location of layers. More...
 
virtual unsigned int getZIndex (const Point &point) const
 Get axial index of point. More...
 
virtual const std::vector< std::vector< Real > > & getKGrid () const
 Get axial cell location and value of loss coefficient. More...
 
virtual const std::vector< Real > & getZBlockage () const
 Get axial location of blockage (in,out) [m]. More...
 
virtual const std::vector< unsigned int > & getIndexBlockage () const
 Get index of blocked subchannels. More...
 
virtual const std::vector< Real > & getReductionBlockage () const
 Get area reduction of blocked subchannels. More...
 
virtual const RealgetKij () const
 Return lateral loss coefficient. More...
 
virtual const unsigned intgetNumOfAxialCells () const
 Return the number of axial cells. More...
 
virtual const RealgetPitch () const
 Return the pitch between 2 subchannels. More...
 
virtual const RealgetPinDiameter () const
 Return Pin diameter. More...
 
virtual const RealgetHeatedLengthEntry () const
 Return unheated length at entry. More...
 
virtual const RealgetHeatedLength () const
 Return heated length. More...
 
virtual const RealgetHeatedLengthExit () const
 Return unheated length at exit. More...
 
virtual MooseMeshclone () const
 
void determineUseDistributedMesh ()
 
std::unique_ptr< MeshBase > buildMeshBaseObject (unsigned int dim=libMesh::invalid_uint)
 
std::unique_ptr< T > buildTypedMesh (unsigned int dim=libMesh::invalid_uint)
 
void setMeshBase (std::unique_ptr< MeshBase > mesh_base)
 
virtual void init ()
 
virtual unsigned int dimension () const
 
virtual unsigned int spatialDimension () const
 
virtual unsigned int effectiveSpatialDimension () const
 
unsigned int getBlocksMaxDimension (const std::vector< SubdomainName > &blocks) const
 
std::vector< BoundaryIDgetBoundaryIDs (const Elem *const elem, const unsigned short int side) const
 
const std::set< BoundaryID > & getBoundaryIDs () const
 
std::vector< BoundaryIDgetBoundaryIDs (const std::vector< BoundaryName > &boundary_name, bool generate_unknown=false) const
 
const Elem * getLowerDElem (const Elem *, unsigned short int) const
 
unsigned int getHigherDSide (const Elem *elem) const
 
void buildNodeList ()
 
void buildBndElemList ()
 
const std::map< dof_id_type, std::vector< dof_id_type > > & nodeToElemMap ()
 
const std::map< dof_id_type, std::vector< dof_id_type > > & nodeToActiveSemilocalElemMap ()
 
virtual bnd_node_iterator bndNodesBegin ()
 
virtual bnd_node_iterator bndNodesEnd ()
 
virtual bnd_elem_iterator bndElemsBegin ()
 
virtual bnd_elem_iterator bndElemsEnd ()
 
void buildNodeListFromSideList ()
 
void buildSideList (std::vector< dof_id_type > &el, std::vector< unsigned short int > &sl, std::vector< boundary_id_type > &il)
 
std::vector< std::tuple< dof_id_type, unsigned short int, boundary_id_type > > buildSideList ()
 
std::vector< std::tuple< dof_id_type, unsigned short int, boundary_id_type > > buildActiveSideList () const
 
unsigned int sideWithBoundaryID (const Elem *const elem, const BoundaryID boundary_id) const
 
MeshBase::node_iterator localNodesBegin ()
 
MeshBase::const_node_iterator localNodesBegin () const
 
MeshBase::node_iterator localNodesEnd ()
 
MeshBase::const_node_iterator localNodesEnd () const
 
MeshBase::element_iterator activeLocalElementsBegin ()
 
MeshBase::const_element_iterator activeLocalElementsBegin () const
 
const MeshBase::element_iterator activeLocalElementsEnd ()
 
const MeshBase::const_element_iterator activeLocalElementsEnd () const
 
virtual dof_id_type nNodes () const
 
virtual dof_id_type nElem () const
 
virtual dof_id_type nLocalNodes () const
 
virtual dof_id_type nActiveElem () const
 
virtual dof_id_type nActiveLocalElem () const
 
virtual SubdomainID nSubdomains () const
 
virtual unsigned int nPartitions () const
 
virtual bool skipPartitioning () const
 
virtual bool skipNoncriticalPartitioning () const
 
virtual dof_id_type maxNodeId () const
 
virtual dof_id_type maxElemId () const
 
virtual const Node & node (const dof_id_type i) const
 
virtual Node & node (const dof_id_type i)
 
virtual const Node & nodeRef (const dof_id_type i) const
 
virtual Node & nodeRef (const dof_id_type i)
 
virtual const Node * nodePtr (const dof_id_type i) const
 
virtual Node * nodePtr (const dof_id_type i)
 
virtual const Node * queryNodePtr (const dof_id_type i) const
 
virtual Node * queryNodePtr (const dof_id_type i)
 
virtual Elem * elem (const dof_id_type i)
 
virtual const Elem * elem (const dof_id_type i) const
 
virtual Elem * elemPtr (const dof_id_type i)
 
virtual const Elem * elemPtr (const dof_id_type i) const
 
virtual Elem * queryElemPtr (const dof_id_type i)
 
virtual const Elem * queryElemPtr (const dof_id_type i) const
 
bool prepared () const
 
virtual void prepared (bool state)
 
void needsPrepareForUse ()
 
void meshChanged ()
 
virtual void onMeshChanged ()
 
void cacheChangedLists ()
 
ConstElemPointerRangerefinedElementRange () const
 
ConstElemPointerRangecoarsenedElementRange () const
 
const std::vector< const Elem *> & coarsenedElementChildren (const Elem *elem) const
 
void updateActiveSemiLocalNodeRange (std::set< dof_id_type > &ghosted_elems)
 
bool isSemiLocal (Node *const node) const
 
const std::unordered_map< boundary_id_type, std::unordered_set< dof_id_type > > & getBoundariesToElems () const
 
const std::unordered_map< boundary_id_type, std::unordered_set< dof_id_type > > & getBoundariesToActiveSemiLocalElemIds () const
 
std::unordered_set< dof_id_typegetBoundaryActiveSemiLocalElemIds (BoundaryID bid) const
 
std::unordered_set< dof_id_typegetBoundaryActiveNeighborElemIds (BoundaryID bid) const
 
bool isBoundaryFullyExternalToSubdomains (BoundaryID bid, const std::set< SubdomainID > &blk_group) const
 
const std::set< SubdomainID > & meshSubdomains () const
 
const std::set< BoundaryID > & meshBoundaryIds () const
 
const std::set< BoundaryID > & meshSidesetIds () const
 
const std::set< BoundaryID > & meshNodesetIds () const
 
void setBoundaryToNormalMap (std::unique_ptr< std::map< BoundaryID, RealVectorValue >> boundary_map)
 
void setBoundaryToNormalMap (std::map< BoundaryID, RealVectorValue > *boundary_map)
 
void setMeshBoundaryIDs (std::set< BoundaryID > boundary_IDs)
 
const RealVectorValuegetNormalByBoundaryID (BoundaryID id) const
 
bool prepare (const MeshBase *mesh_to_clone)
 
void update ()
 
unsigned int uniformRefineLevel () const
 
void setUniformRefineLevel (unsigned int, bool deletion=true)
 
bool skipDeletionRepartitionAfterRefine () const
 
bool skipRefineWhenUseSplit () const
 
void addGhostedBoundary (BoundaryID boundary_id)
 
void setGhostedBoundaryInflation (const std::vector< Real > &inflation)
 
const std::set< unsigned int > & getGhostedBoundaries () const
 
const std::vector< Real > & getGhostedBoundaryInflation () const
 
void ghostGhostedBoundaries ()
 
void needGhostGhostedBoundaries (bool needghost)
 
unsigned int getPatchSize () const
 
unsigned int getGhostingPatchSize () const
 
unsigned int getMaxLeafSize () const
 
void setPatchUpdateStrategy (Moose::PatchUpdateType patch_update_strategy)
 
const Moose::PatchUpdateTypegetPatchUpdateStrategy () const
 
libMesh::BoundingBox getInflatedProcessorBoundingBox (Real inflation_multiplier=0.01) const
 
 operator libMesh::MeshBase & ()
 
 operator const libMesh::MeshBase & () const
 
MeshBase & getMesh ()
 
MeshBase & getMesh (const std::string &name)
 
const MeshBase & getMesh () const
 
const MeshBase & getMesh (const std::string &name) const
 
const MeshBase * getMeshPtr () const
 
void printInfo (std::ostream &os=libMesh::out, const unsigned int verbosity=0) const
 
const std::set< SubdomainID > & getNodeBlockIds (const Node &node) const
 
const std::vector< dof_id_type > & getNodeList (boundary_id_type nodeset_id) const
 
const Node * addUniqueNode (const Point &p, Real tol=1e-6)
 
Node * addQuadratureNode (const Elem *elem, const unsigned short int side, const unsigned int qp, BoundaryID bid, const Point &point)
 
Node * getQuadratureNode (const Elem *elem, const unsigned short int side, const unsigned int qp)
 
void clearQuadratureNodes ()
 
BoundaryID getBoundaryID (const BoundaryName &boundary_name) const
 
SubdomainID getSubdomainID (const SubdomainName &subdomain_name) const
 
std::vector< SubdomainIDgetSubdomainIDs (const std::vector< SubdomainName > &subdomain_names) const
 
std::set< SubdomainIDgetSubdomainIDs (const std::set< SubdomainName > &subdomain_names) const
 
void setSubdomainName (SubdomainID subdomain_id, const SubdomainName &name)
 
const std::string & getSubdomainName (SubdomainID subdomain_id) const
 
std::vector< SubdomainName > getSubdomainNames (const std::vector< SubdomainID > &subdomain_ids) const
 
void setBoundaryName (BoundaryID boundary_id, BoundaryName name)
 
const std::string & getBoundaryName (BoundaryID boundary_id)
 
void buildPeriodicNodeMap (std::multimap< dof_id_type, dof_id_type > &periodic_node_map, unsigned int var_number, libMesh::PeriodicBoundaries *pbs) const
 
void buildPeriodicNodeSets (std::map< BoundaryID, std::set< dof_id_type >> &periodic_node_sets, unsigned int var_number, libMesh::PeriodicBoundaries *pbs) const
 
Real dimensionWidth (unsigned int component) const
 
bool detectOrthogonalDimRanges (Real tol=1e-6)
 
void addPeriodicVariable (unsigned int var_num, BoundaryID primary, BoundaryID secondary)
 
bool isTranslatedPeriodic (unsigned int nonlinear_var_num, unsigned int component) const
 
RealVectorValue minPeriodicVector (unsigned int nonlinear_var_num, Point p, Point q) const
 
Real minPeriodicDistance (unsigned int nonlinear_var_num, Point p, Point q) const
 
const std::pair< BoundaryID, BoundaryID > * getPairedBoundaryMapping (unsigned int component)
 
void buildRefinementAndCoarseningMaps (Assembly *assembly)
 
const std::vector< std::vector< QpMap > > & getRefinementMap (const Elem &elem, int parent_side, int child, int child_side)
 
const std::vector< std::pair< unsigned int, QpMap > > & getCoarseningMap (const Elem &elem, int input_side)
 
void changeBoundaryId (const boundary_id_type old_id, const boundary_id_type new_id, bool delete_prev)
 
const std::set< BoundaryID > & getSubdomainBoundaryIds (const SubdomainID subdomain_id) const
 
std::set< BoundaryIDgetSubdomainInterfaceBoundaryIds (const SubdomainID subdomain_id) const
 
std::set< SubdomainIDgetBoundaryConnectedBlocks (const BoundaryID bid) const
 
std::set< SubdomainIDgetBoundaryConnectedSecondaryBlocks (const BoundaryID bid) const
 
std::set< SubdomainIDgetInterfaceConnectedBlocks (const BoundaryID bid) const
 
const std::set< SubdomainID > & getBlockConnectedBlocks (const SubdomainID subdomain_id) const
 
bool isBoundaryNode (dof_id_type node_id) const
 
bool isBoundaryNode (dof_id_type node_id, BoundaryID bnd_id) const
 
bool isBoundaryElem (dof_id_type elem_id) const
 
bool isBoundaryElem (dof_id_type elem_id, BoundaryID bnd_id) const
 
void errorIfDistributedMesh (std::string name) const
 
virtual bool isDistributedMesh () const
 
bool isParallelTypeForced () const
 
void setParallelType (ParallelType parallel_type)
 
ParallelType getParallelType () const
 
const MooseEnumpartitionerName () const
 
bool isPartitionerForced () const
 
void allowRecovery (bool allow)
 
void setCustomPartitioner (libMesh::Partitioner *partitioner)
 
bool isRegularOrthogonal ()
 
bool hasSecondOrderElements ()
 
virtual std::unique_ptr< libMesh::PointLocatorBasegetPointLocator () const
 
virtual std::string getFileName () const
 
void needsRemoteElemDeletion (bool need_delete)
 
bool needsRemoteElemDeletion () const
 
void allowRemoteElementRemoval (bool allow_removal)
 
bool allowRemoteElementRemoval () const
 
void deleteRemoteElements ()
 
bool hasMeshBase () const
 
bool hasElementID (const std::string &id_name) const
 
unsigned int getElementIDIndex (const std::string &id_name) const
 
dof_id_type maxElementID (unsigned int elem_id_index) const
 
dof_id_type minElementID (unsigned int elem_id_index) const
 
bool areElemIDsIdentical (const std::string &id_name1, const std::string &id_name2) const
 
std::set< dof_id_typegetAllElemIDs (unsigned int elem_id_index) const
 
std::set< dof_id_typegetElemIDsOnBlocks (unsigned int elem_id_index, const std::set< SubdomainID > &blks) const
 
std::unordered_map< dof_id_type, std::set< dof_id_type > > getElemIDMapping (const std::string &from_id_name, const std::string &to_id_name) const
 
void cacheFaceInfoVariableOwnership () const
 
void cacheFVElementalDoFs () const
 
void computeFiniteVolumeCoords () const
 
void isDisplaced (bool is_displaced)
 
bool isDisplaced () const
 
const std::map< boundary_id_type, std::vector< dof_id_type > > & nodeSetNodes () const
 
Moose::CoordinateSystemType getCoordSystem (SubdomainID sid) const
 
const std::map< SubdomainID, Moose::CoordinateSystemType > & getCoordSystem () const
 
Moose::CoordinateSystemType getUniqueCoordSystem () const
 
void setCoordSystem (const std::vector< SubdomainName > &blocks, const MultiMooseEnum &coord_sys)
 
void setAxisymmetricCoordAxis (const MooseEnum &rz_coord_axis)
 
void setGeneralAxisymmetricCoordAxes (const std::vector< SubdomainName > &blocks, const std::vector< std::pair< Point, RealVectorValue >> &axes)
 
const std::pair< Point, RealVectorValue > & getGeneralAxisymmetricCoordAxis (SubdomainID subdomain_id) const
 
bool usingGeneralAxisymmetricCoordAxes () const
 
unsigned int getAxisymmetricRadialCoord () const
 
void checkCoordinateSystems ()
 
void setCoordData (const MooseMesh &other_mesh)
 
void markFiniteVolumeInfoDirty ()
 
bool isFiniteVolumeInfoDirty () const
 
MooseAppCoordTransformcoordTransform ()
 
const MooseUnitslengthUnit () const
 
const std::unordered_map< std::pair< const Elem *, unsigned short int >, const Elem *> & getLowerDElemMap () const
 
bool isSplit () const
 
void buildFiniteVolumeInfo () const
 
void setupFiniteVolumeMeshData () const
 
void doingPRefinement (bool doing_p_refinement)
 
bool doingPRefinement () const
 
unsigned int maxPLevel () const
 
unsigned int maxHLevel () const
 
const std::vector< QpMap > & getPRefinementMap (const Elem &elem) const
 
const std::vector< QpMap > & getPRefinementSideMap (const Elem &elem) const
 
const std::vector< QpMap > & getPCoarseningMap (const Elem &elem) const
 
const std::vector< QpMap > & getPCoarseningSideMap (const Elem &elem) const
 
void buildPRefinementAndCoarseningMaps (Assembly *assembly)
 
bool isLowerD (const SubdomainID subdomain_id) const
 
bool hasLowerD () const
 
const std::set< SubdomainID > & interiorLowerDBlocks () const
 
const std::set< SubdomainID > & boundaryLowerDBlocks () const
 
bool getConstructNodeListFromSideList ()
 
virtual bool enabled () const
 
std::shared_ptr< MooseObjectgetSharedPtr ()
 
std::shared_ptr< const MooseObjectgetSharedPtr () const
 
MooseAppgetMooseApp () 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 &parameter_name) const
 
const InputParametersparameters () const
 
MooseObjectName uniqueName () const
 
const T & getParam (const std::string &name) const
 
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 
const T * queryParam (const std::string &name) const
 
const T & getRenamedParam (const std::string &old_name, const std::string &new_name) const
 
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 &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramInfo (const std::string &param, Args... args) const
 
void connectControllableParams (const std::string &parameter, 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 &param) const
 
std::string getDataFileNameByName (const std::string &relative_path) const
 
std::string getDataFilePath (const std::string &relative_path) const
 
PerfGraphperfGraph ()
 
libMesh::ConstElemRangegetActiveLocalElementRange ()
 
libMesh::ConstElemRangegetActiveLocalElementRange ()
 
libMesh::NodeRangegetActiveNodeRange ()
 
libMesh::NodeRangegetActiveNodeRange ()
 
SemiLocalNodeRangegetActiveSemiLocalNodeRange () const
 
SemiLocalNodeRangegetActiveSemiLocalNodeRange () const
 
libMesh::ConstNodeRangegetLocalNodeRange ()
 
libMesh::ConstNodeRangegetLocalNodeRange ()
 
libMesh::StoredRange< MooseMesh::const_bnd_node_iterator, const BndNode *> * getBoundaryNodeRange ()
 
libMesh::StoredRange< MooseMesh::const_bnd_node_iterator, const BndNode *> * getBoundaryNodeRange ()
 
libMesh::StoredRange< MooseMesh::const_bnd_elem_iterator, const BndElement *> * getBoundaryElementRange ()
 
libMesh::StoredRange< MooseMesh::const_bnd_elem_iterator, const BndElement *> * getBoundaryElementRange ()
 
virtual Real getMinInDimension (unsigned int component) const
 
virtual Real getMinInDimension (unsigned int component) const
 
virtual Real getMaxInDimension (unsigned int component) const
 
virtual Real getMaxInDimension (unsigned int component) const
 
bool isCustomPartitionerRequested () const
 
bool isCustomPartitionerRequested () const
 
void setIsCustomPartitionerRequested (bool cpr)
 
void setIsCustomPartitionerRequested (bool cpr)
 
unsigned int nFace () const
 
unsigned int nFace () const
 
const std::vector< const FaceInfo *> & faceInfo () const
 
const FaceInfofaceInfo (const Elem *elem, unsigned int side) const
 
const std::vector< const FaceInfo *> & faceInfo () const
 
const FaceInfofaceInfo (const Elem *elem, unsigned int side) const
 
face_info_iterator ownedFaceInfoBegin ()
 
face_info_iterator ownedFaceInfoBegin ()
 
face_info_iterator ownedFaceInfoEnd ()
 
face_info_iterator ownedFaceInfoEnd ()
 
elem_info_iterator ownedElemInfoBegin ()
 
elem_info_iterator ownedElemInfoBegin ()
 
elem_info_iterator ownedElemInfoEnd ()
 
elem_info_iterator ownedElemInfoEnd ()
 
const ElemInfoelemInfo (const dof_id_type id) const
 
const ElemInfoelemInfo (const dof_id_type id) const
 
const std::vector< const ElemInfo *> & elemInfoVector () const
 
const std::vector< const ElemInfo *> & elemInfoVector () const
 
const std::vector< FaceInfo > & allFaceInfo () const
 
const std::vector< FaceInfo > & allFaceInfo () 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 void rodPositions (std::vector< Point > &positions, unsigned int nrings, Real pitch, Point center)
 Calculates and stores the pin positions/centers for a hexagonal assembly containing the given number of rings in a triangular/alternating row grid spaced 'pitch' apart. More...
 
static void generateZGrid (Real unheated_length_entry, Real heated_length, Real unheated_length_exit, unsigned int n_cells, std::vector< Real > &z_grid)
 Generate the spacing in z-direction using heated and unteaded lengths. More...
 
static void setSubdomainName (MeshBase &mesh, SubdomainID subdomain_id, const SubdomainName &name)
 
static void changeBoundaryId (MeshBase &mesh, const boundary_id_type old_id, const boundary_id_type new_id, bool delete_prev)
 
static MooseEnum partitioning ()
 
static MooseEnum elemTypes ()
 
static void setPartitioner (MeshBase &mesh_base, MooseEnum &partitioner, bool use_distributed_mesh, const InputParameters &params, MooseObject &context_obj)
 

Public Attributes

std::vector< std::vector< Real > > _subchannel_position
 x,y coordinates of the subchannel centroids More...
 
const ConsoleStream _console
 

Static Public Attributes

static const unsigned int N_CORNERS = 6
 number of corners in the duct x-sec More...
 

Protected Types

typedef std::vector< BndNode *>::iterator bnd_node_iterator_imp
 
typedef std::vector< BndNode *>::const_iterator const_bnd_node_iterator_imp
 
typedef std::vector< BndElement *>::iterator bnd_elem_iterator_imp
 
typedef std::vector< BndElement *>::const_iterator const_bnd_elem_iterator_imp
 

Protected Member Functions

void cacheInfo ()
 
void freeBndNodes ()
 
void freeBndElems ()
 
void setPartitionerHelper (MeshBase *mesh=nullptr)
 
T & declareRestartableData (const std::string &data_name, Args &&... args)
 
ManagedValue< T > declareManagedRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
const T & getRestartableData (const std::string &data_name) const
 
T & declareRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
T & declareRecoverableData (const std::string &data_name, Args &&... args)
 
T & declareRestartableDataWithObjectName (const std::string &data_name, const std::string &object_name, Args &&... args)
 
T & declareRestartableDataWithObjectNameWithContext (const std::string &data_name, const std::string &object_name, void *context, Args &&... args)
 
std::string restartableName (const std::string &data_name) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const
 
std::string timedSectionName (const std::string &section_name) const
 

Protected Attributes

unsigned int _n_rings
 number of rings of fuel pins More...
 
unsigned int _n_channels
 number of subchannels More...
 
Real _flat_to_flat
 the distance between flat surfaces of the duct facing each other More...
 
Real _dwire
 wire diameter More...
 
Real _hwire
 wire lead length More...
 
Real _duct_to_pin_gap
 the gap thickness between the duct and peripheral fuel pins More...
 
std::vector< std::vector< Node * > > _nodes
 nodes More...
 
std::vector< std::vector< Node * > > _pin_nodes
 pin nodes More...
 
std::vector< Node * > _duct_nodes
 A list of all mesh nodes that form the (elements of) the hexagonal duct mesh that surrounds the pins/subchannels. More...
 
std::map< Node *, Node * > _chan_to_duct_node_map
 A map for providing the closest/corresponding duct node associated with each subchannel node. More...
 
std::map< Node *, Node * > _duct_node_to_chan_map
 A map for providing the closest/corresponding subchannel node associated with each duct node. 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 pins belonging to each gap More...
 
std::vector< std::vector< unsigned int > > _chan_to_gap_map
 stores the gaps that forms each subchannel More...
 
std::vector< std::vector< Real > > _sign_id_crossflow_map
 Defines the global cross-flow direction -1 or 1 for each subchannel and for all gaps that are belonging to the corresponding subchannel. More...
 
std::vector< std::vector< Real > > _gij_map
 gap size 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 subchannel More...
 
unsigned int _npins
 number of fuel pins More...
 
unsigned int _n_gaps
 number of gaps More...
 
std::vector< EChannelType_subch_type
 subchannel 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...
 
std::vector< std::vector< unsigned int > > _pin_to_chan_map
 TODO: channel indices corresponding to a given pin index. More...
 
bool _pin_mesh_exist
 Flag that informs the solver whether there is a Pin Mesh or not. More...
 
bool _duct_mesh_exist
 Flag that informs the solver whether there is a Duct Mesh or not. More...
 
Real _unheated_length_entry
 unheated length of the fuel Pin at the entry of the assembly More...
 
Real _heated_length
 heated length of the fuel Pin More...
 
Real _unheated_length_exit
 unheated length of the fuel Pin at the exit of the assembly 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...
 
std::vector< Real_spacer_z
 axial location of the spacers More...
 
std::vector< Real_spacer_k
 form loss coefficient of the spacers More...
 
std::vector< Real_z_blockage
 axial location of blockage (inlet, outlet) [m] More...
 
std::vector< unsigned int_index_blockage
 index of subchannels affected by blockage More...
 
std::vector< Real_reduction_blockage
 area reduction of subchannels affected by blockage More...
 
Real _kij
 Lateral form loss coefficient. More...
 
Real _pitch
 Distance between the neighbor fuel pins, pitch. More...
 
Real _pin_diameter
 fuel Pin diameter More...
 
unsigned int _n_cells
 number of axial cells More...
 
 X
 
 Y
 
 Z
 
 MIN
 
 MAX
 
std::vector< std::unique_ptr< libMesh::GhostingFunctor > > _ghosting_functors
 
std::vector< std::shared_ptr< RelationshipManager > > _relationship_managers
 
bool _built_from_other_mesh
 
ParallelType _parallel_type
 
bool _use_distributed_mesh
 
bool _distribution_overridden
 
bool _parallel_type_overridden
 
std::unique_ptr< libMesh::MeshBase_mesh
 
MooseEnum _partitioner_name
 
bool _partitioner_overridden
 
std::unique_ptr< libMesh::Partitioner_custom_partitioner
 
bool _custom_partitioner_requested
 
unsigned int _uniform_refine_level
 
bool _skip_refine_when_use_split
 
bool _skip_deletion_repartition_after_refine
 
bool _is_changed
 
bool _is_nemesis
 
bool _moose_mesh_prepared
 
std::unique_ptr< ConstElemPointerRange_refined_elements
 
std::unique_ptr< ConstElemPointerRange_coarsened_elements
 
std::map< const Elem *, std::vector< const Elem *> > _coarsened_element_children
 
std::set< Node *> _semilocal_node_list
 
std::unique_ptr< libMesh::ConstElemRange_active_local_elem_range
 
std::unique_ptr< SemiLocalNodeRange_active_semilocal_node_range
 
std::unique_ptr< libMesh::NodeRange_active_node_range
 
std::unique_ptr< libMesh::ConstNodeRange_local_node_range
 
std::unique_ptr< libMesh::StoredRange< MooseMesh::const_bnd_node_iterator, const BndNode *> > _bnd_node_range
 
std::unique_ptr< libMesh::StoredRange< MooseMesh::const_bnd_elem_iterator, const BndElement *> > _bnd_elem_range
 
std::map< dof_id_type, std::vector< dof_id_type > > _node_to_elem_map
 
bool _node_to_elem_map_built
 
std::map< dof_id_type, std::vector< dof_id_type > > _node_to_active_semilocal_elem_map
 
bool _node_to_active_semilocal_elem_map_built
 
std::set< SubdomainID_mesh_subdomains
 
std::unique_ptr< std::map< BoundaryID, RealVectorValue > > _boundary_to_normal_map
 
std::vector< BndNode *> _bnd_nodes
 
std::map< boundary_id_type, std::set< dof_id_type > > _bnd_node_ids
 
std::vector< BndElement *> _bnd_elems
 
std::unordered_map< boundary_id_type, std::unordered_set< dof_id_type > > _bnd_elem_ids
 
std::map< dof_id_type, Node *> _quadrature_nodes
 
std::map< dof_id_type, std::map< unsigned int, std::map< dof_id_type, Node *> > > _elem_to_side_to_qp_to_quadrature_nodes
 
std::vector< BndNode_extra_bnd_nodes
 
std::map< dof_id_type, std::set< SubdomainID > > _block_node_list
 
std::map< boundary_id_type, std::vector< dof_id_type > > _node_set_nodes
 
std::set< unsigned int_ghosted_boundaries
 
std::vector< Real_ghosted_boundaries_inflation
 
unsigned int _patch_size
 
unsigned int _ghosting_patch_size
 
unsigned int _max_leaf_size
 
Moose::PatchUpdateType _patch_update_strategy
 
std::vector< Node *> _node_map
 
bool _regular_orthogonal_mesh
 
std::vector< std::vector< Real > > _bounds
 
std::vector< std::pair< BoundaryID, BoundaryID > > _paired_boundary
 
const bool _is_split
 
const bool & _enabled
 
MooseApp_app
 
const std::string _type
 
const std::string _name
 
const InputParameters_pars
 
Factory_factory
 
ActionFactory_action_factory
 
MooseApp_restartable_app
 
const std::string _restartable_system_name
 
const THREAD_ID _restartable_tid
 
const bool _restartable_read_only
 
MooseApp_pg_moose_app
 
const std::string _prefix
 
std::set< BoundaryID_mesh_boundary_ids
 
std::set< BoundaryID_mesh_sideset_ids
 
std::set< BoundaryID_mesh_nodeset_ids
 
const Parallel::Communicator & _communicator
 

Friends

class SCMTriSubChannelMeshGenerator
 
class SCMTriDuctMeshGenerator
 
class SCMTriPinMeshGenerator
 
class SCMDetailedTriPinMeshGenerator
 
class TriSubChannel1PhaseProblem
 

Detailed Description

Mesh class for triangular, edge and corner subchannels for hexagonal lattice fuel assemblies.

Definition at line 17 of file TriSubChannelMesh.h.

Constructor & Destructor Documentation

◆ TriSubChannelMesh() [1/2]

TriSubChannelMesh::TriSubChannelMesh ( const InputParameters parameters)

Definition at line 25 of file TriSubChannelMesh.C.

26  : SubChannelMesh(params), _pin_mesh_exist(false), _duct_mesh_exist(false)
27 {
28 }
bool _pin_mesh_exist
Flag that informs the solver whether there is a Pin Mesh or not.
bool _duct_mesh_exist
Flag that informs the solver whether there is a Duct Mesh or not.
SubChannelMesh(const InputParameters &parameters)

◆ TriSubChannelMesh() [2/2]

TriSubChannelMesh::TriSubChannelMesh ( const TriSubChannelMesh other_mesh)

Definition at line 30 of file TriSubChannelMesh.C.

31  : SubChannelMesh(other_mesh),
32  _n_rings(other_mesh._n_rings),
33  _n_channels(other_mesh._n_channels),
34  _flat_to_flat(other_mesh._flat_to_flat),
35  _dwire(other_mesh._dwire),
36  _hwire(other_mesh._hwire),
38  _nodes(other_mesh._nodes),
39  _duct_nodes(other_mesh._duct_nodes),
43  _gap_to_pin_map(other_mesh._gap_to_pin_map),
46  _gij_map(other_mesh._gij_map),
47  _pin_position(other_mesh._pin_position),
48  _pins_in_rings(other_mesh._pins_in_rings),
50  _npins(other_mesh._npins),
51  _n_gaps(other_mesh._n_gaps),
52  _subch_type(other_mesh._subch_type),
53  _gap_type(other_mesh._gap_type),
54  _gap_pairs_sf(other_mesh._gap_pairs_sf),
55  _chan_pairs_sf(other_mesh._chan_pairs_sf),
57  _pin_mesh_exist(other_mesh._pin_mesh_exist),
59 {
61 }
std::vector< EChannelType > _subch_type
subchannel type
std::vector< Node * > _duct_nodes
A list of all mesh nodes that form the (elements of) the hexagonal duct mesh that surrounds the pins/...
std::vector< std::vector< Real > > _sign_id_crossflow_map
Defines the global cross-flow direction -1 or 1 for each subchannel and for all gaps that are belongi...
std::vector< std::vector< unsigned int > > _pin_to_chan_map
TODO: channel indices corresponding to a given pin index.
std::vector< std::pair< unsigned int, unsigned int > > _gap_to_chan_map
stores the channel pairs for each gap
std::vector< std::vector< unsigned int > > _chan_to_pin_map
stores the fuel pins belonging to each subchannel
Real _dwire
wire diameter
Real _hwire
wire lead length
Real _duct_to_pin_gap
the gap thickness between the duct and peripheral fuel pins
std::vector< std::vector< Real > > _subchannel_position
x,y coordinates of the subchannel centroids
std::vector< std::pair< unsigned int, unsigned int > > _gap_to_pin_map
stores the fuel pins belonging to each gap
unsigned int _n_rings
number of rings of fuel pins
bool _pin_mesh_exist
Flag that informs the solver whether there is a Pin Mesh or not.
Real _flat_to_flat
the distance between flat surfaces of the duct facing each other
std::vector< std::vector< unsigned int > > _chan_to_gap_map
stores the gaps that forms each subchannel
unsigned int _npins
number of fuel pins
std::vector< std::vector< Real > > _gij_map
gap size
std::vector< std::vector< Real > > _pins_in_rings
fuel pins that are belonging to each ring
std::vector< std::vector< Node * > > _nodes
nodes
std::vector< EChannelType > _gap_type
gap type
std::vector< Point > _pin_position
x,y coordinates of the fuel pins
bool _duct_mesh_exist
Flag that informs the solver whether there is a Duct Mesh or not.
std::vector< std::pair< unsigned int, unsigned int > > _gap_pairs_sf
sweeping flow model gap pairs per channel to specify directional edge flow
std::map< Node *, Node * > _chan_to_duct_node_map
A map for providing the closest/corresponding duct node associated with each subchannel node...
unsigned int _n_channels
number of subchannels
SubChannelMesh(const InputParameters &parameters)
std::map< Node *, Node * > _duct_node_to_chan_map
A map for providing the closest/corresponding subchannel node associated with each duct node...
std::vector< std::pair< unsigned int, unsigned int > > _chan_pairs_sf
sweeping flow model channel pairs to specify directional edge flow
unsigned int _n_gaps
number of gaps

Member Function Documentation

◆ buildMesh()

void TriSubChannelMesh::buildMesh ( )
overridevirtual

Implements MooseMesh.

Definition at line 160 of file TriSubChannelMesh.C.

161 {
162 }

◆ channelIndex()

unsigned int TriSubChannelMesh::channelIndex ( const Point &  point) const
overridevirtual

Function that returns the subchannel index given a point Determining a channel index given a point Looping over all subchannels to determine the closest one to the point Special treatment for edge and corner subchannels since deformed elements may lead to wrong transfers

Implements SubChannelMesh.

Definition at line 77 of file TriSubChannelMesh.C.

Referenced by getSubchannelIndexFromPoint().

78 {
83 
84  // Distances to determine the closest subchannel
85  Real distance0 = 1.0e+8; // Dummy distance to keep updating the closes distance found
86  Real distance1; // Distance to be updated with the current subchannel distance
87  unsigned int j = 0; // Index to keep track of the closest point to subchannel
88 
89  // Projecting point into hexahedral coordinated to determine if the point belongs to a center
90  // subchannel
91  Real distance_outer_ring = _flat_to_flat / 2 - _duct_to_pin_gap - _pin_diameter / 2;
92  Real channel_distance = std::sqrt(std::pow(p(0), 2) + std::pow(p(1), 2));
93  Real angle = std::abs(std::atan(p(1) / p(0)));
94  Real projection_angle =
95  angle - libMesh::pi / 6 - std::trunc(angle / (libMesh::pi / 3)) * (libMesh::pi / 3);
96  channel_distance = channel_distance * std::cos(projection_angle);
97 
98  // Projecting point on top edge to determine if the point is a corner or edge subchannel by x
99  // coordinate
100  Real loc_angle = std::atan(p(1) / p(0));
101  if (p(0) <= 0)
102  loc_angle += libMesh::pi;
103  else if (p(0) >= 0 && p(1) <= 0)
104  loc_angle += 2 * libMesh::pi;
105  Real rem_ang = std::trunc(loc_angle / (libMesh::pi / 3)) * (libMesh::pi / 3) - libMesh::pi / 3;
106  Real x_coord_new = (std::cos(-rem_ang) * p(0) - std::sin(-rem_ang) * p(1));
107  Real x_lim = (_n_rings - 1) * _pitch / 2.0;
108 
109  // looping over all channels
110  for (unsigned int i = 0; i < _n_channels; i++)
111  {
112 
113  if (_n_rings == 1)
114  {
115  Real angle = std::atan(p(1) / p(0));
116  if ((i * libMesh::pi / 6.0 < angle) && (angle <= (i + 1) * libMesh::pi / 6.0))
117  return i;
118  }
119  else
120  {
121  // Distance from the point to subchannel
122  distance1 = std::sqrt(std::pow((p(0) - _subchannel_position[i][0]), 2.0) +
123  std::pow((p(1) - _subchannel_position[i][1]), 2.0));
124 
125  // If subchannel belongs to center ring
126  if (channel_distance < distance_outer_ring)
127  {
128  if ((distance1 < distance0) && (_subch_type[i] == EChannelType::CENTER))
129  {
130  j = i;
131  distance0 = distance1;
132  } // if
133  } // if
134  // If subchannel belongs to outer ring
135  else
136  {
137  if ((distance1 < distance0) &&
139  {
140  if (((x_coord_new > x_lim) || (x_coord_new < -x_lim)) &&
142  {
143  j = i;
144  distance0 = distance1;
145  } // if
146  else if (((x_coord_new > x_lim) || (x_coord_new > -x_lim)) &&
148  {
149  j = i;
150  distance0 = distance1;
151  }
152  }
153  }
154  }
155  }
156  return j;
157 }
std::vector< EChannelType > _subch_type
subchannel type
Real _duct_to_pin_gap
the gap thickness between the duct and peripheral fuel pins
std::vector< std::vector< Real > > _subchannel_position
x,y coordinates of the subchannel centroids
unsigned int _n_rings
number of rings of fuel pins
Real _flat_to_flat
the distance between flat surfaces of the duct facing each other
Real _pin_diameter
fuel Pin diameter
Real _pitch
Distance between the neighbor fuel pins, pitch.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
MooseUnits pow(const MooseUnits &, int)
unsigned int _n_channels
number of subchannels
const Real pi

◆ ductMeshExist()

virtual bool TriSubChannelMesh::ductMeshExist ( ) const
inlineoverridevirtual

Return if Duct Mesh exists or not.

Implements SubChannelMesh.

Definition at line 33 of file TriSubChannelMesh.h.

33 { return _duct_mesh_exist; }
bool _duct_mesh_exist
Flag that informs the solver whether there is a Duct Mesh or not.

◆ generateZGrid()

void SubChannelMesh::generateZGrid ( Real  unheated_length_entry,
Real  heated_length,
Real  unheated_length_exit,
unsigned int  n_cells,
std::vector< Real > &  z_grid 
)
staticinherited

Generate the spacing in z-direction using heated and unteaded lengths.

Definition at line 39 of file SubChannelMesh.C.

Referenced by SCMQuadSubChannelMeshGenerator::SCMQuadSubChannelMeshGenerator(), SCMTriDuctMeshGenerator::SCMTriDuctMeshGenerator(), and SCMTriSubChannelMeshGenerator::SCMTriSubChannelMeshGenerator().

44 {
45  Real L = unheated_length_entry + heated_length + unheated_length_exit;
46  Real dz = L / n_cells;
47  for (unsigned int i = 0; i < n_cells + 1; i++)
48  z_grid.push_back(dz * i);
49 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
dof_id_type n_cells

◆ getChannelGaps()

virtual const std::vector<unsigned int>& TriSubChannelMesh::getChannelGaps ( unsigned int  i_chan) const
inlineoverridevirtual

Return a vector of gap indices for a given channel index.

Implements SubChannelMesh.

Definition at line 85 of file TriSubChannelMesh.h.

86  {
87  return _chan_to_gap_map[i_chan];
88  }
std::vector< std::vector< unsigned int > > _chan_to_gap_map
stores the gaps that forms each subchannel

◆ getChannelNode()

virtual Node* TriSubChannelMesh::getChannelNode ( unsigned int  i_chan,
unsigned  iz 
) const
inlineoverridevirtual

Get the subchannel mesh node for a given channel index and elevation index.

Implements SubChannelMesh.

Definition at line 69 of file TriSubChannelMesh.h.

70  {
71  return _nodes[i_chan][iz];
72  }
std::vector< std::vector< Node * > > _nodes
nodes

◆ getChannelNodeFromDuct()

virtual Node* TriSubChannelMesh::getChannelNodeFromDuct ( Node *  channel_node)
inlineoverridevirtual

Function that gets the channel node from the duct node.

Implements SubChannelMesh.

Definition at line 151 of file TriSubChannelMesh.h.

152  {
153  return _duct_node_to_chan_map[channel_node];
154  }
std::map< Node *, Node * > _duct_node_to_chan_map
A map for providing the closest/corresponding subchannel node associated with each duct node...

◆ getChannelPins()

virtual const std::vector<unsigned int>& TriSubChannelMesh::getChannelPins ( unsigned int  i_chan) const
inlineoverridevirtual

Return a vector of pin indices for a given channel index.

Implements SubChannelMesh.

Definition at line 122 of file TriSubChannelMesh.h.

Referenced by SCMTriPowerAux::computeValue(), and SCMTriPowerIC::value().

123  {
124  return _chan_to_pin_map[i_chan];
125  }
std::vector< std::vector< unsigned int > > _chan_to_pin_map
stores the fuel pins belonging to each subchannel

◆ getChanNodeFromDuct()

virtual Node* TriSubChannelMesh::getChanNodeFromDuct ( Node *  duct_node)
inlineoverridevirtual

Function that gets the channel node from the duct node.

Implements SubChannelMesh.

Definition at line 135 of file TriSubChannelMesh.h.

136  {
137  return _duct_node_to_chan_map[duct_node];
138  }
std::map< Node *, Node * > _duct_node_to_chan_map
A map for providing the closest/corresponding subchannel node associated with each duct node...

◆ getCrossflowSign()

virtual const Real& TriSubChannelMesh::getCrossflowSign ( unsigned int  i_chan,
unsigned int  i_local 
) const
inlineoverridevirtual

Return a sign for the crossflow given a subchannel index and local neighbor index.

Implements SubChannelMesh.

Definition at line 89 of file TriSubChannelMesh.h.

90  {
91  return _sign_id_crossflow_map[i_chan][i_local];
92  }
std::vector< std::vector< Real > > _sign_id_crossflow_map
Defines the global cross-flow direction -1 or 1 for each subchannel and for all gaps that are belongi...

◆ getDuctNodeFromChannel()

virtual Node* TriSubChannelMesh::getDuctNodeFromChannel ( Node *  channel_node)
inlineoverridevirtual

Function that gets the duct node from the channel node.

Implements SubChannelMesh.

Definition at line 143 of file TriSubChannelMesh.h.

144  {
145  return _chan_to_duct_node_map[channel_node];
146  }
std::map< Node *, Node * > _chan_to_duct_node_map
A map for providing the closest/corresponding duct node associated with each subchannel node...

◆ getDuctNodes()

virtual const std::vector<Node *> TriSubChannelMesh::getDuctNodes ( ) const
inlineoverridevirtual

Function that return the vector with the maps to the nodes.

Implements SubChannelMesh.

Definition at line 159 of file TriSubChannelMesh.h.

159 { return _duct_nodes; }
std::vector< Node * > _duct_nodes
A list of all mesh nodes that form the (elements of) the hexagonal duct mesh that surrounds the pins/...

◆ getDuctToPinGap()

virtual const Real& TriSubChannelMesh::getDuctToPinGap ( ) const
inlinevirtual

Return the the gap thickness between the duct and peripheral fuel pins.

Definition at line 38 of file TriSubChannelMesh.h.

Referenced by TriSubChannel1PhaseProblem::computeFrictionFactor(), TriSubChannel1PhaseProblem::computeh(), TriSubChannel1PhaseProblem::initializeSolution(), SCMTriWettedPerimIC::value(), MarvelTriWettedPerimIC::value(), SCMTriFlowAreaIC::value(), and MarvelTriFlowAreaIC::value().

38 { return _duct_to_pin_gap; }
Real _duct_to_pin_gap
the gap thickness between the duct and peripheral fuel pins

◆ getFlatToFlat()

virtual const Real& TriSubChannelMesh::getFlatToFlat ( ) const
inlinevirtual

Return flat to flat [m].

Definition at line 62 of file TriSubChannelMesh.h.

Referenced by TriSubChannel1PhaseProblem::initializeSolution().

62 { return _flat_to_flat; }
Real _flat_to_flat
the distance between flat surfaces of the duct facing each other

◆ getGapChannels()

virtual const std::pair<unsigned int, unsigned int>& TriSubChannelMesh::getGapChannels ( unsigned int  i_gap) const
inlineoverridevirtual

Return a pair of subchannel indices for a given gap index.

Implements SubChannelMesh.

Definition at line 76 of file TriSubChannelMesh.h.

77  {
78  return _gap_to_chan_map[i_gap];
79  }
std::vector< std::pair< unsigned int, unsigned int > > _gap_to_chan_map
stores the channel pairs for each gap

◆ getGapPins()

virtual const std::pair<unsigned int, unsigned int>& TriSubChannelMesh::getGapPins ( unsigned int  i_gap) const
inlineoverridevirtual

Return a pair of pin indices for a given gap index.

Implements SubChannelMesh.

Definition at line 81 of file TriSubChannelMesh.h.

82  {
83  return _gap_to_pin_map[i_gap];
84  }
std::vector< std::pair< unsigned int, unsigned int > > _gap_to_pin_map
stores the fuel pins belonging to each gap

◆ getGapWidth()

virtual Real TriSubChannelMesh::getGapWidth ( unsigned int  axial_index,
unsigned int  gap_index 
) const
inlineoverridevirtual

Return gap width for a given gap index.

Implements SubChannelMesh.

Definition at line 102 of file TriSubChannelMesh.h.

103  {
104  return _gij_map[axial_index][gap_index];
105  }
std::vector< std::vector< Real > > _gij_map
gap size

◆ getHeatedLength()

virtual const Real& SubChannelMesh::getHeatedLength ( ) const
inlinevirtualinherited

◆ getHeatedLengthEntry()

virtual const Real& SubChannelMesh::getHeatedLengthEntry ( ) const
inlinevirtualinherited

◆ getHeatedLengthExit()

virtual const Real& SubChannelMesh::getHeatedLengthExit ( ) const
inlinevirtualinherited

Return unheated length at exit.

Definition at line 169 of file SubChannelMesh.h.

Referenced by SCMPinSurfaceTemperature::execute(), SCMPlanarMean::execute(), and QuadSubChannelNormalSliceValues::output().

169 { return _unheated_length_exit; }
Real _unheated_length_exit
unheated length of the fuel Pin at the exit of the assembly

◆ getIndexBlockage()

virtual const std::vector<unsigned int>& SubChannelMesh::getIndexBlockage ( ) const
inlinevirtualinherited

Get index of blocked subchannels.

Definition at line 48 of file SubChannelMesh.h.

Referenced by QuadSubChannel1PhaseProblem::initializeSolution(), TriSubChannel1PhaseProblem::initializeSolution(), SCMQuadFlowAreaIC::value(), SCMTriFlowAreaIC::value(), and MarvelTriFlowAreaIC::value().

48 { return _index_blockage; }
std::vector< unsigned int > _index_blockage
index of subchannels affected by blockage

◆ getKGrid()

virtual const std::vector<std::vector<Real> >& SubChannelMesh::getKGrid ( ) const
inlinevirtualinherited

Get axial cell location and value of loss coefficient.

Definition at line 38 of file SubChannelMesh.h.

Referenced by SubChannel1PhaseProblem::computeDP().

38 { return _k_grid; }
std::vector< std::vector< Real > > _k_grid
axial form loss coefficient per computational cell

◆ getKij()

virtual const Real& SubChannelMesh::getKij ( ) const
inlinevirtualinherited

Return lateral loss coefficient.

Definition at line 58 of file SubChannelMesh.h.

58 { return _kij; }
Real _kij
Lateral form loss coefficient.

◆ getNumOfAxialCells()

virtual const unsigned int& SubChannelMesh::getNumOfAxialCells ( ) const
inlinevirtualinherited

◆ getNumOfChannels()

virtual const unsigned int& TriSubChannelMesh::getNumOfChannels ( ) const
inlineoverridevirtual

Return the number of channels per layer.

Implements SubChannelMesh.

Definition at line 73 of file TriSubChannelMesh.h.

73 { return _n_channels; }
unsigned int _n_channels
number of subchannels

◆ getNumOfGapsPerLayer()

virtual const unsigned int& TriSubChannelMesh::getNumOfGapsPerLayer ( ) const
inlineoverridevirtual

Return the number of gaps per layer.

Implements SubChannelMesh.

Definition at line 74 of file TriSubChannelMesh.h.

74 { return _n_gaps; }
unsigned int _n_gaps
number of gaps

◆ getNumOfPins()

virtual const unsigned int& TriSubChannelMesh::getNumOfPins ( ) const
inlineoverridevirtual

Return the number of pins.

Implements SubChannelMesh.

Definition at line 25 of file TriSubChannelMesh.h.

Referenced by SCMTriPowerAux::initialSetup(), SCMTriPowerIC::initialSetup(), SCMTriPowerAux::SCMTriPowerAux(), and SCMTriPowerIC::SCMTriPowerIC().

25 { return _npins; }
unsigned int _npins
number of fuel pins

◆ getNumOfRings()

virtual const unsigned int& TriSubChannelMesh::getNumOfRings ( ) const
inlinevirtual

Return the number of rings.

Definition at line 43 of file TriSubChannelMesh.h.

Referenced by TriSubChannel1PhaseProblem::initializeSolution().

43 { return _n_rings; }
unsigned int _n_rings
number of rings of fuel pins

◆ getPinChannels()

virtual const std::vector<unsigned int>& TriSubChannelMesh::getPinChannels ( unsigned int  i_pin) const
inlineoverridevirtual

Return a vector of channel indices for a given Pin index.

Implements SubChannelMesh.

Definition at line 117 of file TriSubChannelMesh.h.

118  {
119  return _pin_to_chan_map[i_pin];
120  }
std::vector< std::vector< unsigned int > > _pin_to_chan_map
TODO: channel indices corresponding to a given pin index.

◆ getPinDiameter()

virtual const Real& SubChannelMesh::getPinDiameter ( ) const
inlinevirtualinherited

◆ getPinIndex()

virtual const unsigned int& TriSubChannelMesh::getPinIndex ( const unsigned int  channel_idx,
const unsigned int  neighbor_idx 
)
inlinevirtual

Return Pin index given subchannel index and local neighbor index.

Definition at line 48 of file TriSubChannelMesh.h.

50  {
51  return _chan_to_pin_map[channel_idx][neighbor_idx];
52  }
std::vector< std::vector< unsigned int > > _chan_to_pin_map
stores the fuel pins belonging to each subchannel

◆ getPinIndexFromPoint()

unsigned int TriSubChannelMesh::getPinIndexFromPoint ( const Point &  p) const
overridevirtual

Return a pin index for a given physical point p

Function that returns the pin number given a point

Implements SubChannelMesh.

Definition at line 165 of file TriSubChannelMesh.C.

Referenced by SCMTriPowerAux::computeValue(), and SCMTriPowerIC::value().

166 {
168 
169  return this->pinIndex(p);
170 }
virtual unsigned int pinIndex(const Point &p) const override

◆ getPinNode()

virtual Node* TriSubChannelMesh::getPinNode ( unsigned int  i_pin,
unsigned  iz 
) const
inlineoverridevirtual

Get the pin mesh node for a given pin index and elevation index.

Implements SubChannelMesh.

Definition at line 27 of file TriSubChannelMesh.h.

28  {
29  return _pin_nodes[i_pin][iz];
30  }
std::vector< std::vector< Node * > > _pin_nodes
pin nodes

◆ getPitch()

virtual const Real& SubChannelMesh::getPitch ( ) const
inlinevirtualinherited

◆ getReductionBlockage()

virtual const std::vector<Real>& SubChannelMesh::getReductionBlockage ( ) const
inlinevirtualinherited

Get area reduction of blocked subchannels.

Definition at line 53 of file SubChannelMesh.h.

Referenced by QuadSubChannel1PhaseProblem::initializeSolution(), TriSubChannel1PhaseProblem::initializeSolution(), SCMQuadFlowAreaIC::value(), SCMTriFlowAreaIC::value(), and MarvelTriFlowAreaIC::value().

53 { return _reduction_blockage; }
std::vector< Real > _reduction_blockage
area reduction of subchannels affected by blockage

◆ getSubchannelIndexFromPoint()

unsigned int TriSubChannelMesh::getSubchannelIndexFromPoint ( const Point &  p) const
overridevirtual

Return a subchannel index for a given physical point p

Function that returns the subchannel index given a point

Implements SubChannelMesh.

Definition at line 70 of file TriSubChannelMesh.C.

Referenced by SCMTriPowerAux::computeValue(), MarvelTriWettedPerimIC::value(), SCMTriWettedPerimIC::value(), FCTFdisplacementIC::value(), SCMTriPowerIC::value(), MarvelTriFlowAreaIC::value(), and SCMTriFlowAreaIC::value().

71 {
73  return this->channelIndex(p);
74 }
virtual unsigned int channelIndex(const Point &point) const override

◆ getSubchannelType()

virtual EChannelType TriSubChannelMesh::getSubchannelType ( unsigned int  index) const
inlineoverridevirtual

Return the type of the subchannel for given subchannel index.

Implements SubChannelMesh.

Definition at line 97 of file TriSubChannelMesh.h.

Referenced by SCMTriPowerAux::computeValue(), MarvelTriWettedPerimIC::value(), SCMTriWettedPerimIC::value(), FCTFdisplacementIC::value(), SCMTriPowerIC::value(), MarvelTriFlowAreaIC::value(), and SCMTriFlowAreaIC::value().

98  {
99  return _subch_type[index];
100  }
std::vector< EChannelType > _subch_type
subchannel type

◆ getSweepFlowChans()

virtual const std::pair<unsigned int, unsigned int>& TriSubChannelMesh::getSweepFlowChans ( unsigned int  i_chan) const
inlinevirtual

Definition at line 112 of file TriSubChannelMesh.h.

Referenced by TriSubChannel1PhaseProblem::computeh().

113  {
114  return _chan_pairs_sf[i_chan];
115  }
std::vector< std::pair< unsigned int, unsigned int > > _chan_pairs_sf
sweeping flow model channel pairs to specify directional edge flow

◆ getSweepFlowGaps()

virtual const std::pair<unsigned int, unsigned int>& TriSubChannelMesh::getSweepFlowGaps ( unsigned int  i_chan) const
inlinevirtual

Definition at line 107 of file TriSubChannelMesh.h.

108  {
109  return _gap_pairs_sf[i_chan];
110  }
std::vector< std::pair< unsigned int, unsigned int > > _gap_pairs_sf
sweeping flow model gap pairs per channel to specify directional edge flow

◆ getWireDiameter()

virtual const Real& TriSubChannelMesh::getWireDiameter ( ) const
inlinevirtual

◆ getWireLeadLength()

virtual const Real& TriSubChannelMesh::getWireLeadLength ( ) const
inlinevirtual

◆ getZBlockage()

virtual const std::vector<Real>& SubChannelMesh::getZBlockage ( ) const
inlinevirtualinherited

Get axial location of blockage (in,out) [m].

Definition at line 43 of file SubChannelMesh.h.

Referenced by QuadSubChannel1PhaseProblem::initializeSolution(), TriSubChannel1PhaseProblem::initializeSolution(), SCMQuadFlowAreaIC::value(), SCMTriFlowAreaIC::value(), and MarvelTriFlowAreaIC::value().

43 { return _z_blockage; }
std::vector< Real > _z_blockage
axial location of blockage (inlet, outlet) [m]

◆ getZGrid()

virtual const std::vector<Real>& SubChannelMesh::getZGrid ( ) const
inlinevirtualinherited

◆ getZIndex()

unsigned int SubChannelMesh::getZIndex ( const Point &  point) const
virtualinherited

Get axial index of point.

Definition at line 52 of file SubChannelMesh.C.

Referenced by SCMPinSolutionTransfer::getFromNode(), and SCMSolutionTransfer::getFromNode().

53 {
54  if (_z_grid.size() == 0)
55  mooseError("_z_grid is empty.");
56 
57  if (point(2) <= _z_grid[0])
58  return 0;
59  if (point(2) >= _z_grid[_z_grid.size() - 1])
60  return _z_grid.size() - 1;
61 
62  unsigned int lo = 0;
63  unsigned int hi = _z_grid.size();
64  while (lo < hi)
65  {
66  unsigned int mid = (lo + hi) / 2;
67  if (std::abs(_z_grid[mid] - point(2)) < 1e-5)
68  return mid;
69  else if (_z_grid[mid] < point(2))
70  lo = mid;
71  else
72  hi = mid;
73  }
74  return lo;
75 }
std::vector< Real > _z_grid
axial location of nodes
void mooseError(Args &&... args) const

◆ pinIndex()

unsigned int TriSubChannelMesh::pinIndex ( const Point &  p) const
overridevirtual

Function that returns the pin number given a point

Implements SubChannelMesh.

Definition at line 173 of file TriSubChannelMesh.C.

Referenced by getPinIndexFromPoint().

174 {
176 
177  // Define the current ring
178  Real distance_rod;
179  Real d0 = 1e5;
180  unsigned int current_rod = 0;
181 
182  std::vector<Point> positions;
183  Point center(0, 0);
184  this->rodPositions(positions, _n_rings, _pitch, center);
185  for (unsigned int i = 0; i < _npins; i++)
186  {
187  Real x_dist = positions[i](0) - p(0);
188  Real y_dist = positions[i](1) - p(1);
189  distance_rod = std::sqrt(std::pow(x_dist, 2) + std::pow(y_dist, 2));
190  if (distance_rod < d0)
191  {
192  d0 = distance_rod;
193  current_rod = i;
194  }
195  }
196 
197  return current_rod;
198 }
unsigned int _n_rings
number of rings of fuel pins
unsigned int _npins
number of fuel pins
Real _pitch
Distance between the neighbor fuel pins, pitch.
static void rodPositions(std::vector< Point > &positions, unsigned int nrings, Real pitch, Point center)
Calculates and stores the pin positions/centers for a hexagonal assembly containing the given number ...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MooseUnits pow(const MooseUnits &, int)
static const std::string center
Definition: NS.h:28

◆ pinMeshExist()

virtual bool TriSubChannelMesh::pinMeshExist ( ) const
inlineoverridevirtual

Return if Pin Mesh exists or not.

Implements SubChannelMesh.

Definition at line 32 of file TriSubChannelMesh.h.

Referenced by SCMTriPowerAux::computeValue(), and SCMTriPowerIC::value().

32 { return _pin_mesh_exist; }
bool _pin_mesh_exist
Flag that informs the solver whether there is a Pin Mesh or not.

◆ rodPositions()

void TriSubChannelMesh::rodPositions ( std::vector< Point > &  positions,
unsigned int  nrings,
Real  pitch,
Point  center 
)
static

Calculates and stores the pin positions/centers for a hexagonal assembly containing the given number of rings in a triangular/alternating row grid spaced 'pitch' apart.

The points are generated such that the duct is centered at the given center point.

Defining parameters

Definition at line 201 of file TriSubChannelMesh.C.

Referenced by SCMDetailedTriPinMeshGenerator::generate(), SCMTriPinMeshGenerator::generate(), pinIndex(), SCMDetailedTriSubChannelMeshGenerator::SCMDetailedTriSubChannelMeshGenerator(), SCMTriSubChannelMeshGenerator::SCMTriSubChannelMeshGenerator(), and TEST().

205 {
207  // distance: it is the distance to the next Pin
208  //
209  Real theta = 0.0;
210  Real dtheta = 0.0;
211  Real distance = 0.0;
212  Real theta1 = 0.0;
213  Real theta_corrected = 0.0;
214  Real pi = libMesh::pi;
215  unsigned int k = 0;
216  positions.emplace_back(0.0, 0.0);
217  for (unsigned int i = 1; i < nrings; i++)
218  {
219  dtheta = 2.0 * pi / (i * 6);
220  theta = 0.0;
221  for (unsigned int j = 0; j < i * 6; j++)
222  {
223  k = k + 1;
224  theta1 = fmod(theta + 1.0e-10, pi / 3.0);
225  distance = std::sqrt((pow(i * pitch, 2) + pow(theta1 / dtheta * pitch, 2) -
226  2.0 * i * pitch * (theta1 / dtheta * pitch) * std::cos(pi / 3.0)));
227  double argument = 1.0 / (i * pitch) / distance / 2.0 *
228  (std::pow(i * pitch, 2.0) + std::pow(distance, 2.0) -
229  std::pow(theta1 / dtheta * pitch, 2.0));
230  // Check if the argument to std::acos() is within the valid range [-1, 1]
231  if (argument >= -1.0 && argument <= 1.0)
232  {
233  theta_corrected = std::acos(argument);
234  }
235  else if (argument > 1.0)
236  {
237  theta_corrected = 0.0;
238  }
239  else
240  {
241  theta_corrected = pi;
242  }
243  if (theta1 < 1.0e-6)
244  {
245  theta_corrected = theta;
246  }
247  else
248  {
249  if (theta > pi / 3.0 && theta <= 2.0 / 3.0 * pi)
250  theta_corrected = theta_corrected + pi / 3.0;
251  else if (theta > 2.0 / 3.0 * pi && theta <= pi)
252  theta_corrected = theta_corrected + 2.0 / 3.0 * pi;
253  else if (theta > pi && theta <= 4.0 / 3.0 * pi)
254  theta_corrected = theta_corrected + pi;
255  else if (theta > 4.0 / 3.0 * pi && theta <= 5.0 / 3.0 * pi)
256  theta_corrected = theta_corrected + 4.0 / 3.0 * pi;
257  else if (theta > 5.0 / 3.0 * pi && theta <= 2.0 * pi)
258  theta_corrected = theta_corrected + 5.0 / 3.0 * pi;
259  }
260  positions.emplace_back(center(0) + distance * std::cos(theta_corrected),
261  center(1) + distance * std::sin(theta_corrected));
262  theta = theta + dtheta;
263  } // j
264  } // i
265 }
Real distance(const Point &p)
static const std::string pitch
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
MooseUnits pow(const MooseUnits &, int)
static const std::string k
Definition: NS.h:130
static const std::string center
Definition: NS.h:28
const Real pi

◆ safeClone()

std::unique_ptr< MooseMesh > TriSubChannelMesh::safeClone ( ) const
overridevirtual

Implements MooseMesh.

Definition at line 64 of file TriSubChannelMesh.C.

65 {
66  return _app.getFactory().copyConstruct(*this);
67 }
std::unique_ptr< T > copyConstruct(const T &object)
Factory & getFactory()
MooseApp & _app

◆ setChannelToDuctMaps()

void TriSubChannelMesh::setChannelToDuctMaps ( const std::vector< Node *> &  duct_nodes)

Function that gets the channel node from the duct node.

Definition at line 268 of file TriSubChannelMesh.C.

Referenced by SCMTriDuctMeshGenerator::generate().

269 {
270  const Real tol = 1e-10;
271  for (size_t i = 0; i < duct_nodes.size(); i++)
272  {
273  int min_chan = 0;
274  Real min_dist = std::numeric_limits<double>::max();
275  Point ductpos((*duct_nodes[i])(0), (*duct_nodes[i])(1), 0);
276  for (size_t j = 0; j < _subchannel_position.size(); j++)
277  {
278  Point chanpos(_subchannel_position[j][0], _subchannel_position[j][1], 0);
279  auto dist = (chanpos - ductpos).norm();
280  if (dist < min_dist)
281  {
282  min_dist = dist;
283  min_chan = j;
284  }
285  }
286 
287  Node * chan_node = nullptr;
288  for (auto cn : _nodes[min_chan])
289  {
290  if (std::abs((*cn)(2) - (*duct_nodes[i])(2)) < tol)
291  {
292  chan_node = cn;
293  break;
294  }
295  }
296 
297  if (chan_node == nullptr)
298  mooseError("failed to find matching channel node for duct node");
299 
300  _duct_node_to_chan_map[duct_nodes[i]] = chan_node;
301  _chan_to_duct_node_map[chan_node] = duct_nodes[i];
302  }
303 
304  _duct_nodes = duct_nodes;
305 }
std::vector< Node * > _duct_nodes
A list of all mesh nodes that form the (elements of) the hexagonal duct mesh that surrounds the pins/...
const double tol
std::vector< std::vector< Real > > _subchannel_position
x,y coordinates of the subchannel centroids
auto norm(const T &a) -> decltype(std::abs(a))
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< std::vector< Node * > > _nodes
nodes
void mooseError(Args &&... args) const
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
std::map< Node *, Node * > _chan_to_duct_node_map
A map for providing the closest/corresponding duct node associated with each subchannel node...
std::map< Node *, Node * > _duct_node_to_chan_map
A map for providing the closest/corresponding subchannel node associated with each duct node...

◆ validParams()

InputParameters TriSubChannelMesh::validParams ( )
static

Definition at line 17 of file TriSubChannelMesh.C.

18 {
20  params.addClassDescription("Creates an subchannel mesh container for a triangular "
21  "lattice arrangement");
22  return params;
23 }
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)

Friends And Related Function Documentation

◆ SCMDetailedTriPinMeshGenerator

friend class SCMDetailedTriPinMeshGenerator
friend

Definition at line 242 of file TriSubChannelMesh.h.

◆ SCMTriDuctMeshGenerator

friend class SCMTriDuctMeshGenerator
friend

Definition at line 240 of file TriSubChannelMesh.h.

◆ SCMTriPinMeshGenerator

friend class SCMTriPinMeshGenerator
friend

Definition at line 241 of file TriSubChannelMesh.h.

◆ SCMTriSubChannelMeshGenerator

friend class SCMTriSubChannelMeshGenerator
friend

Definition at line 239 of file TriSubChannelMesh.h.

◆ TriSubChannel1PhaseProblem

friend class TriSubChannel1PhaseProblem
friend

Definition at line 243 of file TriSubChannelMesh.h.

Member Data Documentation

◆ _chan_pairs_sf

std::vector<std::pair<unsigned int, unsigned int> > TriSubChannelMesh::_chan_pairs_sf
protected

sweeping flow model channel pairs to specify directional edge flow

Definition at line 219 of file TriSubChannelMesh.h.

Referenced by getSweepFlowChans().

◆ _chan_to_duct_node_map

std::map<Node *, Node *> TriSubChannelMesh::_chan_to_duct_node_map
protected

A map for providing the closest/corresponding duct node associated with each subchannel node.

i.e. a map of subchannel mesh nodes to duct mesh nodes.

Definition at line 184 of file TriSubChannelMesh.h.

Referenced by getDuctNodeFromChannel(), and setChannelToDuctMaps().

◆ _chan_to_gap_map

std::vector<std::vector<unsigned int> > TriSubChannelMesh::_chan_to_gap_map
protected

stores the gaps that forms each subchannel

Definition at line 194 of file TriSubChannelMesh.h.

Referenced by getChannelGaps().

◆ _chan_to_pin_map

std::vector<std::vector<unsigned int> > TriSubChannelMesh::_chan_to_pin_map
protected

stores the fuel pins belonging to each subchannel

Definition at line 207 of file TriSubChannelMesh.h.

Referenced by getChannelPins(), and getPinIndex().

◆ _duct_mesh_exist

bool TriSubChannelMesh::_duct_mesh_exist
protected

Flag that informs the solver whether there is a Duct Mesh or not.

Definition at line 225 of file TriSubChannelMesh.h.

Referenced by ductMeshExist().

◆ _duct_node_to_chan_map

std::map<Node *, Node *> TriSubChannelMesh::_duct_node_to_chan_map
protected

A map for providing the closest/corresponding subchannel node associated with each duct node.

i.e. a map of duct mesh nodes to subchannel mesh nodes.

Definition at line 187 of file TriSubChannelMesh.h.

Referenced by getChannelNodeFromDuct(), getChanNodeFromDuct(), and setChannelToDuctMaps().

◆ _duct_nodes

std::vector<Node *> TriSubChannelMesh::_duct_nodes
protected

A list of all mesh nodes that form the (elements of) the hexagonal duct mesh that surrounds the pins/subchannels.

Definition at line 181 of file TriSubChannelMesh.h.

Referenced by getDuctNodes(), and setChannelToDuctMaps().

◆ _duct_to_pin_gap

Real TriSubChannelMesh::_duct_to_pin_gap
protected

the gap thickness between the duct and peripheral fuel pins

Definition at line 173 of file TriSubChannelMesh.h.

Referenced by channelIndex(), and getDuctToPinGap().

◆ _dwire

Real TriSubChannelMesh::_dwire
protected

wire diameter

Definition at line 169 of file TriSubChannelMesh.h.

Referenced by getWireDiameter().

◆ _flat_to_flat

Real TriSubChannelMesh::_flat_to_flat
protected

the distance between flat surfaces of the duct facing each other

Definition at line 167 of file TriSubChannelMesh.h.

Referenced by channelIndex(), and getFlatToFlat().

◆ _gap_pairs_sf

std::vector<std::pair<unsigned int, unsigned int> > TriSubChannelMesh::_gap_pairs_sf
protected

sweeping flow model gap pairs per channel to specify directional edge flow

Definition at line 217 of file TriSubChannelMesh.h.

Referenced by getSweepFlowGaps().

◆ _gap_to_chan_map

std::vector<std::pair<unsigned int, unsigned int> > TriSubChannelMesh::_gap_to_chan_map
protected

stores the channel pairs for each gap

Definition at line 190 of file TriSubChannelMesh.h.

Referenced by getGapChannels().

◆ _gap_to_pin_map

std::vector<std::pair<unsigned int, unsigned int> > TriSubChannelMesh::_gap_to_pin_map
protected

stores the fuel pins belonging to each gap

Definition at line 192 of file TriSubChannelMesh.h.

Referenced by getGapPins().

◆ _gap_type

std::vector<EChannelType> TriSubChannelMesh::_gap_type
protected

gap type

Definition at line 215 of file TriSubChannelMesh.h.

◆ _gij_map

std::vector<std::vector<Real> > TriSubChannelMesh::_gij_map
protected

gap size

Definition at line 201 of file TriSubChannelMesh.h.

Referenced by getGapWidth(), and TriSubChannel1PhaseProblem::initializeSolution().

◆ _heated_length

Real SubChannelMesh::_heated_length
protectedinherited

heated length of the fuel Pin

Definition at line 204 of file SubChannelMesh.h.

Referenced by SubChannelMesh::getHeatedLength().

◆ _hwire

Real TriSubChannelMesh::_hwire
protected

wire lead length

Definition at line 171 of file TriSubChannelMesh.h.

Referenced by getWireLeadLength().

◆ _index_blockage

std::vector<unsigned int> SubChannelMesh::_index_blockage
protectedinherited

index of subchannels affected by blockage

Definition at line 218 of file SubChannelMesh.h.

Referenced by SubChannelMesh::getIndexBlockage().

◆ _k_grid

std::vector<std::vector<Real> > SubChannelMesh::_k_grid
protectedinherited

axial form loss coefficient per computational cell

Definition at line 210 of file SubChannelMesh.h.

Referenced by SubChannelMesh::getKGrid().

◆ _kij

Real SubChannelMesh::_kij
protectedinherited

Lateral form loss coefficient.

Definition at line 222 of file SubChannelMesh.h.

Referenced by SubChannelMesh::getKij().

◆ _n_cells

unsigned int SubChannelMesh::_n_cells
protectedinherited

number of axial cells

Definition at line 228 of file SubChannelMesh.h.

Referenced by SubChannelMesh::getNumOfAxialCells().

◆ _n_channels

unsigned int TriSubChannelMesh::_n_channels
protected

number of subchannels

Definition at line 165 of file TriSubChannelMesh.h.

Referenced by channelIndex(), and getNumOfChannels().

◆ _n_gaps

unsigned int TriSubChannelMesh::_n_gaps
protected

number of gaps

Definition at line 211 of file TriSubChannelMesh.h.

Referenced by getNumOfGapsPerLayer().

◆ _n_rings

unsigned int TriSubChannelMesh::_n_rings
protected

number of rings of fuel pins

Definition at line 163 of file TriSubChannelMesh.h.

Referenced by channelIndex(), getNumOfRings(), and pinIndex().

◆ _nodes

std::vector<std::vector<Node *> > TriSubChannelMesh::_nodes
protected

nodes

Definition at line 175 of file TriSubChannelMesh.h.

Referenced by getChannelNode(), and setChannelToDuctMaps().

◆ _npins

unsigned int TriSubChannelMesh::_npins
protected

number of fuel pins

Definition at line 209 of file TriSubChannelMesh.h.

Referenced by getNumOfPins(), and pinIndex().

◆ _pin_diameter

Real SubChannelMesh::_pin_diameter
protectedinherited

fuel Pin diameter

Definition at line 226 of file SubChannelMesh.h.

Referenced by channelIndex(), and SubChannelMesh::getPinDiameter().

◆ _pin_mesh_exist

bool TriSubChannelMesh::_pin_mesh_exist
protected

Flag that informs the solver whether there is a Pin Mesh or not.

Definition at line 223 of file TriSubChannelMesh.h.

Referenced by pinMeshExist().

◆ _pin_nodes

std::vector<std::vector<Node *> > TriSubChannelMesh::_pin_nodes
protected

pin nodes

Definition at line 177 of file TriSubChannelMesh.h.

Referenced by SCMTriPinMeshGenerator::generate(), and getPinNode().

◆ _pin_position

std::vector<Point> TriSubChannelMesh::_pin_position
protected

x,y coordinates of the fuel pins

Definition at line 203 of file TriSubChannelMesh.h.

◆ _pin_to_chan_map

std::vector<std::vector<unsigned int> > TriSubChannelMesh::_pin_to_chan_map
protected

TODO: channel indices corresponding to a given pin index.

Definition at line 221 of file TriSubChannelMesh.h.

Referenced by getPinChannels().

◆ _pins_in_rings

std::vector<std::vector<Real> > TriSubChannelMesh::_pins_in_rings
protected

fuel pins that are belonging to each ring

Definition at line 205 of file TriSubChannelMesh.h.

◆ _pitch

Real SubChannelMesh::_pitch
protectedinherited

◆ _reduction_blockage

std::vector<Real> SubChannelMesh::_reduction_blockage
protectedinherited

area reduction of subchannels affected by blockage

Definition at line 220 of file SubChannelMesh.h.

Referenced by SubChannelMesh::getReductionBlockage().

◆ _sign_id_crossflow_map

std::vector<std::vector<Real> > TriSubChannelMesh::_sign_id_crossflow_map
protected

Defines the global cross-flow direction -1 or 1 for each subchannel and for all gaps that are belonging to the corresponding subchannel.

Given a subchannel and a gap, if the neighbor subchannel index belonging to the same gap is lower, set it to -1, otherwise set it to 1.

Definition at line 199 of file TriSubChannelMesh.h.

Referenced by getCrossflowSign().

◆ _spacer_k

std::vector<Real> SubChannelMesh::_spacer_k
protectedinherited

form loss coefficient of the spacers

Definition at line 214 of file SubChannelMesh.h.

◆ _spacer_z

std::vector<Real> SubChannelMesh::_spacer_z
protectedinherited

axial location of the spacers

Definition at line 212 of file SubChannelMesh.h.

◆ _subch_type

std::vector<EChannelType> TriSubChannelMesh::_subch_type
protected

subchannel type

Definition at line 213 of file TriSubChannelMesh.h.

Referenced by channelIndex(), and getSubchannelType().

◆ _subchannel_position

std::vector<std::vector<Real> > SubChannelMesh::_subchannel_position
inherited

◆ _unheated_length_entry

Real SubChannelMesh::_unheated_length_entry
protectedinherited

unheated length of the fuel Pin at the entry of the assembly

Definition at line 202 of file SubChannelMesh.h.

Referenced by SCMQuadSubChannelMeshGenerator::generate(), SCMTriSubChannelMeshGenerator::generate(), and SubChannelMesh::getHeatedLengthEntry().

◆ _unheated_length_exit

Real SubChannelMesh::_unheated_length_exit
protectedinherited

unheated length of the fuel Pin at the exit of the assembly

Definition at line 206 of file SubChannelMesh.h.

Referenced by SubChannelMesh::getHeatedLengthExit().

◆ _z_blockage

std::vector<Real> SubChannelMesh::_z_blockage
protectedinherited

axial location of blockage (inlet, outlet) [m]

Definition at line 216 of file SubChannelMesh.h.

Referenced by SubChannelMesh::getZBlockage().

◆ _z_grid

std::vector<Real> SubChannelMesh::_z_grid
protectedinherited

axial location of nodes

Definition at line 208 of file SubChannelMesh.h.

Referenced by SubChannelMesh::getZGrid(), and SubChannelMesh::getZIndex().

◆ N_CORNERS

const unsigned int TriSubChannelMesh::N_CORNERS = 6
static

number of corners in the duct x-sec

Definition at line 246 of file TriSubChannelMesh.h.

Referenced by SCMTriDuctMeshGenerator::ductCorners().


The documentation for this class was generated from the following files: