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

2-phase fluid properties for 2 independent single-phase fluid properties. More...

#include <TwoPhaseFluidPropertiesIndependent.h>

Inheritance diagram for TwoPhaseFluidPropertiesIndependent:
[legend]

Public Member Functions

 TwoPhaseFluidPropertiesIndependent (const InputParameters &parameters)
 
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 bool supportsPhaseChange () const override
 Returns true if phase change is supported, otherwise false. More...
 
void throwNotImplementedError () const
 Calls mooseError with a message saying that this class cannot call 2-phase fluid properties. More...
 
virtual const UserObjectName & getLiquidName () const
 Returns the name of the liquid single-phase fluid properties object. More...
 
virtual const UserObjectName & getVaporName () const
 Returns the name of the vapor single-phase fluid properties object. More...
 
virtual Real h_lat (Real p, Real T) const
 Computes latent heat of vaporization. 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
 

Static Public Attributes

static const Real _R = 8.3144598
 Universal gas constant (J/mol/K) More...
 

Protected Attributes

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

2-phase fluid properties for 2 independent single-phase fluid properties.

This class throws errors if any 2-phase interfaces are called.

Definition at line 24 of file TwoPhaseFluidPropertiesIndependent.h.

Constructor & Destructor Documentation

◆ TwoPhaseFluidPropertiesIndependent()

TwoPhaseFluidPropertiesIndependent::TwoPhaseFluidPropertiesIndependent ( const InputParameters &  parameters)

Definition at line 30 of file TwoPhaseFluidPropertiesIndependent.C.

32  : TwoPhaseFluidProperties(parameters)
33 
34 {
35  _fp_liquid = &getUserObject<SinglePhaseFluidProperties>("fp_liquid");
36  _fp_vapor = &getUserObject<SinglePhaseFluidProperties>("fp_vapor");
37 }

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 70 of file TwoPhaseFluidProperties.C.

71 {
72  mooseError(name(), ": ", __PRETTY_FUNCTION__, " is not implemented.");
73 }

◆ dT_sat_dp()

Real TwoPhaseFluidPropertiesIndependent::dT_sat_dp ( Real  p) const
overridevirtual

Computes dT/dp along the saturation line.

Parameters
[in]ppressure

Implements TwoPhaseFluidProperties.

Definition at line 58 of file TwoPhaseFluidPropertiesIndependent.C.

◆ execute()

virtual void FluidProperties::execute ( )
inlinefinalvirtualinherited

Definition at line 34 of file FluidProperties.h.

34 {}

◆ finalize()

virtual void FluidProperties::finalize ( )
inlinefinalvirtualinherited

Definition at line 36 of file FluidProperties.h.

36 {}

◆ getLiquidName()

virtual const UserObjectName& TwoPhaseFluidProperties::getLiquidName ( ) const
inlinevirtualinherited

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

Reimplemented in TwoPhaseNCGFluidProperties.

Definition at line 31 of file TwoPhaseFluidProperties.h.

31 { return _liquid_name; }

Referenced by TwoPhaseNCGFluidProperties::getLiquidName().

◆ getVaporName()

virtual const UserObjectName& TwoPhaseFluidProperties::getVaporName ( ) const
inlinevirtualinherited

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

Reimplemented in TwoPhaseNCGFluidProperties.

Definition at line 36 of file TwoPhaseFluidProperties.h.

36 { return _vapor_name; }

Referenced by TwoPhaseNCGFluidProperties::getVaporName().

◆ h_lat()

Real TwoPhaseFluidProperties::h_lat ( Real  p,
Real  T 
) const
virtualinherited

Computes latent heat of vaporization.

Parameters
ppressure
Ttemperature

Reimplemented in TwoPhaseNCGFluidProperties.

Definition at line 60 of file TwoPhaseFluidProperties.C.

61 {
62  return _fp_vapor->h_from_p_T(p, T) - _fp_liquid->h_from_p_T(p, T);
63 }

Referenced by FluidPropertiesInterrogator::compute2Phase(), and TwoPhaseNCGFluidProperties::h_lat().

◆ initialize()

virtual void FluidProperties::initialize ( )
inlinefinalvirtualinherited

Definition at line 35 of file FluidProperties.h.

35 {}

◆ p_critical()

Real TwoPhaseFluidPropertiesIndependent::p_critical ( ) const
overridevirtual

Returns the critical pressure.

Implements TwoPhaseFluidProperties.

Definition at line 49 of file TwoPhaseFluidPropertiesIndependent.C.

50 {
52 }

◆ p_sat()

Real TwoPhaseFluidPropertiesIndependent::p_sat ( Real  T) const
overridevirtual

Computes the saturation pressure at a temperature.

Parameters
[in]Ttemperature

Implements TwoPhaseFluidProperties.

Definition at line 56 of file TwoPhaseFluidPropertiesIndependent.C.

◆ 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 65 of file TwoPhaseFluidProperties.C.

66 {
67  mooseError(name(), ": ", __PRETTY_FUNCTION__, " is not implemented.");
68 }

Referenced by FluidPropertiesInterrogator::compute2Phase().

◆ subdomainSetup()

virtual void FluidProperties::subdomainSetup ( )
inlinefinalvirtualinherited

Definition at line 39 of file FluidProperties.h.

39 {}

◆ supportsPhaseChange()

virtual bool TwoPhaseFluidPropertiesIndependent::supportsPhaseChange ( ) const
inlineoverridevirtual

Returns true if phase change is supported, otherwise false.

Implements TwoPhaseFluidProperties.

Definition at line 34 of file TwoPhaseFluidPropertiesIndependent.h.

34 { return false; }

◆ T_sat()

Real TwoPhaseFluidPropertiesIndependent::T_sat ( Real  p) const
overridevirtual

Computes the saturation temperature at a pressure.

Parameters
[in]ppressure

Implements TwoPhaseFluidProperties.

Definition at line 54 of file TwoPhaseFluidPropertiesIndependent.C.

◆ threadJoin()

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

Definition at line 38 of file FluidProperties.h.

38 {}

◆ throwNotImplementedError()

void TwoPhaseFluidPropertiesIndependent::throwNotImplementedError ( ) const

Calls mooseError with a message saying that this class cannot call 2-phase fluid properties.

Definition at line 40 of file TwoPhaseFluidPropertiesIndependent.C.

41 {
42  mooseError(
43  name(),
44  ": The 2-phase fluid properties class 'TwoPhaseFluidPropertiesIndependent' does not allow "
45  "calling any 2-phase property interfaces.");
46 }

Referenced by dT_sat_dp(), p_critical(), p_sat(), and T_sat().

Member Data Documentation

◆ _allow_imperfect_jacobians

const bool FluidProperties::_allow_imperfect_jacobians
protectedinherited

Flag to set unimplemented Jacobian entries to zero.

Definition at line 48 of file FluidProperties.h.

Referenced by SinglePhaseFluidProperties::fluidPropError().

◆ _fp_liquid

const SinglePhaseFluidProperties* TwoPhaseFluidProperties::_fp_liquid
protectedinherited

The user object that provides liquid phase fluid properties.

Definition at line 99 of file TwoPhaseFluidProperties.h.

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

◆ _fp_vapor

const SinglePhaseFluidProperties* TwoPhaseFluidProperties::_fp_vapor
protectedinherited

The user object that provides vapor phase fluid properties.

Definition at line 101 of file TwoPhaseFluidProperties.h.

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

◆ _liquid_name

const UserObjectName TwoPhaseFluidProperties::_liquid_name
protectedinherited

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

Definition at line 94 of file TwoPhaseFluidProperties.h.

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

◆ _R

const Real FluidProperties::_R = 8.3144598
staticinherited

◆ _T_c2k

const Real FluidProperties::_T_c2k
protectedinherited

◆ _vapor_name

const UserObjectName TwoPhaseFluidProperties::_vapor_name
protectedinherited

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

Definition at line 96 of file TwoPhaseFluidProperties.h.

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


The documentation for this class was generated from the following files:
TwoPhaseFluidProperties::_liquid_name
const UserObjectName _liquid_name
The name of the user object that provides liquid phase fluid properties.
Definition: TwoPhaseFluidProperties.h:94
TwoPhaseFluidPropertiesIndependent::throwNotImplementedError
void throwNotImplementedError() const
Calls mooseError with a message saying that this class cannot call 2-phase fluid properties.
Definition: TwoPhaseFluidPropertiesIndependent.C:40
TwoPhaseFluidProperties::_fp_liquid
const SinglePhaseFluidProperties * _fp_liquid
The user object that provides liquid phase fluid properties.
Definition: TwoPhaseFluidProperties.h:99
TwoPhaseFluidProperties::_fp_vapor
const SinglePhaseFluidProperties * _fp_vapor
The user object that provides vapor phase fluid properties.
Definition: TwoPhaseFluidProperties.h:101
TwoPhaseFluidProperties::_vapor_name
const UserObjectName _vapor_name
The name of the user object that provides vapor phase fluid properties.
Definition: TwoPhaseFluidProperties.h:96
TwoPhaseFluidProperties::TwoPhaseFluidProperties
TwoPhaseFluidProperties(const InputParameters &parameters)
Definition: TwoPhaseFluidProperties.C:28
name
const std::string name
Definition: Setup.h:21