28 std::unique_ptr<MooseMesh>
safeClone()
const override;
41 Node *
getPinNode(
unsigned int i_pin,
unsigned int iz)
const override
59 const unsigned int &
getPinIndex(
const unsigned int channel_idx,
const unsigned int neighbor_idx)
88 const std::pair<unsigned int, unsigned int> &
getGapChannels(
unsigned int i_gap)
const override
93 const std::pair<unsigned int, unsigned int> &
getGapPins(
unsigned int i_gap)
const override
98 const std::vector<unsigned int> &
getChannelGaps(
unsigned int i_chan)
const override
109 unsigned int channelIndex(
const Point & point)
const override;
113 Real
getGapWidth(
unsigned int axial_index,
unsigned int gap_index)
const override
115 return _gij_map[axial_index][gap_index];
121 void setGapWidth(
unsigned int axial_index,
unsigned int gap_index, Real gap_width)
123 _gij_map[axial_index][gap_index] = gap_width;
136 const std::vector<unsigned int> &
getPinChannels(
unsigned int i_pin)
const override
141 const std::vector<unsigned int> &
getChannelPins(
unsigned int i_chan)
const override
147 unsigned int pinIndex(
const Point &
p)
const override;
221 pinPositions(std::vector<Point> & positions,
unsigned int nrings, Real pitch, Point center);
EChannelType
Enum for describing the center, edge and corner subchannels or gap types.
const InputParameters & parameters() const
Mesh generator that builds a 3D mesh representing triangular subchannels and pins.
Mesh generator that builds a mesh of 1D lines representing subchannels and pins in a triangular assem...
Mesh generator for hexagonal duct.
Base class for subchannel meshes.
Mesh class for triangular, edge and corner subchannels for hexagonal lattice fuel assemblies.
std::vector< std::pair< unsigned int, unsigned int > > _gap_pairs_sf
sweeping flow model gap pairs per channel to specify directional edge flow
unsigned int getNumOfPins() const override
Return the number of pins.
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
std::vector< std::vector< Node * > > _pin_nodes
pin nodes
std::vector< std::vector< unsigned int > > _chan_to_gap_map
stores the gaps that forms each subchannel
const Real & getFlatToFlat() const
Return flat to flat [m].
unsigned int getNumOfGapsPerLayer() const override
Return the number of gaps per layer.
const Real & getWireDiameter() const
Return wire diameter.
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.
void setGapWidth(unsigned int axial_index, unsigned int gap_index, Real gap_width)
Set the gap width for a given axial cell and gap index.
std::vector< std::pair< unsigned int, unsigned int > > _gap_to_pin_map
stores the fuel pins belonging to each gap
std::vector< std::vector< Node * > > _nodes
nodes
const std::vector< unsigned int > & getChannelGaps(unsigned int i_chan) const override
Return a vector of gap indices for a given channel index.
unsigned int _npins
number of fuel pins
std::vector< Point > _pin_position
x,y coordinates of the fuel pins
std::vector< EChannelType > _gap_type
gap type
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.
unsigned int getPinIndexFromPoint(const Point &p) const override
Return a pin index for a given physical point p
const unsigned int & getPinIndex(const unsigned int channel_idx, const unsigned int neighbor_idx)
Return Pin index given subchannel index and local neighbor index.
std::vector< std::vector< unsigned int > > _pin_to_chan_map
channel indices corresponding to a given pin index
Node * getPinNode(unsigned int i_pin, unsigned int iz) const override
Get the pin mesh node for a given pin index and elevation index.
Real _duct_to_pin_gap
the gap thickness between the duct and peripheral fuel pins
static const unsigned int N_CORNERS
number of corners in the duct x-sec
Real _flat_to_flat
the distance between flat surfaces of the duct facing each other
void buildMesh() override
Real getGapWidth(unsigned int axial_index, unsigned int gap_index) const override
Return gap width for a given gap index.
void computeAssemblyHydraulicParameters()
Compute undeformed bundle-average inlet hydraulic quantities from generated mesh geometry.
const Real & getDuctToPinGap() const
Return the the gap thickness between the duct and peripheral fuel pins.
std::vector< std::vector< Real > > _pins_in_rings
fuel pins that are belonging to each ring
const std::pair< unsigned int, unsigned int > & getSweepFlowGaps(unsigned int i_chan) const
unsigned int getSubchannelIndexFromPoint(const Point &p) const override
Return a subchannel index for a given physical point p
unsigned int pinIndex(const Point &p) const override
const std::vector< unsigned int > & getChannelPins(unsigned int i_chan) const override
Return a vector of pin indices for a given channel index.
unsigned int channelIndex(const Point &point) const override
Real _hwire
wire lead length
std::vector< std::vector< Real > > _gij_map
gap size
const Real & getWireLeadLength() const
Return the wire lead length.
std::unique_ptr< MooseMesh > safeClone() const override
const Real & getCrossflowSign(unsigned int i_chan, unsigned int i_local) const override
Return a sign for the crossflow given a subchannel index and local neighbor index.
Real getSubchannelWettedPerimeter(unsigned int i_chan) const override
Return undeformed wetted perimeter for a subchannel.
const std::pair< unsigned int, unsigned int > & getSweepFlowChans(unsigned int i_chan) const
static InputParameters validParams()
std::vector< EChannelType > _subch_type
subchannel type
EChannelType getSubchannelType(unsigned int index) const override
Return the type of the subchannel for given subchannel 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
static void pinPositions(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 ...
unsigned int _n_channels
number of subchannels
const std::vector< unsigned int > & getPinChannels(unsigned int i_pin) const override
Return a vector of channel indices for a given Pin index.
unsigned int _n_rings
number of fuel-pin rings, counting the center pin as the first ring
const unsigned int & getNumOfRings() const
Return the number of fuel-pin rings, counting the center pin as the first ring.
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...
unsigned int getNumOfChannels() const override
Return the number of channels per layer.
Real getSubchannelFlowArea(unsigned int i_chan, Real z) const override
Return undeformed flow area for a subchannel at an axial location, including any blockage reduction.
Node * getChannelNode(unsigned int i_chan, unsigned int iz) const override
Get the subchannel mesh node for a given channel index and elevation index.
processor_id_type processor_id() const