19 params.
addClassDescription(
"Postprocessor that computes the Rayleigh number for free flow with " 20 "natural circulation");
24 params.
addParam<PostprocessorName>(
"rho_min",
"Minimum density");
25 params.
addParam<PostprocessorName>(
"rho_max",
"Maximum density");
28 params.
addParam<PostprocessorName>(
"beta",
29 "Absolute value of fluid volumetric expansion coefficient");
30 params.
addParam<PostprocessorName>(
"T_hot",
"Maximum temperature, or hot source temperature");
31 params.
addParam<PostprocessorName>(
"T_cold",
"Minimum temperature, or cold source temperature");
34 params.
addRequiredParam<PostprocessorName>(
"mu_ave",
"Average value of the dynamic viscosity");
35 params.
addRequiredParam<PostprocessorName>(
"k_ave",
"Average value of the thermal conductivity");
37 "Average value of the specific thermal capacity");
39 "Gravity vector magnitude in the direction of interest");
46 _rho_min(isParamValid(
"rho_min") ? &getPostprocessorValue(
"rho_min") : nullptr),
47 _rho_max(isParamValid(
"rho_max") ? &getPostprocessorValue(
"rho_max") : nullptr),
48 _rho_ave(getPostprocessorValue(
"rho_ave")),
49 _beta(isParamValid(
"beta") ? &getPostprocessorValue(
"beta") : nullptr),
50 _T_hot(isParamValid(
"T_hot") ? &getPostprocessorValue(
"T_hot") : nullptr),
51 _T_cold(isParamValid(
"T_cold") ? &getPostprocessorValue(
"T_cold") : nullptr),
52 _l(getPostprocessorValue(
"l")),
53 _mu(getPostprocessorValue(
"mu_ave")),
54 _k(getPostprocessorValue(
"k_ave")),
55 _cp(getPostprocessorValue(
"cp_ave")),
56 _gravity(getParam<
Real>(
"gravity_magnitude"))
60 mooseError(
"To compute the density difference for the Rayleigh number, the density " 61 "min/max/average or the expansion coefficient and the temperature min/max " 75 mooseError(
"Average viscosity, density and thermal conductivity should be strictly positive");
const PostprocessorValue & _cp
Average specific thermal capacity.
const PostprocessorValue *const _beta
Thermal expansion coefficient.
const PostprocessorValue & _rho_ave
Average density.
const PostprocessorValue *const _T_cold
Minimum temperature.
const PostprocessorValue & _mu
Average viscosity.
registerMooseObject("NavierStokesApp", RayleighNumber)
static InputParameters validParams()
virtual Real getValue() const override
const PostprocessorValue & _l
Characteristic length.
const PostprocessorValue *const _rho_max
Maximum density.
This postprocessor computes the Rayleigh number to describe natural circulation.
const PostprocessorValue *const _rho_min
Minimum density.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const PostprocessorValue *const _T_hot
Maximum temperature.
void mooseError(Args &&... args) const
const Real _gravity
Magnitude of gravity in the direction of interest.
const PostprocessorValue & _k
Average thermal conductivity.
MooseUnits pow(const MooseUnits &, int)
RayleighNumber(const InputParameters ¶meters)