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

Test 2-phase fluid properties. More...

#include <TestTwoPhaseFluidProperties.h>

Inheritance diagram for TestTwoPhaseFluidProperties:
[legend]

Public Member Functions

 TestTwoPhaseFluidProperties (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...
 
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 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 _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

Test 2-phase fluid properties.

This uses arbitrary functions for the two-phase interfaces.

Definition at line 25 of file TestTwoPhaseFluidProperties.h.

Constructor & Destructor Documentation

◆ TestTwoPhaseFluidProperties()

TestTwoPhaseFluidProperties::TestTwoPhaseFluidProperties ( const InputParameters &  parameters)

Definition at line 29 of file TestTwoPhaseFluidProperties.C.

30  : TwoPhaseFluidProperties(parameters)
31 {
32  _fp_liquid = &getUserObject<SinglePhaseFluidProperties>("fp_liquid");
33  _fp_vapor = &getUserObject<SinglePhaseFluidProperties>("fp_vapor");
34 }
const SinglePhaseFluidProperties * _fp_vapor
The user object that provides vapor phase fluid properties.
TwoPhaseFluidProperties(const InputParameters &parameters)
const SinglePhaseFluidProperties * _fp_liquid
The user object that provides liquid phase fluid properties.

Member Function Documentation

◆ dT_sat_dp()

Real TestTwoPhaseFluidProperties::dT_sat_dp ( Real  p) const
overridevirtual

Computes dT/dp along the saturation line.

Parameters
[in]ppressure

Implements TwoPhaseFluidProperties.

Definition at line 54 of file TestTwoPhaseFluidProperties.C.

54 { return 2; }

◆ 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()

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

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

Reimplemented in TwoPhaseNCGFluidProperties.

Definition at line 32 of file TwoPhaseFluidProperties.h.

Referenced by TwoPhaseNCGFluidProperties::getLiquidName().

32 { return _liquid_name; }
const UserObjectName _liquid_name
The name of the user object that provides liquid phase fluid properties.

◆ 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 37 of file TwoPhaseFluidProperties.h.

Referenced by TwoPhaseNCGFluidProperties::getVaporName().

37 { return _vapor_name; }
const UserObjectName _vapor_name
The name of the user object that provides vapor phase fluid properties.

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

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

60 {
61  return _fp_vapor->h_from_p_T(p, T) - _fp_liquid->h_from_p_T(p, T);
62 }
const SinglePhaseFluidProperties * _fp_vapor
The user object that provides vapor phase fluid properties.
const SinglePhaseFluidProperties * _fp_liquid
The user object that provides liquid phase fluid properties.

◆ initialize()

virtual void FluidProperties::initialize ( )
inlinefinalvirtualinherited

Definition at line 36 of file FluidProperties.h.

36 {}

◆ p_critical()

Real TestTwoPhaseFluidProperties::p_critical ( ) const
overridevirtual

Returns the critical pressure.

Implements TwoPhaseFluidProperties.

Definition at line 37 of file TestTwoPhaseFluidProperties.C.

38 {
39  return 25;
40 }

◆ p_sat()

Real TestTwoPhaseFluidProperties::p_sat ( Real  T) const
overridevirtual

Computes the saturation pressure at a temperature.

Parameters
[in]Ttemperature

Implements TwoPhaseFluidProperties.

Definition at line 49 of file TestTwoPhaseFluidProperties.C.

50 {
51  return 3 * T;
52 }

◆ subdomainSetup()

virtual void FluidProperties::subdomainSetup ( )
inlinefinalvirtualinherited

Definition at line 40 of file FluidProperties.h.

40 {}

◆ supportsPhaseChange()

bool TestTwoPhaseFluidProperties::supportsPhaseChange ( ) const
overridevirtual

Returns true if phase change is supported, otherwise false.

Implements TwoPhaseFluidProperties.

Definition at line 57 of file TestTwoPhaseFluidProperties.C.

58 {
59  return true;
60 }

◆ T_sat()

Real TestTwoPhaseFluidProperties::T_sat ( Real  p) const
overridevirtual

Computes the saturation temperature at a pressure.

Parameters
[in]ppressure

Implements TwoPhaseFluidProperties.

Definition at line 43 of file TestTwoPhaseFluidProperties.C.

44 {
45  return 2 * p;
46 }

◆ threadJoin()

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

Definition at line 39 of file FluidProperties.h.

39 {}

Member Data Documentation

◆ _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_liquid

const SinglePhaseFluidProperties* TwoPhaseFluidProperties::_fp_liquid
protectedinherited

The user object that provides liquid phase fluid properties.

Definition at line 85 of file TwoPhaseFluidProperties.h.

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

◆ _fp_vapor

const SinglePhaseFluidProperties* TwoPhaseFluidProperties::_fp_vapor
protectedinherited

The user object that provides vapor phase fluid properties.

Definition at line 87 of file TwoPhaseFluidProperties.h.

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

◆ _liquid_name

const UserObjectName TwoPhaseFluidProperties::_liquid_name
protectedinherited

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

Definition at line 80 of file TwoPhaseFluidProperties.h.

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

◆ _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 82 of file TwoPhaseFluidProperties.h.

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


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