26 virtual std::unique_ptr<MeshBase>
generate()
override;
95 std::vector<std::vector<Node *>>
_nodes;
Creates the mesh of subchannels in a quadrilateral lattice.
Mesh generator that builds a mesh of 1D lines representing subchannels and pins in a quadrilateral as...
std::vector< std::vector< Node * > > _gapnodes
gap nodes
void buildSubchannelMesh(MeshBase &mesh_base, BoundaryInfo &boundary_info)
Build the 1D subchannel elements and inlet/outlet boundaries.
std::vector< std::vector< Real > > _gij_map
gap size
std::vector< std::vector< Real > > _sign_id_crossflow_map
matrix used to give local sign to crossflow quantities
std::vector< unsigned int > _index_blockage
index of subchannels affected by blockage
unsigned int _nx
number of subchannels in the x direction
std::vector< std::vector< unsigned int > > _pin_to_chan_map
stores the map from pins to channels
Real _unheated_length_exit
unheated length of the fuel Pin at the exit of the assembly
std::vector< Real > _z_blockage
axial location of blockage (inlet, outlet) [m]
unsigned int _n_cells
number of axial cells
std::vector< Real > _spacer_z
axial location of the spacers
void buildPinMesh(MeshBase &mesh_base)
Build the 1D pin elements for assemblies with pins.
std::vector< Real > _z_grid
axial location of nodes
void initializeChannelData()
Build subchannel, gap, pin, and cross-flow maps used by QuadSubChannelMesh.
std::vector< EChannelType > _subch_type
subchannel type
std::vector< std::vector< Real > > _subchannel_position
x,y coordinates of the subchannel centroids
std::vector< Real > _spacer_k
form loss coefficient of the spacers
Real _pitch
distance between neighbor fuel pins, pitch
std::vector< Real > _reduction_blockage
area reduction of subchannels affected by blockage
std::vector< Real > _k_blockage
form loss coefficient of subchannels affected by blockage
std::vector< std::pair< unsigned int, unsigned int > > _gap_to_pin_map
stores the fuel pin pairs for each gap
Real _pin_diameter
fuel Pin diameter
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
void transferMetadata(QuadSubChannelMesh &sch_mesh)
Move generated mesh metadata into the concrete QuadSubChannelMesh object.
unsigned int _n_channels
total number of subchannels
virtual std::unique_ptr< MeshBase > generate() override
std::vector< std::vector< Node * > > _pin_nodes
pin nodes
Real _heated_length
heated length of the fuel Pin
unsigned int _pin_block_id
pin block index
unsigned int _n_gaps
number of gaps per layer
unsigned int _ny
number of subchannels in the y direction
Real _kij
lateral form loss coefficient
Real _side_gap
The side gap, not to be confused with the gap between pins, this refers to the gap next to the duct o...
std::vector< std::vector< Node * > > _nodes
channel nodes
unsigned int _n_pins
number of pins
std::vector< std::vector< Real > > _k_grid
axial form loss coefficient per computational cell
std::vector< std::vector< unsigned int > > _chan_to_gap_map
stores the gaps that form each subchannel
unsigned int _subchannel_block_id
subchannel block index
static InputParameters validParams()
Real _unheated_length_entry
unheated length of the fuel Pin at the entry of the assembly