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

Constructor & Destructor Documentation

◆ StagnationPressureAux()

StagnationPressureAux::StagnationPressureAux ( const InputParameters &  parameters)

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

Member Function Documentation

◆ computeValue()

Real StagnationPressureAux::computeValue ( )
overrideprotectedvirtual

Definition at line 39 of file StagnationPressureAux.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 enthalpy
51  const Real h0 = e + p * v + 0.5 * u * u;
52 
53  return _fp.p_from_h_s(h0, s);
54 }
virtual Real p_from_h_s(Real h, Real s) const
Pressure from specific enthalpy and specific entropy.
virtual Real s_from_v_e(Real v, Real e) const
Specific entropy from specific volume and specific internal energy.
virtual Real p_from_v_e(Real v, Real e) const
Pressure from specific volume and specific internal energy.
const VariableValue & _velocity
const VariableValue & _specific_volume
const SinglePhaseFluidProperties & _fp
const VariableValue & _specific_internal_energy

Member Data Documentation

◆ _fp

const SinglePhaseFluidProperties& StagnationPressureAux::_fp
protected

Definition at line 36 of file StagnationPressureAux.h.

Referenced by computeValue().

◆ _specific_internal_energy

const VariableValue& StagnationPressureAux::_specific_internal_energy
protected

Definition at line 33 of file StagnationPressureAux.h.

Referenced by computeValue().

◆ _specific_volume

const VariableValue& StagnationPressureAux::_specific_volume
protected

Definition at line 32 of file StagnationPressureAux.h.

Referenced by computeValue().

◆ _velocity

const VariableValue& StagnationPressureAux::_velocity
protected

Definition at line 34 of file StagnationPressureAux.h.

Referenced by computeValue().


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