22 std::unique_ptr<MeshBase>
generate()
override;
31 ductPointIndex(
unsigned int points_per_layer,
unsigned int layer,
unsigned int point)
const;
39 ductCorners(std::vector<Point> & corners, Real half_x, Real half_y,
const Point &
center)
const;
58 const std::vector<Point> & cross_sec,
59 const std::vector<Real> & z_layers)
const;
65 void ductElems(std::vector<std::vector<size_t>> & elem_point_indices,
66 unsigned int n_layers,
67 unsigned int points_per_layer)
const;
76 std::vector<Node *> & duct_nodes,
77 const std::vector<Point> & points,
78 const std::vector<std::vector<size_t>> & elem_point_indices,
94 const unsigned int _nx;
95 const unsigned int _ny;
const InputParameters & parameters() const
Mesh generator for a square/rectangular duct around a square-lattice subassembly.
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
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 ductCorners(std::vector< Point > &corners, Real half_x, Real half_y, const Point ¢er) const
Computes the x-y corner coordinates of a rectangular duct cross-section.
void ductCrossSec(std::vector< Point > &cross_sec, unsigned int nx, unsigned int ny, Real pitch, Real side_gap) const
Generates the points along the rectangular duct cross-section boundary.
std::unique_ptr< MeshBase > generate() override
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.
std::unique_ptr< MeshBase > & _input
Mesh that comes from another generator.
const unsigned int _n_cells
number of axial cells
const Real _pitch
lattice geometry
const Real _unheated_length_exit
const Real _unheated_length_entry
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 unsigned int _block_id
block index
std::vector< Real > _z_grid
axial location of nodes
static InputParameters validParams()