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

Compute internal energy given equation of state pressure and density. More...

#include <InternalEnergyAux.h>

Inheritance diagram for InternalEnergyAux:
[legend]

Public Member Functions

 InternalEnergyAux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableValue & _pressure
 
const VariableValue & _rho
 
const SinglePhaseFluidProperties_fp
 

Detailed Description

Compute internal energy given equation of state pressure and density.

Definition at line 24 of file InternalEnergyAux.h.

Constructor & Destructor Documentation

◆ InternalEnergyAux()

InternalEnergyAux::InternalEnergyAux ( const InputParameters &  parameters)

Definition at line 27 of file InternalEnergyAux.C.

28  : AuxKernel(parameters),
29  _pressure(coupledValue("pressure")),
30  _rho(coupledValue("density")),
31  _fp(getUserObject<SinglePhaseFluidProperties>("fp"))
32 {
33 }
const SinglePhaseFluidProperties & _fp
const VariableValue & _rho
const VariableValue & _pressure

Member Function Documentation

◆ computeValue()

Real InternalEnergyAux::computeValue ( )
protectedvirtual

Definition at line 36 of file InternalEnergyAux.C.

37 {
38  return _fp.e_from_p_rho(_pressure[_qp], _rho[_qp]);
39 }
const SinglePhaseFluidProperties & _fp
const VariableValue & _rho
virtual Real e_from_p_rho(Real p, Real rho) const
Specific internal energy from pressure and density.
const VariableValue & _pressure

Member Data Documentation

◆ _fp

const SinglePhaseFluidProperties& InternalEnergyAux::_fp
protected

Definition at line 35 of file InternalEnergyAux.h.

Referenced by computeValue().

◆ _pressure

const VariableValue& InternalEnergyAux::_pressure
protected

Definition at line 32 of file InternalEnergyAux.h.

Referenced by computeValue().

◆ _rho

const VariableValue& InternalEnergyAux::_rho
protected

Definition at line 33 of file InternalEnergyAux.h.

Referenced by computeValue().


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