33 _pin_mesh_exist(other_mesh._pin_mesh_exist),
34 _duct_mesh_exist(other_mesh._duct_mesh_exist),
35 _unheated_length_entry(other_mesh._unheated_length_entry),
36 _heated_length(other_mesh._heated_length),
37 _unheated_length_exit(other_mesh._unheated_length_exit),
38 _z_grid(other_mesh._z_grid),
39 _k_grid(other_mesh._k_grid),
40 _duct_nodes(other_mesh._duct_nodes),
41 _chan_to_duct_node_map(other_mesh._chan_to_duct_node_map),
42 _duct_node_to_chan_map(other_mesh._duct_node_to_chan_map),
43 _spacer_z(other_mesh._spacer_z),
44 _spacer_k(other_mesh._spacer_k),
45 _z_blockage(other_mesh._z_blockage),
46 _index_blockage(other_mesh._index_blockage),
47 _reduction_blockage(other_mesh._reduction_blockage),
48 _kij(other_mesh._kij),
49 _pitch(other_mesh._pitch),
50 _pin_diameter(other_mesh._pin_diameter),
51 _assembly_flow_area(other_mesh._assembly_flow_area),
52 _assembly_wetted_perimeter(other_mesh._assembly_wetted_perimeter),
53 _assembly_hydraulic_diameter(other_mesh._assembly_hydraulic_diameter),
54 _n_cells(other_mesh._n_cells)
62 Real unheated_length_exit,
64 std::vector<Real> & z_grid)
66 Real L = unheated_length_entry + heated_length + unheated_length_exit;
68 for (
unsigned int i = 0; i <
n_cells + 1; i++)
69 z_grid.push_back(dz * i);
135 mooseError(
"setChannelToDuctMaps: _z_grid is empty; cannot match duct nodes by z.");
139 "setChannelToDuctMaps: _subchannel_position is empty; cannot map duct nodes to channels.");
141 for (
size_t i = 0; i < duct_nodes.size(); ++i)
143 Node * dn = duct_nodes[i];
146 unsigned int min_chan = 0;
147 Real min_dist = std::numeric_limits<Real>::max();
149 const Point ductpos((*dn)(0), (*dn)(1), 0.0);
154 const Real dist = (chanpos - ductpos).norm();
static void generateZGrid(Real unheated_length_entry, Real heated_length, Real unheated_length_exit, unsigned int n_cells, std::vector< Real > &z_grid)
Generate the spacing in z-direction using heated and unteaded lengths.