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

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

#include <StagnationPressureAux.h>

Inheritance diagram for StagnationPressureAux:
[legend]

Public Member Functions

 StagnationPressureAux (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 pressure from specific volume, specific internal energy, and velocity.

Definition at line 22 of file StagnationPressureAux.h.

Constructor & Destructor Documentation

StagnationPressureAux::StagnationPressureAux ( const InputParameters &  parameters)

Definition at line 25 of file StagnationPressureAux.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 & _velocity
const VariableValue & _specific_volume
const SinglePhaseFluidProperties & _fp
const VariableValue & _specific_internal_energy

Member Function Documentation

Real StagnationPressureAux::computeValue ( )
overrideprotectedvirtual

Definition at line 35 of file StagnationPressureAux.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 enthalpy
47  const Real h0 = e + p * v + 0.5 * u * u;
48 
49  return _fp.p_from_h_s(h0, s);
50 }
virtual Real s(Real v, Real u) const =0
Specific entropy [ J / kg K ].
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
const VariableValue & _specific_volume
const SinglePhaseFluidProperties & _fp
virtual Real pressure(Real v, Real u) const =0
Pressure as a function of specific internal energy and specific volume.
const VariableValue & _specific_internal_energy

Member Data Documentation

const SinglePhaseFluidProperties& StagnationPressureAux::_fp
protected

Definition at line 34 of file StagnationPressureAux.h.

Referenced by computeValue().

const VariableValue& StagnationPressureAux::_specific_internal_energy
protected

Definition at line 31 of file StagnationPressureAux.h.

Referenced by computeValue().

const VariableValue& StagnationPressureAux::_specific_volume
protected

Definition at line 30 of file StagnationPressureAux.h.

Referenced by computeValue().

const VariableValue& StagnationPressureAux::_velocity
protected

Definition at line 32 of file StagnationPressureAux.h.

Referenced by computeValue().


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