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

Creates the mesh of an inter-wrapper around square assemblies. More...

#include <QuadInterWrapperMesh.h>

Inheritance diagram for QuadInterWrapperMesh:
[legend]

Public Types

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

Public Member Functions

 QuadInterWrapperMesh (const InputParameters &parameters)
 
 QuadInterWrapperMesh (const QuadInterWrapperMesh &other_mesh)
 
virtual std::unique_ptr< MooseMeshsafeClone () const override
 
virtual void buildMesh () override
 
virtual Node * getChannelNode (unsigned int i_chan, unsigned iz) const override
 Get the inter-wrapper mesh node for a given channel index and elevation index. 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 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 unsigned intgetNumOfAssemblies () const override
 Return the number of assemblies. 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 std::pair< unsigned int, unsigned int > & getGapChannels (unsigned int i_gap) const override
 Return a pair of inter-wrapper 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 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 const std::vector< double > & getGapMap () const override
 Return a map with gap sizes. More...
 
virtual const RealgetPitch () const override
 Return the pitch between 2 inter-wrappers. More...
 
virtual const RealgetCrossflowSign (unsigned int i_chan, unsigned int i_local) const override
 Return a signs for the cross flow given a inter-wrapper index and local neighbor index. More...
 
virtual const unsigned intgetNx () const
 number of inter-wrapper channels in the -x direction More...
 
virtual const unsigned intgetNy () const
 number of inter-wrapper channels in the -y direction More...
 
Real getGap () const
 
unsigned int getSubchannelIndexFromPoint (const Point &p) const override
 Return a inter-wrapper index for a given physical point p More...
 
virtual unsigned int channelIndex (const Point &point) const override
 
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
 
virtual EChannelType getSubchannelType (unsigned int index) const override
 Return the type of the inter-wrapper for given inter-wrapper index. More...
 
virtual Real getGapWidth (unsigned int gap_index) const override
 returns the size of the gap in the interface of between assemblies 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 RealgetKij () const
 Return lateral loss coefficient. More...
 
virtual const unsigned intgetNumOfAxialCells () const
 Return the number of axial cells. More...
 
virtual const RealgetSideX () const
 Return side lengths of the assembly. More...
 
virtual const RealgetSideY () const
 
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 generatePinCenters (unsigned int nx, unsigned int ny, Real pitch, Real elev, std::vector< Point > &pin_centers)
 Generate pin centers. 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 unheated 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

const ConsoleStream _console
 

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 _nx
 Number of assemblies in the -x direction. More...
 
unsigned int _ny
 Number of assemblies in the -y direction. More...
 
unsigned int _n_channels
 Number of subchannels. More...
 
unsigned int _n_gaps
 Number of gaps per layer. More...
 
unsigned int _n_assemblies
 Number of assemblies. More...
 
Real _side_bypass_length
 
std::vector< std::vector< Node * > > _nodes
 vector of subchannel nodes More...
 
std::vector< std::vector< Node * > > _pin_nodes
 vector of fuel assembly nodes More...
 
std::vector< std::vector< Node * > > _gapnodes
 vector of gap (interface between pairs of neighboring assemblies) nodes More...
 
std::vector< std::pair< unsigned int, unsigned int > > _gap_to_chan_map
 map relating gap index to subchannel index More...
 
std::vector< std::vector< unsigned int > > _chan_to_gap_map
 map relating subchannel index to gap index More...
 
std::vector< std::vector< unsigned int > > _chan_to_pin_map
 map relating subchannel index to assembly index More...
 
std::vector< std::vector< unsigned int > > _pin_to_chan_map
 map relating fuel assembly index to subchannel index More...
 
std::vector< std::vector< double > > _sign_id_crossflow_map
 Matrix used to give local sign to crossflow quantities. More...
 
std::vector< double > _gij_map
 Vector to store gap size. More...
 
std::vector< EChannelType_subch_type
 Subchannel type. More...
 
bool _pin_mesh_exist
 Flag that informs the solver whether there is a Pin 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...
 
Real _kij
 Lateral form loss coefficient. More...
 
Real _assembly_pitch
 Distance between neighboring assemblies. More...
 
Real _assembly_side_x
 Size of assembly sides. More...
 
Real _assembly_side_y
 
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 SCMQuadInterWrapperMeshGenerator
 
class SCMQuadPinMeshGenerator
 

Detailed Description

Creates the mesh of an inter-wrapper around square assemblies.

Definition at line 18 of file QuadInterWrapperMesh.h.

Constructor & Destructor Documentation

◆ QuadInterWrapperMesh() [1/2]

QuadInterWrapperMesh::QuadInterWrapperMesh ( const InputParameters parameters)

Definition at line 28 of file QuadInterWrapperMesh.C.

29  : InterWrapperMesh(params), _pin_mesh_exist(false)
30 {
31 }
InterWrapperMesh(const InputParameters &parameters)
bool _pin_mesh_exist
Flag that informs the solver whether there is a Pin Mesh or not.

◆ QuadInterWrapperMesh() [2/2]

QuadInterWrapperMesh::QuadInterWrapperMesh ( const QuadInterWrapperMesh other_mesh)

Definition at line 33 of file QuadInterWrapperMesh.C.

34  : InterWrapperMesh(other_mesh),
35  _nx(other_mesh._nx),
36  _ny(other_mesh._ny),
37  _n_channels(other_mesh._n_channels),
38  _n_gaps(other_mesh._n_gaps),
39  _n_assemblies(other_mesh._n_assemblies),
41  _nodes(other_mesh._nodes),
42  _gapnodes(other_mesh._gapnodes),
48  _gij_map(other_mesh._gij_map),
50 {
51  if (_nx < 2 && _ny < 2)
52  mooseError(name(), ": The number of assemblies cannot be less than 1 in both directions. ");
53 }
unsigned int _n_assemblies
Number of assemblies.
std::vector< std::vector< double > > _sign_id_crossflow_map
Matrix used to give local sign to crossflow quantities.
virtual const std::string & name() const
unsigned int _nx
Number of assemblies in the -x direction.
InterWrapperMesh(const InputParameters &parameters)
std::vector< std::vector< Node * > > _gapnodes
vector of gap (interface between pairs of neighboring assemblies) nodes
std::vector< std::vector< unsigned int > > _chan_to_pin_map
map relating subchannel index to assembly index
std::vector< double > _gij_map
Vector to store gap size.
std::vector< std::vector< unsigned int > > _chan_to_gap_map
map relating subchannel index to gap index
unsigned int _n_gaps
Number of gaps per layer.
bool _pin_mesh_exist
Flag that informs the solver whether there is a Pin Mesh or not.
std::vector< std::vector< Node * > > _nodes
vector of subchannel nodes
unsigned int _n_channels
Number of subchannels.
unsigned int _ny
Number of assemblies in the -y direction.
void mooseError(Args &&... args) const
std::vector< std::vector< unsigned int > > _pin_to_chan_map
map relating fuel assembly index to subchannel index
std::vector< std::pair< unsigned int, unsigned int > > _gap_to_chan_map
map relating gap index to subchannel index

Member Function Documentation

◆ buildMesh()

void QuadInterWrapperMesh::buildMesh ( )
overridevirtual

Implements MooseMesh.

Definition at line 62 of file QuadInterWrapperMesh.C.

63 {
64 }

◆ channelIndex()

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

Implements InterWrapperMesh.

Definition at line 77 of file QuadInterWrapperMesh.C.

78 {
79  // this is identical to getSubchannelIndexFromPoint, but when it is given a point "outside" the
80  // normal subchannel geometry (i.e. a point that lies in a gap around the lattice) we still report
81  // a valid subchannel index this is needed for transferring the solution onto a visualization mesh
82 
83  Real offset_x = (_nx - 1) * _assembly_pitch / 2.0;
84  Real offset_y = (_ny - 1) * _assembly_pitch / 2.0;
85  int i = (pt(0) + offset_x + 0.5 * _assembly_pitch) / _assembly_pitch;
86  int j = (pt(1) + offset_y + 0.5 * _assembly_pitch) / _assembly_pitch;
87 
88  i = std::max(0, i);
89  i = std::min(i, (int)(_nx - 1));
90 
91  j = std::max(0, j);
92  j = std::min(j, (int)(_ny - 1));
93 
94  return j * _nx + i;
95 }
unsigned int _nx
Number of assemblies in the -x direction.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
unsigned int _ny
Number of assemblies in the -y direction.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
Real _assembly_pitch
Distance between neighboring assemblies.

◆ ductMeshExist()

virtual bool QuadInterWrapperMesh::ductMeshExist ( ) const
inlineoverridevirtual

Return if duct Mesh exists or not.

Implements InterWrapperMesh.

Definition at line 40 of file QuadInterWrapperMesh.h.

40 { return false; }

◆ generatePinCenters()

void QuadInterWrapperMesh::generatePinCenters ( unsigned int  nx,
unsigned int  ny,
Real  pitch,
Real  elev,
std::vector< Point > &  pin_centers 
)
static

Generate pin centers.

Parameters
nxnumber of channels in x-direction (must be more than 1)
nynumber of channels in y-direction (must be more than 1)
elevelevation in z-direction
pin_centersPositions in 3D space of pin centers

Definition at line 125 of file QuadInterWrapperMesh.C.

127 {
128  mooseAssert(nx >= 2, "Number of channels in x-direction must be 2 or more.");
129  mooseAssert(ny >= 2, "Number of channels in y-direction must be 2 or more.");
130 
131  Real offset_x = (nx - 2) * pitch / 2.0;
132  Real offset_y = (ny - 2) * pitch / 2.0;
133  for (unsigned int iy = 0; iy < ny - 1; iy++)
134  for (unsigned int ix = 0; ix < nx - 1; ix++)
135  pin_centers.push_back(Point(pitch * ix - offset_x, pitch * iy - offset_y, elev));
136 }
static const std::string pitch
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ generateZGrid()

void InterWrapperMesh::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 unheated lengths.

Definition at line 38 of file InterWrapperMesh.C.

Referenced by SCMTriInterWrapperMeshGenerator::SCMTriInterWrapperMeshGenerator().

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

◆ getChannelGaps()

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

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

Implements InterWrapperMesh.

Definition at line 46 of file QuadInterWrapperMesh.h.

47  {
48  return _chan_to_gap_map[i_chan];
49  }
std::vector< std::vector< unsigned int > > _chan_to_gap_map
map relating subchannel index to gap index

◆ getChannelNode()

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

Get the inter-wrapper mesh node for a given channel index and elevation index.

Implements InterWrapperMesh.

Definition at line 26 of file QuadInterWrapperMesh.h.

27  {
28  return _nodes[i_chan][iz];
29  }
std::vector< std::vector< Node * > > _nodes
vector of subchannel nodes

◆ getChannelPins()

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

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

Implements InterWrapperMesh.

Definition at line 54 of file QuadInterWrapperMesh.h.

Referenced by QuadInterWrapperPowerIC::value().

55  {
56  return _chan_to_pin_map[i_chan];
57  }
std::vector< std::vector< unsigned int > > _chan_to_pin_map
map relating subchannel index to assembly index

◆ getCrossflowSign()

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

Return a signs for the cross flow given a inter-wrapper index and local neighbor index.

Implements InterWrapperMesh.

Definition at line 60 of file QuadInterWrapperMesh.h.

61  {
62  return _sign_id_crossflow_map[i_chan][i_local];
63  }
std::vector< std::vector< double > > _sign_id_crossflow_map
Matrix used to give local sign to crossflow quantities.

◆ getGap()

Real QuadInterWrapperMesh::getGap ( ) const
inline

Definition at line 69 of file QuadInterWrapperMesh.h.

Referenced by QuadInterWrapperFlowAreaIC::value().

◆ getGapChannels()

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

Return a pair of inter-wrapper indices for a given gap index.

Implements InterWrapperMesh.

Definition at line 42 of file QuadInterWrapperMesh.h.

43  {
44  return _gap_to_chan_map[i_gap];
45  }
std::vector< std::pair< unsigned int, unsigned int > > _gap_to_chan_map
map relating gap index to subchannel index

◆ getGapMap()

virtual const std::vector<double>& QuadInterWrapperMesh::getGapMap ( ) const
inlineoverridevirtual

Return a map with gap sizes.

Implements InterWrapperMesh.

Definition at line 58 of file QuadInterWrapperMesh.h.

58 { return _gij_map; }
std::vector< double > _gij_map
Vector to store gap size.

◆ getGapWidth()

virtual Real QuadInterWrapperMesh::getGapWidth ( unsigned int  gap_index) const
inlineoverridevirtual

returns the size of the gap in the interface of between assemblies

Implements InterWrapperMesh.

Definition at line 83 of file QuadInterWrapperMesh.h.

83 { return _gij_map[gap_index]; }
std::vector< double > _gij_map
Vector to store gap size.

◆ getHeatedLength()

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

◆ getHeatedLengthEntry()

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

◆ getHeatedLengthExit()

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

Return unheated length at exit.

Definition at line 140 of file InterWrapperMesh.h.

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

◆ getKGrid()

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

Get axial cell location and value of loss coefficient.

Definition at line 38 of file InterWrapperMesh.h.

Referenced by TriInterWrapper1PhaseProblem::computeDP(), and InterWrapper1PhaseProblem::computeDP().

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

◆ getKij()

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

Return lateral loss coefficient.

Definition at line 43 of file InterWrapperMesh.h.

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

◆ getNumOfAssemblies()

virtual const unsigned int& QuadInterWrapperMesh::getNumOfAssemblies ( ) const
inlineoverridevirtual

Return the number of assemblies.

Implements InterWrapperMesh.

Definition at line 38 of file QuadInterWrapperMesh.h.

38 { return _n_assemblies; }
unsigned int _n_assemblies
Number of assemblies.

◆ getNumOfAxialCells()

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

Return the number of axial cells.

Definition at line 48 of file InterWrapperMesh.h.

Referenced by TriInterWrapper1PhaseProblem::computeh(), QuadInterWrapperPowerIC::initialSetup(), and TriInterWrapperPowerIC::initialSetup().

48 { return _n_cells; }
unsigned int _n_cells
number of axial cells

◆ getNumOfChannels()

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

Return the number of channels per layer.

Implements InterWrapperMesh.

Definition at line 36 of file QuadInterWrapperMesh.h.

36 { return _n_channels; }
unsigned int _n_channels
Number of subchannels.

◆ getNumOfGapsPerLayer()

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

Return the number of gaps per layer.

Implements InterWrapperMesh.

Definition at line 37 of file QuadInterWrapperMesh.h.

37 { return _n_gaps; }
unsigned int _n_gaps
Number of gaps per layer.

◆ getNx()

virtual const unsigned int& QuadInterWrapperMesh::getNx ( ) const
inlinevirtual

number of inter-wrapper channels in the -x direction

Definition at line 66 of file QuadInterWrapperMesh.h.

Referenced by QuadInterWrapperPowerIC::initialSetup(), and QuadInterWrapperPowerIC::QuadInterWrapperPowerIC().

66 { return _nx; }
unsigned int _nx
Number of assemblies in the -x direction.

◆ getNy()

virtual const unsigned int& QuadInterWrapperMesh::getNy ( ) const
inlinevirtual

number of inter-wrapper channels in the -y direction

Definition at line 68 of file QuadInterWrapperMesh.h.

Referenced by QuadInterWrapperPowerIC::initialSetup(), and QuadInterWrapperPowerIC::QuadInterWrapperPowerIC().

68 { return _ny; }
unsigned int _ny
Number of assemblies in the -y direction.

◆ getPinChannels()

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

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

Implements InterWrapperMesh.

Definition at line 50 of file QuadInterWrapperMesh.h.

51  {
52  return _pin_to_chan_map[i_pin];
53  }
std::vector< std::vector< unsigned int > > _pin_to_chan_map
map relating fuel assembly index to subchannel index

◆ getPinIndexFromPoint()

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

Return a pin index for a given physical point p

Implements InterWrapperMesh.

Definition at line 98 of file QuadInterWrapperMesh.C.

Referenced by QuadInterWrapperPowerIC::value().

99 {
100  Real offset_x = (_nx - 2) * _assembly_pitch / 2.0;
101  Real offset_y = (_ny - 2) * _assembly_pitch / 2.0;
102  unsigned int i = (p(0) + offset_x + 0.5 * _assembly_pitch) / _assembly_pitch;
103  unsigned int j = (p(1) + offset_y + 0.5 * _assembly_pitch) / _assembly_pitch;
104  return j * (_nx - 1) + i;
105 }
unsigned int _nx
Number of assemblies in the -x direction.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
unsigned int _ny
Number of assemblies in the -y direction.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
Real _assembly_pitch
Distance between neighboring assemblies.

◆ getPinNode()

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

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

Implements InterWrapperMesh.

Definition at line 31 of file QuadInterWrapperMesh.h.

32  {
33  return _pin_nodes[i_pin][iz];
34  }
std::vector< std::vector< Node * > > _pin_nodes
vector of fuel assembly nodes

◆ getPitch()

virtual const Real& QuadInterWrapperMesh::getPitch ( ) const
inlineoverridevirtual

Return the pitch between 2 inter-wrappers.

Reimplemented from InterWrapperMesh.

Definition at line 59 of file QuadInterWrapperMesh.h.

Referenced by QuadInterWrapperFlowAreaIC::value().

59 { return _assembly_pitch; }
Real _assembly_pitch
Distance between neighboring assemblies.

◆ getSideX()

virtual const Real& InterWrapperMesh::getSideX ( ) const
inlinevirtualinherited

◆ getSideY()

virtual const Real& InterWrapperMesh::getSideY ( ) const
inlinevirtualinherited

◆ getSubchannelIndexFromPoint()

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

Return a inter-wrapper index for a given physical point p

Implements InterWrapperMesh.

Definition at line 67 of file QuadInterWrapperMesh.C.

Referenced by QuadInterWrapperWettedPerimIC::value(), QuadInterWrapperFlowAreaIC::value(), and QuadInterWrapperPowerIC::value().

68 {
69  Real offset_x = (_nx - 1) * _assembly_pitch / 2.0;
70  Real offset_y = (_ny - 1) * _assembly_pitch / 2.0;
71  unsigned int i = (p(0) + offset_x + 0.5 * _assembly_pitch) / _assembly_pitch;
72  unsigned int j = (p(1) + offset_y + 0.5 * _assembly_pitch) / _assembly_pitch;
73  return j * _nx + i;
74 }
unsigned int _nx
Number of assemblies in the -x direction.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
unsigned int _ny
Number of assemblies in the -y direction.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
Real _assembly_pitch
Distance between neighboring assemblies.

◆ getSubchannelType()

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

Return the type of the inter-wrapper for given inter-wrapper index.

Implements InterWrapperMesh.

Definition at line 77 of file QuadInterWrapperMesh.h.

Referenced by QuadInterWrapperWettedPerimIC::value(), and QuadInterWrapperFlowAreaIC::value().

78  {
79  return _subch_type[index];
80  }
std::vector< EChannelType > _subch_type
Subchannel type.

◆ getZGrid()

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

Get axial location of layers.

Definition at line 28 of file InterWrapperMesh.h.

Referenced by TriInterWrapper1PhaseProblem::computeDP(), TriInterWrapper1PhaseProblem::computeh(), QuadInterWrapperPowerIC::initialSetup(), and TriInterWrapperPowerIC::initialSetup().

28 { return _z_grid; }
std::vector< Real > _z_grid
axial location of nodes

◆ getZIndex()

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

Get axial index of point.

Definition at line 51 of file InterWrapperMesh.C.

Referenced by InterWrapperSolutionTransfer::getFromNode().

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

◆ pinIndex()

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

Implements InterWrapperMesh.

Definition at line 108 of file QuadInterWrapperMesh.C.

109 {
110  Real offset_x = (_nx - 2) * _assembly_pitch / 2.0;
111  Real offset_y = (_ny - 2) * _assembly_pitch / 2.0;
112  int i = (p(0) + offset_x + 0.5 * _assembly_pitch) / _assembly_pitch;
113  int j = (p(1) + offset_y + 0.5 * _assembly_pitch) / _assembly_pitch;
114 
115  i = std::max(0, i);
116  i = std::min(i, (int)(_nx - 2));
117 
118  j = std::max(0, j);
119  j = std::min(j, (int)(_ny - 2));
120 
121  return j * (_nx - 1) + i;
122 }
unsigned int _nx
Number of assemblies in the -x direction.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
unsigned int _ny
Number of assemblies in the -y direction.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
Real _assembly_pitch
Distance between neighboring assemblies.

◆ pinMeshExist()

virtual bool QuadInterWrapperMesh::pinMeshExist ( ) const
inlineoverridevirtual

Return if Pin Mesh exists or not.

Implements InterWrapperMesh.

Definition at line 39 of file QuadInterWrapperMesh.h.

Referenced by QuadInterWrapperPowerIC::value().

39 { return false; }

◆ safeClone()

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

Implements MooseMesh.

Definition at line 56 of file QuadInterWrapperMesh.C.

57 {
58  return _app.getFactory().copyConstruct(*this);
59 }
std::unique_ptr< T > copyConstruct(const T &object)
Factory & getFactory()
MooseApp & _app

◆ validParams()

InputParameters QuadInterWrapperMesh::validParams ( )
static

Definition at line 20 of file QuadInterWrapperMesh.C.

21 {
23  params.addClassDescription("Creates an inter-wrappper mesh container for a square "
24  "lattice subchannel arrangement");
25  return params;
26 }
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)

Friends And Related Function Documentation

◆ SCMQuadInterWrapperMeshGenerator

friend class SCMQuadInterWrapperMeshGenerator
friend

Definition at line 134 of file QuadInterWrapperMesh.h.

◆ SCMQuadPinMeshGenerator

friend class SCMQuadPinMeshGenerator
friend

Definition at line 135 of file QuadInterWrapperMesh.h.

Member Data Documentation

◆ _assembly_pitch

Real InterWrapperMesh::_assembly_pitch
protectedinherited

Distance between neighboring assemblies.

Definition at line 180 of file InterWrapperMesh.h.

Referenced by channelIndex(), getPinIndexFromPoint(), getPitch(), InterWrapperMesh::getPitch(), getSubchannelIndexFromPoint(), and pinIndex().

◆ _assembly_side_x

Real InterWrapperMesh::_assembly_side_x
protectedinherited

Size of assembly sides.

Definition at line 182 of file InterWrapperMesh.h.

Referenced by InterWrapperMesh::getSideX().

◆ _assembly_side_y

Real InterWrapperMesh::_assembly_side_y
protectedinherited

Definition at line 183 of file InterWrapperMesh.h.

Referenced by InterWrapperMesh::getSideY().

◆ _chan_to_gap_map

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

map relating subchannel index to gap index

Definition at line 106 of file QuadInterWrapperMesh.h.

Referenced by getChannelGaps().

◆ _chan_to_pin_map

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

map relating subchannel index to assembly index

Definition at line 108 of file QuadInterWrapperMesh.h.

Referenced by getChannelPins().

◆ _gap_to_chan_map

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

map relating gap index to subchannel index

Definition at line 104 of file QuadInterWrapperMesh.h.

Referenced by getGapChannels().

◆ _gapnodes

std::vector<std::vector<Node *> > QuadInterWrapperMesh::_gapnodes
protected

vector of gap (interface between pairs of neighboring assemblies) nodes

Definition at line 102 of file QuadInterWrapperMesh.h.

◆ _gij_map

std::vector<double> QuadInterWrapperMesh::_gij_map
protected

Vector to store gap size.

Definition at line 114 of file QuadInterWrapperMesh.h.

Referenced by getGapMap(), and getGapWidth().

◆ _heated_length

Real InterWrapperMesh::_heated_length
protectedinherited

heated length of the fuel Pin

Definition at line 170 of file InterWrapperMesh.h.

Referenced by InterWrapperMesh::getHeatedLength().

◆ _k_grid

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

axial form loss coefficient per computational cell

Definition at line 176 of file InterWrapperMesh.h.

Referenced by InterWrapperMesh::getKGrid().

◆ _kij

Real InterWrapperMesh::_kij
protectedinherited

Lateral form loss coefficient.

Definition at line 178 of file InterWrapperMesh.h.

Referenced by InterWrapperMesh::getKij().

◆ _n_assemblies

unsigned int QuadInterWrapperMesh::_n_assemblies
protected

Number of assemblies.

Definition at line 95 of file QuadInterWrapperMesh.h.

Referenced by getNumOfAssemblies().

◆ _n_cells

unsigned int InterWrapperMesh::_n_cells
protectedinherited

number of axial cells

Definition at line 185 of file InterWrapperMesh.h.

Referenced by InterWrapperMesh::getNumOfAxialCells().

◆ _n_channels

unsigned int QuadInterWrapperMesh::_n_channels
protected

Number of subchannels.

Definition at line 91 of file QuadInterWrapperMesh.h.

Referenced by getNumOfChannels().

◆ _n_gaps

unsigned int QuadInterWrapperMesh::_n_gaps
protected

Number of gaps per layer.

Definition at line 93 of file QuadInterWrapperMesh.h.

Referenced by getNumOfGapsPerLayer().

◆ _nodes

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

vector of subchannel nodes

Definition at line 98 of file QuadInterWrapperMesh.h.

Referenced by getChannelNode().

◆ _nx

unsigned int QuadInterWrapperMesh::_nx
protected

Number of assemblies in the -x direction.

Definition at line 87 of file QuadInterWrapperMesh.h.

Referenced by channelIndex(), getNx(), getPinIndexFromPoint(), getSubchannelIndexFromPoint(), pinIndex(), and QuadInterWrapperMesh().

◆ _ny

unsigned int QuadInterWrapperMesh::_ny
protected

Number of assemblies in the -y direction.

Definition at line 89 of file QuadInterWrapperMesh.h.

Referenced by channelIndex(), getNy(), getPinIndexFromPoint(), getSubchannelIndexFromPoint(), pinIndex(), and QuadInterWrapperMesh().

◆ _pin_mesh_exist

bool QuadInterWrapperMesh::_pin_mesh_exist
protected

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

Definition at line 118 of file QuadInterWrapperMesh.h.

◆ _pin_nodes

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

vector of fuel assembly nodes

Definition at line 100 of file QuadInterWrapperMesh.h.

Referenced by getPinNode().

◆ _pin_to_chan_map

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

map relating fuel assembly index to subchannel index

Definition at line 110 of file QuadInterWrapperMesh.h.

Referenced by getPinChannels().

◆ _side_bypass_length

Real QuadInterWrapperMesh::_side_bypass_length
protected

Definition at line 96 of file QuadInterWrapperMesh.h.

Referenced by getGap().

◆ _sign_id_crossflow_map

std::vector<std::vector<double> > QuadInterWrapperMesh::_sign_id_crossflow_map
protected

Matrix used to give local sign to crossflow quantities.

Definition at line 112 of file QuadInterWrapperMesh.h.

Referenced by getCrossflowSign().

◆ _subch_type

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

Subchannel type.

Definition at line 116 of file QuadInterWrapperMesh.h.

Referenced by getSubchannelType().

◆ _unheated_length_entry

Real InterWrapperMesh::_unheated_length_entry
protectedinherited

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

Definition at line 168 of file InterWrapperMesh.h.

Referenced by SCMQuadInterWrapperMeshGenerator::generate(), SCMTriInterWrapperMeshGenerator::generate(), and InterWrapperMesh::getHeatedLengthEntry().

◆ _unheated_length_exit

Real InterWrapperMesh::_unheated_length_exit
protectedinherited

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

Definition at line 172 of file InterWrapperMesh.h.

Referenced by InterWrapperMesh::getHeatedLengthExit().

◆ _z_grid

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

axial location of nodes

Definition at line 174 of file InterWrapperMesh.h.

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


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