20 params.
addRequiredParam<UserObjectName>(
"fp",
"The name of the user object for fluid properties");
21 params.
addClassDescription(
"Fluid properties using the (pressure, temperature) formulation");
24 params.
addParam<
bool>(
"compute_entropy",
true,
"Whether to compute the entropy");
25 params.
addParam<
bool>(
"compute_sound_speed",
true,
"Whether to compute the speed of sound");
32 _pressure(coupledValue(
"pressure")),
33 _temperature(coupledValue(
"temperature")),
35 _rho(declareProperty<
Real>(
"density")),
36 _mu(declareProperty<
Real>(
"viscosity")),
37 _cp(declareProperty<
Real>(
"cp")),
38 _cv(declareProperty<
Real>(
"cv")),
39 _k(declareProperty<
Real>(
"k")),
40 _h(declareProperty<
Real>(
"h")),
41 _e(declareProperty<
Real>(
"e")),
43 _compute_s(getParam<bool>(
"compute_entropy")),
44 _compute_c(getParam<bool>(
"compute_sound_speed")),
46 _s(_compute_s ? &declareProperty<
Real>(
"s") : nullptr),
47 _c(_compute_c ? &declareProperty<
Real>(
"c") : nullptr),
MaterialProperty< Real > & _cp
Isobaric specific heat capacity (J/kg/K)
const VariableValue & _pressure
Pressure (Pa)
registerMooseObject("FluidPropertiesApp", FluidPropertiesMaterialPT)
MaterialProperty< Real > & _h
Specific enthalpy (J/kg)
const VariableValue & _temperature
Temperature (K)
virtual ~FluidPropertiesMaterialPT()
const bool _compute_c
Whether to compute the speed of sound.
static InputParameters validParams()
MaterialProperty< Real > & _e
Internal energy (J/kg)
Common class for single phase fluid properties.
MaterialProperty< Real > & _k
Thermal conductivity (W/m/K)
virtual void computeQpProperties()
FluidPropertiesMaterialPT(const InputParameters ¶meters)
const bool _compute_s
Whether to compute entropy.
const SinglePhaseFluidProperties & _fp
Fluid properties UserObject.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Computes fluid properties using (pressure, temperature) formulation.
MaterialProperty< Real > & _mu
Viscosity (Pa.s)
MaterialProperty< Real > & _rho
Density (kg/m^3)
MaterialProperty< Real > & _cv
Isochoric specific heat capacity (J/kg/K)