22 std::unique_ptr<MeshBase>
generate()
override;
31 ductPointIndex(
unsigned int points_per_layer,
unsigned int layer,
unsigned int point)
const;
45 const std::vector<Point> & corners,
54 const std::vector<Point> & cross_sec,
55 const std::vector<Real> & z_layers)
const;
61 void ductElems(std::vector<std::vector<size_t>> & elem_point_indices,
62 unsigned int n_layers,
63 unsigned int points_per_layer)
const;
72 std::vector<Node *> & duct_nodes,
73 const std::vector<Point> & points,
74 const std::vector<std::vector<size_t>> & elem_point_indices,
void ductElems(std::vector< std::vector< size_t >> &elem_point_indices, unsigned int n_layers, unsigned int points_per_layer) const
Determines element connectivity for the duct mesh.
void ductPoints(std::vector< Point > &points, const std::vector< Point > &cross_sec, const std::vector< Real > &z_layers) const
Computes all 3D point locations used to construct the duct mesh.
const Real _unheated_length_entry
unheated length of the fuel Pin at the entry of the assembly
const InputParameters & parameters() const
void ductCrossSec(std::vector< Point > &cross_sec, const std::vector< Point > &corners, unsigned int nrings, Real pitch) const
Generates the points along the duct cross-section sides.
std::unique_ptr< MeshBase > generate() override
const Real _flat_to_flat
the distance between flat surfaces of the duct facing each other
const Real _unheated_length_exit
unheated length of the fuel Pin at the exit of the assembly
static InputParameters validParams()
const unsigned int _n_cells
number of axial cells
static const std::string pitch
const unsigned int _block_id
block index
std::unique_ptr< MeshBase > & _input
Mesh that comes from another generator.
void buildDuct(std::unique_ptr< MeshBase > &mesh, std::vector< Node *> &duct_nodes, const std::vector< Point > &points, const std::vector< std::vector< size_t >> &elem_point_indices, SubdomainID block) const
Builds duct mesh nodes and elements and inserts them into the mesh.
const Real _pitch
Distance between the neighbor fuel pins, pitch.
const unsigned int _n_rings
number of rings of fuel pins
SCMTriDuctMeshGenerator(const InputParameters ¶meters)
void ductCorners(std::vector< Point > &corners, Real flat_to_flat, const Point ¢er) const
Computes the x-y corner coordinates of the duct cross-section.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< Real > _z_grid
axial location of nodes
size_t ductPointIndex(unsigned int points_per_layer, unsigned int layer, unsigned int point) const
Maps a duct cross-section point and axial layer to a linear point index.
const Real _heated_length
heated length of the fuel Pin
static const std::string center
Mesh generator for hexagonal duct.