https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SubChannel1PhaseProblem.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "ExternalProblem.h"
14#include "SubChannelApp.h"
15#include "QuadSubChannelMesh.h"
16#include "SolutionHandle.h"
17#include <petscdm.h>
18#include <petscdmda.h>
19#include <petscksp.h>
20#include <petscsys.h>
21#include <petscvec.h>
22#include <petscsnes.h>
23#include <limits>
24
29
34{
35public:
38
39 virtual void externalSolve() override;
40 virtual void syncSolutions(Direction direction) override;
41 virtual bool solverSystemConverged(const unsigned int) override;
42 virtual void initialSetup() override;
43
45 const SCMHTCClosureBase * getPinHTCClosure() const { return _pin_HTC_closure; } // optional
47 Real getBulkReynoldsNumber() const { return _bulk_Re; }
48
51 {
52 unsigned int i_ch = 0;
53 Real Re = 1.0;
54 Real S = 0.0;
55 Real w_perim = 0.0;
56
57 FrictionStruct() = delete;
58 FrictionStruct(unsigned int i_ch_, Real Re_, Real S_, Real w_perim_)
59 : i_ch(i_ch_), Re(Re_), S(S_), w_perim(w_perim_)
60 {
61 }
63
66 {
67 Real Re = 1.0;
68 Real Pr = 1.0;
69 unsigned int i_pin = std::numeric_limits<unsigned int>::max(); // sentinel (duct) default
70 unsigned int iz = 0;
71 unsigned int i_ch = 0;
72
73 NusseltStruct() = delete;
74 NusseltStruct(Real Re_, Real Pr_, unsigned int i_pin_, unsigned int iz_, unsigned int i_ch_)
75 : Re(Re_), Pr(Pr_), i_pin(i_pin_), iz(iz_), i_ch(i_ch_)
76 {
77 }
79
81 Real getAddedHeatPin(unsigned int i_ch, unsigned int iz) const
82 {
83 return computeAddedHeatPin(i_ch, iz);
84 }
85
87 Real getAddedHeatDuct(unsigned int i_ch, unsigned int iz) const
88 {
89 return computeAddedHeatDuct(i_ch, iz);
90 }
91
94
96 const PostprocessorValue & getOutletPressure() const { return _P_out; }
97
100
103
104protected:
106 virtual Real computeAddedHeatPin(unsigned int i_ch, unsigned int iz) const = 0;
107
109 virtual Real computeAddedHeatDuct(unsigned int i_ch, unsigned int iz) const;
110
112 void computeWijFromSolve(int iblock);
114 void computeSumWij(int iblock);
116 void computeMdot(int iblock);
118 void computeWijPrime(int iblock);
120 Real computeMixingParameter(unsigned int i_gap, unsigned int iz) const;
122 Real computeSweepFlowMixingParameter(unsigned int i_gap, unsigned int iz) const;
124 void computeDP(int iblock);
126 void computeP(int iblock);
128 virtual void computeh(int iblock) = 0;
131 Real computeT(int iblock);
133 void computeRho(int iblock);
135 void computeMu(int iblock);
137 void computeWijResidual(int iblock);
139 virtual Real getSubChannelPeripheralDuctWidth(unsigned int i_ch) const = 0;
143 PetscErrorCode petscSnesSolver(int iblock,
144 const libMesh::DenseVector<Real> & solution,
147 friend PetscErrorCode formFunction(SNES snes, Vec x, Vec f, void * ctx);
148
150 PetscErrorCode implicitPetscSolve(int iblock);
151
153 virtual void initializeSolution() = 0;
155 void detectDeformation();
158
160 PetscScalar computeInterpolationCoefficients(PetscScalar Peclet = 0.0);
161 PetscScalar
162 computeInterpolatedValue(PetscScalar topValue, PetscScalar botValue, PetscScalar Peclet = 0.0);
163
165 Real computeGravityDir(const MooseEnum & dir) const
166 {
167 switch (dir)
168 {
169 case 0: // counter_flow
170 return 1.0;
171 case 1: // co_flow
172 return -1.0;
173 case 2: // none
174 return 0.0;
175 default:
176 mooseError(name(), ": Invalid gravity direction: expected counter_flow, co_flow, or none");
177 }
178 }
179
193 PetscErrorCode solveAndPopulateEnthalpy(
194 Mat A, Vec rhs, unsigned int first_node, unsigned int last_node, const char * ksp_prefix);
195
196 PetscErrorCode cleanUp();
199 unsigned int _n_blocks;
205 const Real _g_grav;
206 const Real & _kij;
207 unsigned int _n_cells;
208 unsigned int _n_gaps;
209 unsigned int _n_pins;
210 unsigned int _n_channels;
211 unsigned int _block_size;
213 std::vector<Real> _z_grid;
214 Real _one;
216 Real _TR;
222 const bool _compute_power;
224 const bool _pin_mesh_exist;
234 Real _dt;
236 Real _CT;
238 const Real & _P_tol;
240 const int & _P_maxit;
242 const Real & _T_tol;
244 const int & _T_maxit;
246 const Real & _T_relaxation;
248 const unsigned int & _enthalpy_subcycles;
262 const PetscReal & _rtol;
264 const PetscReal & _atol;
266 const PetscReal & _dtol;
268 const PetscInt & _maxit;
273 const Real _dir_grav;
275 const bool _implicit_bool;
283 bool _deformation = false;
291
293 std::unique_ptr<SolutionHandle> _mdot_soln;
294 std::unique_ptr<SolutionHandle> _SumWij_soln;
295 std::unique_ptr<SolutionHandle> _P_soln;
296 std::unique_ptr<SolutionHandle> _DP_soln;
297 std::unique_ptr<SolutionHandle> _h_soln;
298 std::unique_ptr<SolutionHandle> _T_soln;
299 std::unique_ptr<SolutionHandle> _Tpin_soln;
300 std::unique_ptr<SolutionHandle> _Dpin_soln;
301 std::unique_ptr<SolutionHandle> _rho_soln;
302 std::unique_ptr<SolutionHandle> _mu_soln;
303 std::unique_ptr<SolutionHandle> _S_flow_soln;
304 std::unique_ptr<SolutionHandle> _w_perim_soln;
305 std::unique_ptr<SolutionHandle> _q_prime_soln;
306 std::unique_ptr<SolutionHandle> _duct_heat_flux_soln; // Only used for ducted assemblies
307 std::unique_ptr<SolutionHandle> _Tduct_soln; // Only used for ducted assemblies
308 std::unique_ptr<SolutionHandle> _displacement_soln;
309 std::unique_ptr<SolutionHandle> _ff_soln;
310 std::unique_ptr<SolutionHandle> _HTC_soln;
311
313 inline PetscErrorCode createPetscVector(Vec & v, PetscInt n)
314 {
316 LibmeshPetscCall(VecCreate(PETSC_COMM_SELF, &v));
317 LibmeshPetscCall(PetscObjectSetName((PetscObject)v, "Solution"));
318 LibmeshPetscCall(VecSetSizes(v, PETSC_DECIDE, n));
319 LibmeshPetscCall(VecSetFromOptions(v));
320 LibmeshPetscCall(VecZeroEntries(v));
321 PetscFunctionReturn(LIBMESH_PETSC_SUCCESS);
322 }
323
324 inline PetscErrorCode createPetscMatrix(Mat & M, PetscInt n, PetscInt m)
325 {
327 LibmeshPetscCall(MatCreate(PETSC_COMM_SELF, &M));
328 LibmeshPetscCall(MatSetSizes(M, PETSC_DECIDE, PETSC_DECIDE, n, m));
329 LibmeshPetscCall(MatSetFromOptions(M));
330 LibmeshPetscCall(MatSetUp(M));
331 PetscFunctionReturn(LIBMESH_PETSC_SUCCESS);
332 }
333
334 template <class T>
335 PetscErrorCode populateVectorFromDense(Vec & x,
336 const T & solution,
337 const unsigned int first_axial_level,
338 const unsigned int last_axial_level,
339 const unsigned int cross_dimension);
340 template <class T>
341 PetscErrorCode populateDenseFromVector(const Vec & x,
342 T & solution,
343 const unsigned int first_axial_level,
344 const unsigned int last_axial_level,
345 const unsigned int cross_dimension);
346 template <class T>
347 PetscErrorCode populateVectorFromHandle(Vec & x,
348 const T & solution,
349 const unsigned int first_axial_level,
350 const unsigned int last_axial_level,
351 const unsigned int cross_dimension);
352 template <class T>
353 PetscErrorCode populateSolutionChan(const Vec & x,
354 T & solution,
355 const unsigned int first_axial_level,
356 const unsigned int last_axial_level,
357 const unsigned int cross_dimension);
358
364 Vec _prod;
371
397
414
430
432 PetscScalar _added_K = 0.0;
433 PetscScalar _added_K_old = 1000.0;
434 PetscScalar _max_sumWij;
435 PetscScalar _max_sumWij_new;
436 PetscScalar _correction_factor = 1.0;
439
440public:
442};
443
444template <class T>
445PetscErrorCode
447 T & loc_solution,
448 const unsigned int first_axial_level,
449 const unsigned int last_axial_level,
450 const unsigned int cross_dimension)
451{
452 PetscScalar * xx;
453
455 LibmeshPetscCall(VecGetArray(x, &xx));
456 for (unsigned int iz = first_axial_level; iz < last_axial_level + 1; iz++)
457 {
458 unsigned int iz_ind = iz - first_axial_level;
459 for (unsigned int i_l = 0; i_l < cross_dimension; i_l++)
460 {
461 loc_solution(i_l, iz) = xx[iz_ind * cross_dimension + i_l];
462 }
463 }
464 LibmeshPetscCall(VecRestoreArray(x, &xx));
465
466 PetscFunctionReturn(LIBMESH_PETSC_SUCCESS);
467}
468
469template <class T>
470PetscErrorCode
472 const T & loc_solution,
473 const unsigned int first_axial_level,
474 const unsigned int last_axial_level,
475 const unsigned int cross_dimension)
476{
477 PetscScalar * xx;
478
480 LibmeshPetscCall(VecGetArray(x, &xx));
481 for (unsigned int iz = first_axial_level; iz < last_axial_level + 1; iz++)
482 {
483 unsigned int iz_ind = iz - first_axial_level;
484 for (unsigned int i_l = 0; i_l < cross_dimension; i_l++)
485 {
486 auto * loc_node = _subchannel_mesh.getChannelNode(i_l, iz);
487 xx[iz_ind * cross_dimension + i_l] = loc_solution(loc_node);
488 }
489 }
490 LibmeshPetscCall(VecRestoreArray(x, &xx));
491
492 PetscFunctionReturn(LIBMESH_PETSC_SUCCESS);
493}
494
495template <class T>
496PetscErrorCode
498 const T & loc_solution,
499 const unsigned int first_axial_level,
500 const unsigned int last_axial_level,
501 const unsigned int cross_dimension)
502{
503 PetscScalar * xx;
505 LibmeshPetscCall(VecGetArray(x, &xx));
506 for (unsigned int iz = first_axial_level; iz < last_axial_level + 1; iz++)
507 {
508 unsigned int iz_ind = iz - first_axial_level;
509 for (unsigned int i_l = 0; i_l < cross_dimension; i_l++)
510 {
511 xx[iz_ind * cross_dimension + i_l] = loc_solution(i_l, iz);
512 }
513 }
514 LibmeshPetscCall(VecRestoreArray(x, &xx));
515 PetscFunctionReturn(LIBMESH_PETSC_SUCCESS);
516}
517
518template <class T>
519PetscErrorCode
521 T & loc_solution,
522 const unsigned int first_axial_level,
523 const unsigned int last_axial_level,
524 const unsigned int cross_dimension)
525{
526 PetscScalar * xx;
528 LibmeshPetscCall(VecGetArray(x, &xx));
529 Node * loc_node;
530 for (unsigned int iz = first_axial_level; iz < last_axial_level + 1; iz++)
531 {
532 unsigned int iz_ind = iz - first_axial_level;
533 for (unsigned int i_l = 0; i_l < cross_dimension; i_l++)
534 {
535 loc_node = _subchannel_mesh.getChannelNode(i_l, iz);
536 loc_solution.set(loc_node, xx[iz_ind * cross_dimension + i_l]);
537 }
538 }
539 PetscFunctionReturn(LIBMESH_PETSC_SUCCESS);
540}
Real f(Real x)
Test function for Brents method.
const std::vector< double > x
const double M
const double T
const double v
Real PostprocessorValue
PetscFunctionBegin
const std::string & name() const
void mooseError(Args &&... args) const
Base class for friction closures used in SCM.
Base class for the convective heat transfer coefficients (HTC) closures used in SCM.
Base class for turbulent mixing closures used in SCM.
Common class for single phase fluid properties.
Base class for the 1-phase steady-state/transient subchannel solver.
libMesh::DenseMatrix< Real > _DP
const PostprocessorValue & getOutletPressure() const
Get outlet pressure.
void computeP(int iblock)
Computes Pressure per channel for block iblock.
PetscErrorCode populateSolutionChan(const Vec &x, T &solution, const unsigned int first_axial_level, const unsigned int last_axial_level, const unsigned int cross_dimension)
const Real & _mass_flow_equation_relaxation
Equation relaxation factor for mass flow rate in the coupled implicit solve.
const Real & _pressure_equation_relaxation
Equation relaxation factor for pressure in the coupled implicit solve.
PetscErrorCode createPetscVector(Vec &v, PetscInt n)
Petsc Functions.
virtual void syncSolutions(Direction direction) override
const bool _segregated_bool
Segregated solve.
PetscScalar computeInterpolatedValue(PetscScalar topValue, PetscScalar botValue, PetscScalar Peclet=0.0)
const SCMMixingClosureBase * _mixing_closure
Turbulent Mixing closure object.
Real computeSweepFlowMixingParameter(unsigned int i_gap, unsigned int iz) const
Computes and validates the sweep-flow mixing parameter.
const SCMHTCClosureBase * _pin_HTC_closure
HTC closure objects.
const SCMHTCClosureBase * _duct_HTC_closure
Mat _cmc_friction_force_mat
Cross momentum conservation - friction force.
std::unique_ptr< SolutionHandle > _w_perim_soln
PetscErrorCode petscSnesSolver(int iblock, const libMesh::DenseVector< Real > &solution, libMesh::DenseVector< Real > &root)
Computes solution of nonlinear equation using snes and provided a residual in a formFunction.
const PetscReal & _dtol
The divergence tolerance for the ksp linear solver.
PetscErrorCode createPetscMatrix(Mat &M, PetscInt n, PetscInt m)
Real getAddedHeatDuct(unsigned int i_ch, unsigned int iz) const
Return the added heat coming from the duct.
virtual void initializeSolution()=0
Function to initialize the solution & geometry fields.
std::unique_ptr< SolutionHandle > _displacement_soln
Mat _hc_time_derivative_mat
Enthalpy Enthalpy conservation - time derivative.
Mat _cmc_time_derivative_mat
Cross momentum Cross momentum conservation - time derivative.
const SCMFrictionClosureBase * _friction_closure
Friction closure object.
Mat _amc_turbulent_cross_flows_mat
Axial momentum Axial momentum conservation - compute turbulent cross fluxes.
static InputParameters validParams()
PetscErrorCode solveAndPopulateEnthalpy(Mat A, Vec rhs, unsigned int first_node, unsigned int last_node, const char *ksp_prefix)
Solve a linear system (A * x = rhs) with a simple PCJACOBI KSP and populate the enthalpy solution int...
const SCMHTCClosureBase * getDuctHTCClosure() const
const SinglePhaseFluidProperties * _fp
Non-owning pointer to fluid properties user object.
Mat _amc_sys_mdot_mat
Axial momentum system matrix.
Mat _cmc_sys_Wij_mat
Lateral momentum system matrix.
libMesh::DenseMatrix< Real > _WijPrime
void computeRho(int iblock)
Computes Density per channel for block iblock.
const SCMFrictionClosureBase * getFrictionClosure() const
virtual Real getSubChannelPeripheralDuctWidth(unsigned int i_ch) const =0
Function that computes the width of the duct cell that the peripheral subchannel i_ch sees.
Real computeGravityDir(const MooseEnum &dir) const
inline function that is used to define the gravity direction
std::unique_ptr< SolutionHandle > _DP_soln
const MooseEnum _interpolation_scheme
The interpolation method used in constructing the systems.
const bool _staggered_pressure_bool
Flag to define the usage of staggered or collocated pressure.
std::unique_ptr< SolutionHandle > _rho_soln
Mat _mc_sumWij_mat
Matrices and vectors to be used in implicit assembly Mass conservation Mass conservation - sum of cro...
std::unique_ptr< SolutionHandle > _duct_heat_flux_soln
struct SubChannel1PhaseProblem::FrictionStruct _friction_args
void computeDP(int iblock)
Computes Pressure Drop per channel for block iblock.
const Real & _T_tol
Convergence tolerance for the temperature loop in internal solve.
const bool _duct_mesh_exist
Flag that informs if there is a duct mesh or not.
std::unique_ptr< SolutionHandle > _S_flow_soln
void computeWijResidual(int iblock)
Computes Residual Matrix based on the lateral momentum conservation equation for block iblock.
const bool _compute_power
Flag that informs if we need to solve the Enthalpy/Temperature equations or not.
const PostprocessorValue & _P_out
Outlet pressure postprocessor value.
virtual void initialSetup() override
std::unique_ptr< SolutionHandle > _Dpin_soln
Mat _cmc_pressure_force_mat
Cross momentum conservation - pressure force.
const SinglePhaseFluidProperties * getSinglePhaseFluidProperties() const
Get fluid properties object.
std::unique_ptr< SolutionHandle > _P_soln
Real _bulk_Re
Assembly bulk Reynolds number.
unsigned int _n_blocks
number of axial blocks
void detectDeformation()
Detects whether pin diameter or duct displacement fields require geometry recalculation.
Mat _amc_time_derivative_mat
Axial momentum conservation - time derivative.
libMesh::DenseMatrix< Real > & _Wij
std::unique_ptr< SolutionHandle > _Tduct_soln
bool _deformation
Flag that activates the effect of deformation (pin/duct) based on the auxvalues for displacement,...
libMesh::DenseMatrix< Real > _Wij_residual_matrix
friend PetscErrorCode formFunction(SNES snes, Vec x, Vec f, void *ctx)
This is the residual Vector function in a form compatible with the SNES PETC solvers.
std::unique_ptr< SolutionHandle > _h_soln
std::unique_ptr< SolutionHandle > _T_soln
virtual void computeh(int iblock)=0
Computes Enthalpy per channel for block iblock.
std::unique_ptr< SolutionHandle > _mu_soln
Real _TR
Flag that activates or deactivates the transient parts of the equations we solve by multiplication.
virtual void externalSolve() override
PetscScalar computeInterpolationCoefficients(PetscScalar Peclet=0.0)
Functions that computes the interpolation scheme given the Peclet number.
Mat _cmc_advective_derivative_mat
Cross momentum conservation - advective (Eulerian) derivative.
bool _time_integrator_checked
Whether the time integrator has been checked for consistency with the implementation.
Vec _hc_added_heat_rhs
Enthalpy conservation - source and sink.
const Real & _P_tol
Convergence tolerance for the pressure loop in external solve.
Mat _amc_friction_force_mat
Axial momentum conservation - friction force.
Real _CT
Turbulent modeling parameter used in axial momentum equation.
virtual Real computeAddedHeatPin(unsigned int i_ch, unsigned int iz) const =0
Pure virtual: daughters provide different implementations.
PetscErrorCode populateDenseFromVector(const Vec &x, T &solution, const unsigned int first_axial_level, const unsigned int last_axial_level, const unsigned int cross_dimension)
Real _pressure_fixed_point_error
Maximum pressure fixed-point update before solution relaxation over the blocks.
Mat _mc_density_pressure_mat
Mass conservation - pressure derivative of transient density.
const bool _compute_viscosity
Flag that activates or deactivates the calculation of viscosity.
Mat _hc_advective_derivative_mat
Enthalpy conservation - advective (Eulerian) derivative;.
const PetscInt & _maxit
The maximum number of iterations to use for the ksp linear solver.
PetscErrorCode populateVectorFromHandle(Vec &x, const T &solution, const unsigned int first_axial_level, const unsigned int last_axial_level, const unsigned int cross_dimension)
PetscErrorCode implicitPetscSolve(int iblock)
Computes implicit solve using PetSc.
const bool _compute_density
Flag that activates or deactivates the calculation of density.
libMesh::DenseVector< Real > residualFunction(int iblock, libMesh::DenseVector< Real > solution)
Computes Residual Vector based on the lateral momentum conservation equation for block iblock & updat...
bool _converged
Variable that informs whether we exited external solve with a converged solution or not.
void computeSumWij(int iblock)
Computes net diversion crossflow per channel for block iblock.
const int & _T_maxit
Maximum iterations for the inner temperature loop.
const Real & _T_relaxation
Relaxation factor for temperature updates in the inner thermal-hydraulic iteration.
const Real & _crossflow_relaxation
Relaxation factor for crossflow updates in the coupled implicit solve.
std::unique_ptr< SolutionHandle > _Tpin_soln
const bool _pin_mesh_exist
Flag that informs if there is a pin mesh or not.
Mat _amc_pressure_force_mat
Axial momentum conservation - pressure force.
void computeMdot(int iblock)
Computes mass flow per channel for block iblock.
const SCMHTCClosureBase * getPinHTCClosure() const
std::unique_ptr< SolutionHandle > _SumWij_soln
const bool _implicit_bool
Flag to define the usage of a implicit or explicit solution.
const int & _P_maxit
Maximum number of pressure iterations; zero selects the solver's existing automatic limit.
std::vector< Real > _z_grid
axial location of nodes
virtual bool solverSystemConverged(const unsigned int) override
const Real & _mass_flow_relaxation
Relaxation factor for mass flow rate updates in the coupled implicit solve.
Mat _amc_cross_derivative_mat
Axial momentum conservation - cross flux derivative.
void computeWijFromSolve(int iblock)
Computes diversion crossflow per gap for block iblock.
const unsigned int & _enthalpy_subcycles
Number of enthalpy, temperature, and property updates performed per flow solve.
void computeMu(int iblock)
Computes Viscosity per channel for block iblock.
PetscErrorCode populateVectorFromDense(Vec &x, const T &solution, const unsigned int first_axial_level, const unsigned int last_axial_level, const unsigned int cross_dimension)
libMesh::DenseMatrix< Real > & _Wij_old
struct SubChannel1PhaseProblem::NusseltStruct _nusselt_args
std::unique_ptr< SolutionHandle > _mdot_soln
Solutions handles and link to TH tables properties.
const MooseEnum _gravity_direction
The direction of gravity.
std::unique_ptr< SolutionHandle > _q_prime_soln
virtual Real computeAddedHeatDuct(unsigned int i_ch, unsigned int iz) const
Non-pure: implemented in the base (or override in a child if needed)
const PetscReal & _rtol
The relative convergence tolerance, (relative decrease) for the ksp linear solver.
const Real & _crossflow_equation_relaxation
Equation relaxation factor for crossflow in the coupled implicit solve.
Vec _amc_gravity_rhs
Axial momentum conservation - buoyancy force No implicit matrix.
Mat _mc_axial_convection_mat
Mass conservation - axial convection.
PetscScalar _added_K
Added resistances for monolithic convergence.
Mat _amc_advective_derivative_mat
Axial momentum conservation - advective (Eulerian) derivative.
Real getAddedHeatPin(unsigned int i_ch, unsigned int iz) const
Return the added heat coming from the fuel pins.
void computeBulkReynoldsNumber()
Computes the assembly bulk Reynolds number from inlet flow conditions.
Real computeT(int iblock)
Computes and relaxes Temperature per channel for block iblock.
void computeWijPrime(int iblock)
Computes turbulent crossflow per gap for block iblock.
Real computeMixingParameter(unsigned int i_gap, unsigned int iz) const
Computes and validates the turbulent mixing parameter.
std::unique_ptr< SolutionHandle > _ff_soln
const bool _verbose_subchannel
Boolean to printout information related to subchannel solve.
Mat _hc_cross_derivative_mat
Enthalpy conservation - cross flux derivative.
const PetscReal & _atol
The absolute convergence tolerance for the ksp linear solver.
const Real & _pressure_relaxation
Relaxation factor for pressure updates in the coupled implicit solve.
std::unique_ptr< SolutionHandle > _HTC_soln
Base class for subchannel meshes.
virtual Node * getChannelNode(unsigned int i_chan, unsigned int iz) const =0
Get the subchannel mesh node for a given channel index and elevation index.
structure with the needed information to compute the friction factor at a specific subchannel cell
FrictionStruct(unsigned int i_ch_, Real Re_, Real S_, Real w_perim_)
structure with the needed information to compute the Nusselt number at a specific subchannel cell and...
NusseltStruct(Real Re_, Real Pr_, unsigned int i_pin_, unsigned int iz_, unsigned int i_ch_)