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 24 of file StagnationTemperatureAux.h.

Constructor & Destructor Documentation

◆ StagnationTemperatureAux()

StagnationTemperatureAux::StagnationTemperatureAux ( const InputParameters &  parameters)

Definition at line 29 of file StagnationTemperatureAux.C.

30  : AuxKernel(parameters),
31  _specific_volume(coupledValue("v")),
32  _specific_internal_energy(coupledValue("e")),
33  _velocity(coupledValue("vel")),
34  _fp(getUserObject<SinglePhaseFluidProperties>("fp"))
35 {
36 }
const VariableValue & _specific_volume
const SinglePhaseFluidProperties & _fp
const VariableValue & _specific_internal_energy
const VariableValue & _velocity

Member Function Documentation

◆ computeValue()

Real StagnationTemperatureAux::computeValue ( )
overrideprotectedvirtual

Definition at line 39 of file StagnationTemperatureAux.C.

40 {
41  // static properties
42  const Real v = _specific_volume[_qp];
43  const Real e = _specific_internal_energy[_qp];
44  const Real u = _velocity[_qp];
45  const Real p = _fp.p_from_v_e(v, e);
46 
47  // static entropy is equal to stagnation entropy by definition of the stagnation state
48  const Real s = _fp.s_from_v_e(v, e);
49 
50  // stagnation properties
51  const Real h0 = e + p * v + 0.5 * u * u;
52  const Real p0 = _fp.p_from_h_s(h0, s);
53  const Real rho0 = _fp.rho_from_p_s(p0, s);
54  const Real e0 = _fp.e_from_p_rho(p0, rho0);
55 
56  return _fp.T_from_v_e(1.0 / rho0, e0);
57 }
virtual Real p_from_h_s(Real h, Real s) const
Pressure from specific enthalpy and specific entropy.
virtual Real T_from_v_e(Real v, Real e) const
Temperature from specific volume and specific internal energy.
virtual Real s_from_v_e(Real v, Real e) const
Specific entropy from specific volume and specific internal energy.
const VariableValue & _specific_volume
const SinglePhaseFluidProperties & _fp
const VariableValue & _specific_internal_energy
virtual Real p_from_v_e(Real v, Real e) const
Pressure from specific volume and specific internal energy.
virtual Real e_from_p_rho(Real p, Real rho) const
Specific internal energy from pressure and density.
const VariableValue & _velocity
virtual Real rho_from_p_s(Real p, Real s) const
Density from pressure and specific entropy.

Member Data Documentation

◆ _fp

const SinglePhaseFluidProperties& StagnationTemperatureAux::_fp
protected

Definition at line 36 of file StagnationTemperatureAux.h.

Referenced by computeValue().

◆ _specific_internal_energy

const VariableValue& StagnationTemperatureAux::_specific_internal_energy
protected

Definition at line 33 of file StagnationTemperatureAux.h.

Referenced by computeValue().

◆ _specific_volume

const VariableValue& StagnationTemperatureAux::_specific_volume
protected

Definition at line 32 of file StagnationTemperatureAux.h.

Referenced by computeValue().

◆ _velocity

const VariableValue& StagnationTemperatureAux::_velocity
protected

Definition at line 34 of file StagnationTemperatureAux.h.

Referenced by computeValue().


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