23 virtual std::unique_ptr<MooseMesh>
safeClone()
const override;
26 virtual Node *
getChannelNode(
unsigned int i_chan,
unsigned iz)
const override 31 virtual Node *
getPinNode(
unsigned int i_pin,
unsigned iz)
const override 41 virtual const std::pair<unsigned int, unsigned int> &
46 virtual const std::vector<unsigned int> &
getChannelGaps(
unsigned int i_chan)
const override 50 virtual const std::vector<unsigned int> &
getPinChannels(
unsigned int i_pin)
const override 54 virtual const std::vector<unsigned int> &
getChannelPins(
unsigned int i_chan)
const override 66 virtual const unsigned int &
getNx()
const {
return _nx; }
68 virtual const unsigned int &
getNy()
const {
return _ny; }
72 virtual unsigned int channelIndex(
const Point & point)
const override;
75 virtual unsigned int pinIndex(
const Point & p)
const override;
98 std::vector<std::vector<Node *>>
_nodes;
132 unsigned int nx,
unsigned int ny, Real
pitch, Real elev, std::vector<Point> & pin_centers);
virtual Real getGapWidth(unsigned int gap_index) const override
returns the size of the gap in the interface of between assemblies
std::vector< std::vector< Node * > > _pin_nodes
vector of fuel assembly nodes
Base class for inter-wrapper meshes.
static InputParameters validParams()
std::vector< EChannelType > _subch_type
Subchannel type.
unsigned int getPinIndexFromPoint(const Point &p) const override
Return a pin index for a given physical point p
virtual const unsigned int & getNumOfGapsPerLayer() const override
Return the number of gaps per layer.
virtual unsigned int channelIndex(const Point &point) const override
unsigned int _n_assemblies
Number of assemblies.
virtual EChannelType getSubchannelType(unsigned int index) const override
Return the type of the inter-wrapper for given inter-wrapper index.
virtual bool pinMeshExist() const override
Return if Pin Mesh exists or not.
virtual std::unique_ptr< MooseMesh > safeClone() const override
std::vector< std::vector< double > > _sign_id_crossflow_map
Matrix used to give local sign to crossflow quantities.
virtual const unsigned int & getNumOfChannels() const override
Return the number of channels per layer.
virtual const Real & getPitch() const override
Return the pitch between 2 inter-wrappers.
unsigned int _nx
Number of assemblies in the -x direction.
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.
std::vector< std::vector< Node * > > _gapnodes
vector of gap (interface between pairs of neighboring assemblies) nodes
virtual const std::vector< unsigned int > & getPinChannels(unsigned int i_pin) const override
Return a vector of channel indices for a given Pin index.
virtual void buildMesh() override
virtual const std::vector< double > & getGapMap() const override
Return a map with gap sizes.
virtual bool ductMeshExist() const override
Return if duct Mesh exists or not.
std::vector< std::vector< unsigned int > > _chan_to_pin_map
map relating subchannel index to assembly index
virtual unsigned int pinIndex(const Point &p) const override
unsigned int getSubchannelIndexFromPoint(const Point &p) const override
Return a inter-wrapper index for a given physical point p
std::vector< double > _gij_map
Vector to store gap size.
static const std::string pitch
virtual const std::vector< unsigned int > & getChannelPins(unsigned int i_chan) const override
Return a vector of pin indices for a given channel index.
std::vector< std::vector< unsigned int > > _chan_to_gap_map
map relating subchannel index to gap index
virtual Node * getPinNode(unsigned int i_pin, unsigned iz) const override
Get the pin mesh node for a given pin index and elevation index.
unsigned int _n_gaps
Number of gaps per layer.
EChannelType
Enum for describing the center, edge and corner subchannels or gap types.
QuadInterWrapperMesh(const InputParameters ¶meters)
virtual const std::vector< unsigned int > & getChannelGaps(unsigned int i_chan) const override
Return a vector of gap indices for a given channel index.
Creates the mesh of an inter-wrapper around square assemblies.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual const Real & getCrossflowSign(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.
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
virtual const unsigned int & getNx() const
number of inter-wrapper channels in the -x direction
unsigned int _n_channels
Number of subchannels.
unsigned int _ny
Number of assemblies in the -y direction.
const InputParameters & parameters() const
std::vector< std::vector< unsigned int > > _pin_to_chan_map
map relating fuel assembly index to subchannel index
virtual const unsigned int & getNumOfAssemblies() const override
Return the number of assemblies.
Real _assembly_pitch
Distance between neighboring assemblies.
static void generatePinCenters(unsigned int nx, unsigned int ny, Real pitch, Real elev, std::vector< Point > &pin_centers)
Generate pin centers.
virtual const unsigned int & getNy() const
number of inter-wrapper channels in the -y direction
std::vector< std::pair< unsigned int, unsigned int > > _gap_to_chan_map
map relating gap index to subchannel index
Class to create Pin mesh in the square lattice geometry.
Class for Subchannel mesh generation in the square lattice geometry.
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.