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")),
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);
static InputParameters validParams()
StagnationTemperatureAux(const InputParameters ¶meters)
const VariableValue & _specific_volume
const SinglePhaseFluidProperties & _fp
Common class for single phase fluid properties.
const VariableValue & _specific_internal_energy
virtual Real computeValue() override
registerMooseObject("FluidPropertiesApp", StagnationTemperatureAux)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string v
const VariableValue & _velocity
static InputParameters validParams()
Compute stagnation temperature from specific volume, specific internal energy, and velocity...