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

Computes the average of the densities of the phases corresponding to a 2-phase fluid properties object. More...

#include <TwoPhaseAverageDensityAux.h>

Inheritance diagram for TwoPhaseAverageDensityAux:
[legend]

Public Member Functions

 TwoPhaseAverageDensityAux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeValue () override
 

Protected Attributes

const VariableValue & _p
 Pressure. More...
 
const VariableValue & _T
 Temperature. More...
 
const TwoPhaseFluidProperties_fp_2phase
 2-phase fluid properties object More...
 
const SinglePhaseFluidProperties_fp_liquid
 Liquid 1-phase fluid properties object. More...
 
const SinglePhaseFluidProperties_fp_vapor
 Vapor 1-phase fluid properties object. More...
 

Detailed Description

Computes the average of the densities of the phases corresponding to a 2-phase fluid properties object.

The computed physical quantity does not have any physical significance; this aux kernel is used for testing 2-phase fluid properties classes.

Definition at line 29 of file TwoPhaseAverageDensityAux.h.

Constructor & Destructor Documentation

◆ TwoPhaseAverageDensityAux()

TwoPhaseAverageDensityAux::TwoPhaseAverageDensityAux ( const InputParameters &  parameters)

Definition at line 32 of file TwoPhaseAverageDensityAux.C.

33  : AuxKernel(parameters),
34 
35  _p(coupledValue("p")),
36  _T(coupledValue("T")),
37  _fp_2phase(getUserObject<TwoPhaseFluidProperties>("fp_2phase")),
38  _fp_liquid(getUserObjectByName<SinglePhaseFluidProperties>(_fp_2phase.getLiquidName())),
39  _fp_vapor(getUserObjectByName<SinglePhaseFluidProperties>(_fp_2phase.getVaporName()))
40 {
41 }
virtual const UserObjectName & getLiquidName() const
Returns the name of the liquid single-phase fluid properties object.
virtual const UserObjectName & getVaporName() const
Returns the name of the vapor single-phase fluid properties object.
const VariableValue & _T
Temperature.
const SinglePhaseFluidProperties & _fp_vapor
Vapor 1-phase fluid properties object.
const VariableValue & _p
Pressure.
const TwoPhaseFluidProperties & _fp_2phase
2-phase fluid properties object
const SinglePhaseFluidProperties & _fp_liquid
Liquid 1-phase fluid properties object.

Member Function Documentation

◆ computeValue()

Real TwoPhaseAverageDensityAux::computeValue ( )
overrideprotectedvirtual

Definition at line 44 of file TwoPhaseAverageDensityAux.C.

45 {
46  return 0.5 * (_fp_liquid.rho_from_p_T(_p[_qp], _T[_qp]) + _fp_vapor.rho_from_p_T(_p[_qp], _T[_qp]));
47 }
virtual Real rho_from_p_T(Real p, Real T) const
Density from pressure and temperature.
const VariableValue & _T
Temperature.
const SinglePhaseFluidProperties & _fp_vapor
Vapor 1-phase fluid properties object.
const VariableValue & _p
Pressure.
const SinglePhaseFluidProperties & _fp_liquid
Liquid 1-phase fluid properties object.

Member Data Documentation

◆ _fp_2phase

const TwoPhaseFluidProperties& TwoPhaseAverageDensityAux::_fp_2phase
protected

2-phase fluid properties object

Definition at line 43 of file TwoPhaseAverageDensityAux.h.

◆ _fp_liquid

const SinglePhaseFluidProperties& TwoPhaseAverageDensityAux::_fp_liquid
protected

Liquid 1-phase fluid properties object.

Definition at line 45 of file TwoPhaseAverageDensityAux.h.

Referenced by computeValue().

◆ _fp_vapor

const SinglePhaseFluidProperties& TwoPhaseAverageDensityAux::_fp_vapor
protected

Vapor 1-phase fluid properties object.

Definition at line 47 of file TwoPhaseAverageDensityAux.h.

Referenced by computeValue().

◆ _p

const VariableValue& TwoPhaseAverageDensityAux::_p
protected

Pressure.

Definition at line 38 of file TwoPhaseAverageDensityAux.h.

Referenced by computeValue().

◆ _T

const VariableValue& TwoPhaseAverageDensityAux::_T
protected

Temperature.

Definition at line 40 of file TwoPhaseAverageDensityAux.h.

Referenced by computeValue().


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