www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StagnationTemperatureAux Class Reference

Compute stagnation temperature from specific volume, specific internal energy, and velocity. More...

#include <StagnationTemperatureAux.h>

Inheritance diagram for StagnationTemperatureAux:
[legend]

Public Member Functions

 StagnationTemperatureAux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeValue () override
 

Protected Attributes

const VariableValue & _specific_volume
 
const VariableValue & _specific_internal_energy
 
const VariableValue & _velocity
 
const SinglePhaseFluidProperties_fp
 

Detailed Description

Compute stagnation temperature from specific volume, specific internal energy, and velocity.

Definition at line 22 of file StagnationTemperatureAux.h.

Constructor & Destructor Documentation

StagnationTemperatureAux::StagnationTemperatureAux ( const InputParameters &  parameters)

Definition at line 25 of file StagnationTemperatureAux.C.

26  : AuxKernel(parameters),
27  _specific_volume(coupledValue("v")),
28  _specific_internal_energy(coupledValue("e")),
29  _velocity(coupledValue("vel")),
30  _fp(getUserObject<SinglePhaseFluidProperties>("fp"))
31 {
32 }
const VariableValue & _specific_volume
const SinglePhaseFluidProperties & _fp
const VariableValue & _specific_internal_energy
const VariableValue & _velocity

Member Function Documentation

Real StagnationTemperatureAux::computeValue ( )
overrideprotectedvirtual

Definition at line 35 of file StagnationTemperatureAux.C.

36 {
37  // static properties
38  const Real v = _specific_volume[_qp];
39  const Real e = _specific_internal_energy[_qp];
40  const Real u = _velocity[_qp];
41  const Real p = _fp.pressure(v, e);
42 
43  // static entropy is equal to stagnation entropy by definition of the stagnation state
44  const Real s = _fp.s(v, e);
45 
46  // stagnation properties
47  const Real h0 = e + p * v + 0.5 * u * u;
48  const Real p0 = _fp.p_from_h_s(h0, s);
49  Real rho0, e0;
50  _fp.rho_e_ps(p0, s, rho0, e0);
51 
52  return _fp.temperature(1.0 / rho0, e0);
53 }
virtual Real s(Real v, Real u) const =0
Specific entropy [ J / kg K ].
virtual Real temperature(Real v, Real u) const =0
Temperature as a function of specific internal energy and specific volume.
const VariableValue & _specific_volume
virtual void rho_e_ps(Real pressure, Real entropy, Real &rho, Real &e) const =0
Compute internal energy and density from specific entropy and pressure.
const SinglePhaseFluidProperties & _fp
const VariableValue & _specific_internal_energy
virtual Real p_from_h_s(Real h, Real s) const =0
Pressure as a function of specific enthalpy and specific entropy.
const VariableValue & _velocity
virtual Real pressure(Real v, Real u) const =0
Pressure as a function of specific internal energy and specific volume.

Member Data Documentation

const SinglePhaseFluidProperties& StagnationTemperatureAux::_fp
protected

Definition at line 34 of file StagnationTemperatureAux.h.

Referenced by computeValue().

const VariableValue& StagnationTemperatureAux::_specific_internal_energy
protected

Definition at line 31 of file StagnationTemperatureAux.h.

Referenced by computeValue().

const VariableValue& StagnationTemperatureAux::_specific_volume
protected

Definition at line 30 of file StagnationTemperatureAux.h.

Referenced by computeValue().

const VariableValue& StagnationTemperatureAux::_velocity
protected

Definition at line 32 of file StagnationTemperatureAux.h.

Referenced by computeValue().


The documentation for this class was generated from the following files: