https://mooseframework.inl.gov
SCMHTCKazimiCarelli.C
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 #include "SCMHTCKazimiCarelli.h"
11 
13 
16 {
18  params.addClassDescription(
19  "Class that computes the convective heat transfer coefficient using the "
20  "Kazimi-Carelli correlation. Only use for fuel-pins.");
21  return params;
22 }
23 
25  : SCMHTCClosureBase(parameters)
26 {
27  // Check that Kazimi-Carelli is not used for the duct (not supported yet)
28  if (const auto * duct_uo = _scm_problem.getDuctHTCClosure(); duct_uo && duct_uo == this)
29  mooseError("'Kazimi-Carelli' is not yet supported for the 'duct_htc_correlation'.");
30 }
31 
32 Real
34  const NusseltStruct & nusselt_args) const
35 {
36  const auto pre = computeNusseltNumberPreInfo(nusselt_args);
37  const auto Pe = pre.Re * pre.Pr;
38 
39  if (Pe < 10 || Pe > 5000)
40  flagSolutionWarning("Peclet number (Pe) out of range for the Kazimi-Carelli correlation.");
41 
42  if (pre.poD < 1.1 || pre.poD > 1.4)
43  flagSolutionWarning(
44  "Pitch over pin diameter ratio out of range for the Kazimi-Carelli correlation.");
45 
46  const auto NuT = 4.0 + 0.33 * std::pow(pre.poD, 3.8) * std::pow((Pe / 1e2), 0.86) +
47  0.16 * std::pow(pre.poD, 5);
48  return blendTurbulentNusseltNumber(pre, NuT);
49 }
NusseltPreInfo computeNusseltNumberPreInfo(const NusseltStruct &nusselt_info) const
Computes all the data needed before computing the nusselt number. It&#39;s used by all closure models...
structure with the needed information to compute the friction factor at a specific subchannel cell ...
SCMHTCKazimiCarelli(const InputParameters &parameters)
const SubChannel1PhaseProblem & _scm_problem
Reference to the subchannel problem.
registerMooseObject("SubChannelApp", SCMHTCKazimiCarelli)
static InputParameters validParams()
static InputParameters validParams()
const SCMHTCClosureBase * getDuctHTCClosure() const
virtual Real computeNusseltNumber(const FrictionStruct &friction_info, const NusseltStruct &nusselt_info) const override
Computes the nusselt number for the local conditions.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
void addClassDescription(const std::string &doc_string)
Base class for the convective heat transfer coefficients (HTC) closures used in SCM.
MooseUnits pow(const MooseUnits &, int)
Class that calculates the HTC based on the Kazimi-Carelli correlation It can be used only for fuel pi...
Real blendTurbulentNusseltNumber(const NusseltPreInfo &nusselt_info, const Real turbulent_nusselt) const
Blends turbulent Nusselt number through the transition range using the base laminar value...
structure with the needed information to compute the Nusselt number at a specific subchannel cell and...