22 params.
addRequiredParam<UserObjectName>(
"fp",
"The name of the user object for fluid properties");
23 params.
addClassDescription(
"Computes stagnation temperature from specific volume, specific "
24 "internal energy, and velocity");
30 _specific_volume(coupledValue(
"v")),
31 _specific_internal_energy(coupledValue(
"e")),
32 _velocity(coupledValue(
"vel")),
44 const Real
p =
_fp.p_from_v_e(
v, e);
47 const Real s =
_fp.s_from_v_e(
v, e);
50 const Real h0 = e +
p *
v + 0.5 * u * u;
51 const Real p0 =
_fp.p_from_h_s(h0, s);
52 const Real rho0 =
_fp.rho_from_p_s(p0, s);
53 const Real e0 =
_fp.e_from_p_rho(p0, rho0);
55 return _fp.T_from_v_e(1.0 / rho0, e0);
registerMooseObject("FluidPropertiesApp", StagnationTemperatureAux)
static InputParameters validParams()
Common class for single phase fluid properties.
Compute stagnation temperature from specific volume, specific internal energy, and velocity.
const VariableValue & _specific_volume
const VariableValue & _velocity
const SinglePhaseFluidProperties & _fp
const VariableValue & _specific_internal_energy
StagnationTemperatureAux(const InputParameters ¶meters)
virtual Real computeValue() override
static InputParameters validParams()