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

Base class for fluid properties used with 2-phase flow with non-condensable gases (NCGs) present. More...

#include <TwoPhaseNCGFluidProperties.h>

Inheritance diagram for TwoPhaseNCGFluidProperties:
[legend]

Public Member Functions

 TwoPhaseNCGFluidProperties (const InputParameters &parameters)
 
const UserObjectName & getLiquidName () const override
 Returns the name of the liquid single-phase fluid properties object. More...
 
const UserObjectName & getVaporName () const override
 Returns the name of the vapor single-phase fluid properties object. More...
 
const UserObjectName & getVaporMixtureName () const
 Returns the name of the vapor mixture fluid properties object. More...
 
unsigned int getNumberOfNCGs () const
 Returns the number of non-condensable gases. More...
 
virtual Real p_critical () const override
 Returns the critical pressure. More...
 
virtual Real T_sat (Real p) const override
 Computes the saturation temperature at a pressure. More...
 
virtual Real p_sat (Real T) const override
 Computes the saturation pressure at a temperature. More...
 
virtual Real dT_sat_dp (Real p) const override
 Computes dT/dp along the saturation line. More...
 
virtual Real h_lat (Real p, Real T) const override
 Computes latent heat of vaporization. More...
 
virtual void execute () final
 
virtual void initialize () final
 
virtual void finalize () final
 
virtual void threadJoin (const UserObject &) final
 
virtual void subdomainSetup () final
 

Protected Attributes

const UserObjectName _2phase_name
 Two-phase fluid properties user object name. More...
 
const UserObjectName _vapor_mixture_name
 Vapor mixture fluid properties user object name. More...
 
const TwoPhaseFluidProperties_fp_2phase
 Two-phase fluid properties user object. More...
 
const VaporMixtureFluidProperties_fp_vapor_mixture
 Vapor mixture fluid properties user object. More...
 
const UserObjectName _liquid_name
 The name of the user object that provides liquid phase fluid properties. More...
 
const UserObjectName _vapor_name
 The name of the user object that provides vapor phase fluid properties. More...
 
const SinglePhaseFluidProperties_fp_liquid
 The user object that provides liquid phase fluid properties. More...
 
const SinglePhaseFluidProperties_fp_vapor
 The user object that provides vapor phase fluid properties. More...
 

Detailed Description

Base class for fluid properties used with 2-phase flow with non-condensable gases (NCGs) present.

Definition at line 25 of file TwoPhaseNCGFluidProperties.h.

Constructor & Destructor Documentation

◆ TwoPhaseNCGFluidProperties()

TwoPhaseNCGFluidProperties::TwoPhaseNCGFluidProperties ( const InputParameters &  parameters)

Definition at line 22 of file TwoPhaseNCGFluidProperties.C.

23  : TwoPhaseFluidProperties(parameters),
24  _2phase_name(isParamValid("fp_2phase") ? getParam<UserObjectName>("fp_2phase")
25  : UserObjectName(name() + ":2phase")),
26  _vapor_mixture_name(name() + ":vapor_mixture")
27 {
28  // check that the user has not already created user objects of the same name
29  if (_tid == 0 && _fe_problem.hasUserObject(_vapor_mixture_name))
30  mooseError(name(), ": A user object with the name '", _vapor_mixture_name, "' already exists.");
31 }
const UserObjectName _2phase_name
Two-phase fluid properties user object name.
TwoPhaseFluidProperties(const InputParameters &parameters)
const std::string name
Definition: Setup.h:22
const UserObjectName _vapor_mixture_name
Vapor mixture fluid properties user object name.

Member Function Documentation

◆ dT_sat_dp()

virtual Real TwoPhaseNCGFluidProperties::dT_sat_dp ( Real  p) const
inlineoverridevirtual

Computes dT/dp along the saturation line.

Parameters
[in]ppressure

Implements TwoPhaseFluidProperties.

Definition at line 67 of file TwoPhaseNCGFluidProperties.h.

67 { return _fp_2phase->dT_sat_dp(p); }
virtual Real dT_sat_dp(Real p) const =0
Computes dT/dp along the saturation line.
const TwoPhaseFluidProperties * _fp_2phase
Two-phase fluid properties user object.

◆ execute()

virtual void FluidProperties::execute ( )
inlinefinalvirtualinherited

Definition at line 27 of file FluidProperties.h.

27 {}

◆ finalize()

virtual void FluidProperties::finalize ( )
inlinefinalvirtualinherited

Definition at line 29 of file FluidProperties.h.

29 {}

◆ getLiquidName()

const UserObjectName& TwoPhaseNCGFluidProperties::getLiquidName ( ) const
inlineoverridevirtual

Returns the name of the liquid single-phase fluid properties object.

Reimplemented from TwoPhaseFluidProperties.

Definition at line 30 of file TwoPhaseNCGFluidProperties.h.

30 { return _fp_2phase->getLiquidName(); }
virtual const UserObjectName & getLiquidName() const
Returns the name of the liquid single-phase fluid properties object.
const TwoPhaseFluidProperties * _fp_2phase
Two-phase fluid properties user object.

◆ getNumberOfNCGs()

unsigned int TwoPhaseNCGFluidProperties::getNumberOfNCGs ( ) const
inline

Returns the number of non-condensable gases.

Definition at line 41 of file TwoPhaseNCGFluidProperties.h.

virtual unsigned int getNumberOfSecondaryVapors() const =0
Returns the number of secondary vapors.
const VaporMixtureFluidProperties * _fp_vapor_mixture
Vapor mixture fluid properties user object.

◆ getVaporMixtureName()

const UserObjectName& TwoPhaseNCGFluidProperties::getVaporMixtureName ( ) const
inline

Returns the name of the vapor mixture fluid properties object.

Definition at line 36 of file TwoPhaseNCGFluidProperties.h.

36 { return _vapor_mixture_name; }
const UserObjectName _vapor_mixture_name
Vapor mixture fluid properties user object name.

◆ getVaporName()

const UserObjectName& TwoPhaseNCGFluidProperties::getVaporName ( ) const
inlineoverridevirtual

Returns the name of the vapor single-phase fluid properties object.

Reimplemented from TwoPhaseFluidProperties.

Definition at line 31 of file TwoPhaseNCGFluidProperties.h.

31 { return _fp_2phase->getVaporName(); }
virtual const UserObjectName & getVaporName() const
Returns the name of the vapor single-phase fluid properties object.
const TwoPhaseFluidProperties * _fp_2phase
Two-phase fluid properties user object.

◆ h_lat()

virtual Real TwoPhaseNCGFluidProperties::h_lat ( Real  p,
Real  T 
) const
inlineoverridevirtual

Computes latent heat of vaporization.

Parameters
ppressure
Ttemperature

Reimplemented from TwoPhaseFluidProperties.

Definition at line 75 of file TwoPhaseNCGFluidProperties.h.

75 { return _fp_2phase->h_lat(p, T); }
virtual Real h_lat(Real p, Real T) const
Computes latent heat of vaporization.
const TwoPhaseFluidProperties * _fp_2phase
Two-phase fluid properties user object.

◆ initialize()

virtual void FluidProperties::initialize ( )
inlinefinalvirtualinherited

Definition at line 28 of file FluidProperties.h.

28 {}

◆ p_critical()

virtual Real TwoPhaseNCGFluidProperties::p_critical ( ) const
inlineoverridevirtual

Returns the critical pressure.

Implements TwoPhaseFluidProperties.

Definition at line 46 of file TwoPhaseNCGFluidProperties.h.

46 { return _fp_2phase->p_critical(); }
virtual Real p_critical() const =0
Returns the critical pressure.
const TwoPhaseFluidProperties * _fp_2phase
Two-phase fluid properties user object.

◆ p_sat()

virtual Real TwoPhaseNCGFluidProperties::p_sat ( Real  T) const
inlineoverridevirtual

Computes the saturation pressure at a temperature.

Parameters
[in]Ttemperature

Implements TwoPhaseFluidProperties.

Definition at line 60 of file TwoPhaseNCGFluidProperties.h.

60 { return _fp_2phase->p_sat(T); }
virtual Real p_sat(Real T) const =0
Computes the saturation pressure at a temperature.
const TwoPhaseFluidProperties * _fp_2phase
Two-phase fluid properties user object.

◆ subdomainSetup()

virtual void FluidProperties::subdomainSetup ( )
inlinefinalvirtualinherited

Definition at line 32 of file FluidProperties.h.

32 {}

◆ T_sat()

virtual Real TwoPhaseNCGFluidProperties::T_sat ( Real  p) const
inlineoverridevirtual

Computes the saturation temperature at a pressure.

Parameters
[in]ppressure

Implements TwoPhaseFluidProperties.

Definition at line 53 of file TwoPhaseNCGFluidProperties.h.

53 { return _fp_2phase->T_sat(p); }
virtual Real T_sat(Real p) const =0
Computes the saturation temperature at a pressure.
const TwoPhaseFluidProperties * _fp_2phase
Two-phase fluid properties user object.

◆ threadJoin()

virtual void FluidProperties::threadJoin ( const UserObject &  )
inlinefinalvirtualinherited

Definition at line 31 of file FluidProperties.h.

31 {}

Member Data Documentation

◆ _2phase_name

const UserObjectName TwoPhaseNCGFluidProperties::_2phase_name
protected

Two-phase fluid properties user object name.

Definition at line 79 of file TwoPhaseNCGFluidProperties.h.

◆ _fp_2phase

const TwoPhaseFluidProperties* TwoPhaseNCGFluidProperties::_fp_2phase
protected

Two-phase fluid properties user object.

Definition at line 84 of file TwoPhaseNCGFluidProperties.h.

Referenced by dT_sat_dp(), getLiquidName(), getVaporName(), h_lat(), p_critical(), p_sat(), and T_sat().

◆ _fp_liquid

const SinglePhaseFluidProperties* TwoPhaseFluidProperties::_fp_liquid
protectedinherited

The user object that provides liquid phase fluid properties.

Definition at line 80 of file TwoPhaseFluidProperties.h.

Referenced by TwoPhaseFluidProperties::h_lat(), and TwoPhaseFluidPropertiesIndependent::TwoPhaseFluidPropertiesIndependent().

◆ _fp_vapor

const SinglePhaseFluidProperties* TwoPhaseFluidProperties::_fp_vapor
protectedinherited

The user object that provides vapor phase fluid properties.

Definition at line 82 of file TwoPhaseFluidProperties.h.

Referenced by TwoPhaseFluidProperties::h_lat(), and TwoPhaseFluidPropertiesIndependent::TwoPhaseFluidPropertiesIndependent().

◆ _fp_vapor_mixture

const VaporMixtureFluidProperties* TwoPhaseNCGFluidProperties::_fp_vapor_mixture
protected

Vapor mixture fluid properties user object.

Definition at line 86 of file TwoPhaseNCGFluidProperties.h.

Referenced by getNumberOfNCGs().

◆ _liquid_name

const UserObjectName TwoPhaseFluidProperties::_liquid_name
protectedinherited

The name of the user object that provides liquid phase fluid properties.

Definition at line 75 of file TwoPhaseFluidProperties.h.

Referenced by TwoPhaseFluidProperties::getLiquidName(), and TwoPhaseFluidProperties::TwoPhaseFluidProperties().

◆ _vapor_mixture_name

const UserObjectName TwoPhaseNCGFluidProperties::_vapor_mixture_name
protected

Vapor mixture fluid properties user object name.

Definition at line 81 of file TwoPhaseNCGFluidProperties.h.

Referenced by getVaporMixtureName(), and TwoPhaseNCGFluidProperties().

◆ _vapor_name

const UserObjectName TwoPhaseFluidProperties::_vapor_name
protectedinherited

The name of the user object that provides vapor phase fluid properties.

Definition at line 77 of file TwoPhaseFluidProperties.h.

Referenced by TwoPhaseFluidProperties::getVaporName(), and TwoPhaseFluidProperties::TwoPhaseFluidProperties().


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