22 virtual std::unique_ptr<MeshBase>
generate()
override;
static InputParameters validParams()
const unsigned int _n_rings
Number of rings in the geometry.
const unsigned int & _block_id
Subdomain ID used for the mesh block.
std::vector< std::vector< Real > > _subchannel_position
x,y coordinates of the subchannels
const Real _pitch
Distance between the neighbor fuel pins, pitch.
virtual std::unique_ptr< MeshBase > generate() override
Point getPinPosition(unsigned int i)
returns the position of pin given pin index
Mesh generator that builds a 3D mesh representing triangular subchannels.
EChannelType getSubchannelType(unsigned int index) const
returns the type of the subchannel given the index
std::vector< Real > _z_grid
axial location of nodes
SCMDetailedTriSubChannelMeshGenerator(const InputParameters ¶meters)
unsigned int _nrods
Number of pins.
std::vector< unsigned int > getSubChannelPins(unsigned int i)
returns the index of neighboring pins given subchannel index
Point translatePoint(Point &b, Point &translation_vector)
EChannelType
Enum for describing the center, edge and corner subchannels or gap types.
const Real _unheated_length_exit
unheated length of the fuel Pin at the exit of the assembly
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _flat_to_flat
Half of gap between adjacent assemblies.
std::vector< Point > _pin_position
x,y coordinates of the fuel pins
Point rotatePoint(Point b, Real theta)
std::vector< EChannelType > _subch_type
Subchannel type.
const InputParameters & parameters() const
std::vector< std::vector< unsigned int > > _pins_in_rings
fuel pins that are belonging to each ring
std::vector< Real > getSubchannelPosition(unsigned int i)
returns the position of subchannel given pin index
const Real _unheated_length_entry
unheated length of the fuel Pin at the entry of the assembly
const unsigned int _n_cells
Number of cells in the axial direction.
unsigned int _n_channels
number of subchannels
std::vector< std::vector< unsigned int > > _chan_to_pin_map
stores the fuel pins belonging to each subchannel
const bool _verbose
Flag to print out the detailed mesh assembly and coordinates.
const Real _heated_length
heated length of the fuel Pin
const Real _pin_diameter
fuel Pin diameter
std::map< unsigned int, Real > _orientation_map
map inner and outer rings