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 bool supportsPhaseChange () const override
 Returns true if phase change is supported, otherwise false. More...
 
virtual Real sigma_from_T (Real T) const
 Computes surface tension sigma of saturated liquid in contact with saturated vapor. More...
 
virtual Real dsigma_dT_from_T (Real T) const
 Computes dsigma/dT along the saturation line. 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...
 
const Real _T_c2k
 Conversion of temperature from Celsius to Kelvin. More...
 
const bool _allow_imperfect_jacobians
 Flag to set unimplemented Jacobian entries to zero. 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

◆ dsigma_dT_from_T()

Real TwoPhaseFluidProperties::dsigma_dT_from_T ( Real  T) const
virtualinherited

Computes dsigma/dT along the saturation line.

Parameters
[in]Ttemperature (K)

Reimplemented in TestTwoPhaseFluidProperties.

Definition at line 69 of file TwoPhaseFluidProperties.C.

70 {
71  mooseError(name(), ": ", __PRETTY_FUNCTION__, " is not implemented.");
72 }
const std::string name
Definition: Setup.h:22

◆ 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 35 of file FluidProperties.h.

35 {}

◆ finalize()

virtual void FluidProperties::finalize ( )
inlinefinalvirtualinherited

Definition at line 37 of file FluidProperties.h.

37 {}

◆ 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.

Referenced by TestTwoPhaseNCGFluidProperties::TestTwoPhaseNCGFluidProperties().

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 36 of file FluidProperties.h.

36 {}

◆ 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.

◆ sigma_from_T()

Real TwoPhaseFluidProperties::sigma_from_T ( Real  T) const
virtualinherited

Computes surface tension sigma of saturated liquid in contact with saturated vapor.

Parameters
Ttemperature

Reimplemented in TestTwoPhaseFluidProperties.

Definition at line 64 of file TwoPhaseFluidProperties.C.

Referenced by FluidPropertiesInterrogator::execute2Phase().

65 {
66  mooseError(name(), ": ", __PRETTY_FUNCTION__, " is not implemented.");
67 }
const std::string name
Definition: Setup.h:22

◆ subdomainSetup()

virtual void FluidProperties::subdomainSetup ( )
inlinefinalvirtualinherited

Definition at line 40 of file FluidProperties.h.

40 {}

◆ supportsPhaseChange()

virtual bool TwoPhaseNCGFluidProperties::supportsPhaseChange ( ) const
inlineoverridevirtual

Returns true if phase change is supported, otherwise false.

Implements TwoPhaseFluidProperties.

Definition at line 77 of file TwoPhaseNCGFluidProperties.h.

77 { return _fp_2phase->supportsPhaseChange(); }
virtual bool supportsPhaseChange() const =0
Returns true if phase change is supported, otherwise false.
const TwoPhaseFluidProperties * _fp_2phase
Two-phase fluid properties user object.

◆ 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 39 of file FluidProperties.h.

39 {}

Member Data Documentation

◆ _2phase_name

const UserObjectName TwoPhaseNCGFluidProperties::_2phase_name
protected

Two-phase fluid properties user object name.

Definition at line 81 of file TwoPhaseNCGFluidProperties.h.

Referenced by TestTwoPhaseNCGFluidProperties::TestTwoPhaseNCGFluidProperties().

◆ _allow_imperfect_jacobians

const bool FluidProperties::_allow_imperfect_jacobians
protectedinherited

Flag to set unimplemented Jacobian entries to zero.

Definition at line 46 of file FluidProperties.h.

Referenced by SinglePhaseFluidProperties::fluidPropError().

◆ _fp_2phase

const TwoPhaseFluidProperties* TwoPhaseNCGFluidProperties::_fp_2phase
protected

◆ _fp_liquid

const SinglePhaseFluidProperties* TwoPhaseFluidProperties::_fp_liquid
protectedinherited

◆ _fp_vapor

const SinglePhaseFluidProperties* TwoPhaseFluidProperties::_fp_vapor
protectedinherited

◆ _fp_vapor_mixture

const VaporMixtureFluidProperties* TwoPhaseNCGFluidProperties::_fp_vapor_mixture
protected

Vapor mixture fluid properties user object.

Definition at line 88 of file TwoPhaseNCGFluidProperties.h.

Referenced by getNumberOfNCGs(), and TestTwoPhaseNCGFluidProperties::TestTwoPhaseNCGFluidProperties().

◆ _liquid_name

const UserObjectName TwoPhaseFluidProperties::_liquid_name
protectedinherited

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

Definition at line 95 of file TwoPhaseFluidProperties.h.

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

◆ _T_c2k

const Real FluidProperties::_T_c2k
protectedinherited

◆ _vapor_mixture_name

const UserObjectName TwoPhaseNCGFluidProperties::_vapor_mixture_name
protected

Vapor mixture fluid properties user object name.

Definition at line 83 of file TwoPhaseNCGFluidProperties.h.

Referenced by getVaporMixtureName(), TestTwoPhaseNCGFluidProperties::TestTwoPhaseNCGFluidProperties(), 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 97 of file TwoPhaseFluidProperties.h.

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


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