Test 2-phase NCG fluid properties. More...
#include <TestTwoPhaseNCGFluidProperties.h>
Public Member Functions | |
TestTwoPhaseNCGFluidProperties (const InputParameters ¶meters) | |
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 |
Static Public Attributes | |
static const Real | _R = 8.3144598 |
Universal gas constant (J/mol/K) More... | |
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... | |
Test 2-phase NCG fluid properties.
This uses arbitrary functions for the two-phase interfaces.
Definition at line 24 of file TestTwoPhaseNCGFluidProperties.h.
TestTwoPhaseNCGFluidProperties::TestTwoPhaseNCGFluidProperties | ( | const InputParameters & | parameters | ) |
Definition at line 28 of file TestTwoPhaseNCGFluidProperties.C.
|
virtualinherited |
Computes dsigma/dT along the saturation line.
[in] | T | temperature (K) |
Reimplemented in TestTwoPhaseFluidProperties.
Definition at line 70 of file TwoPhaseFluidProperties.C.
|
inlineoverridevirtualinherited |
Computes dT/dp along the saturation line.
[in] | p | pressure |
Implements TwoPhaseFluidProperties.
Definition at line 66 of file TwoPhaseNCGFluidProperties.h.
|
inlinefinalvirtualinherited |
Definition at line 34 of file FluidProperties.h.
|
inlinefinalvirtualinherited |
Definition at line 36 of file FluidProperties.h.
|
inlineoverridevirtualinherited |
Returns the name of the liquid single-phase fluid properties object.
Reimplemented from TwoPhaseFluidProperties.
Definition at line 29 of file TwoPhaseNCGFluidProperties.h.
|
inlineinherited |
Returns the number of non-condensable gases.
Definition at line 40 of file TwoPhaseNCGFluidProperties.h.
|
inlineinherited |
Returns the name of the vapor mixture fluid properties object.
Definition at line 35 of file TwoPhaseNCGFluidProperties.h.
|
inlineoverridevirtualinherited |
Returns the name of the vapor single-phase fluid properties object.
Reimplemented from TwoPhaseFluidProperties.
Definition at line 30 of file TwoPhaseNCGFluidProperties.h.
Referenced by TestTwoPhaseNCGFluidProperties().
|
inlineoverridevirtualinherited |
Computes latent heat of vaporization.
p | pressure |
T | temperature |
Reimplemented from TwoPhaseFluidProperties.
Definition at line 74 of file TwoPhaseNCGFluidProperties.h.
|
inlinefinalvirtualinherited |
Definition at line 35 of file FluidProperties.h.
|
inlineoverridevirtualinherited |
Returns the critical pressure.
Implements TwoPhaseFluidProperties.
Definition at line 45 of file TwoPhaseNCGFluidProperties.h.
|
inlineoverridevirtualinherited |
Computes the saturation pressure at a temperature.
[in] | T | temperature |
Implements TwoPhaseFluidProperties.
Definition at line 59 of file TwoPhaseNCGFluidProperties.h.
|
virtualinherited |
Computes surface tension sigma of saturated liquid in contact with saturated vapor.
T | temperature |
Reimplemented in TestTwoPhaseFluidProperties.
Definition at line 65 of file TwoPhaseFluidProperties.C.
Referenced by FluidPropertiesInterrogator::compute2Phase().
|
inlinefinalvirtualinherited |
Definition at line 39 of file FluidProperties.h.
|
inlineoverridevirtualinherited |
Returns true if phase change is supported, otherwise false.
Implements TwoPhaseFluidProperties.
Definition at line 76 of file TwoPhaseNCGFluidProperties.h.
|
inlineoverridevirtualinherited |
Computes the saturation temperature at a pressure.
[in] | p | pressure |
Implements TwoPhaseFluidProperties.
Definition at line 52 of file TwoPhaseNCGFluidProperties.h.
|
inlinefinalvirtualinherited |
Definition at line 38 of file FluidProperties.h.
|
protectedinherited |
Two-phase fluid properties user object name.
Definition at line 80 of file TwoPhaseNCGFluidProperties.h.
Referenced by TestTwoPhaseNCGFluidProperties().
|
protectedinherited |
Flag to set unimplemented Jacobian entries to zero.
Definition at line 48 of file FluidProperties.h.
Referenced by SinglePhaseFluidProperties::fluidPropError().
|
protectedinherited |
Two-phase fluid properties user object.
Definition at line 85 of file TwoPhaseNCGFluidProperties.h.
Referenced by TwoPhaseNCGFluidProperties::dT_sat_dp(), TwoPhaseNCGFluidProperties::getLiquidName(), TwoPhaseNCGFluidProperties::getVaporName(), TwoPhaseNCGFluidProperties::h_lat(), TwoPhaseNCGFluidProperties::p_critical(), TwoPhaseNCGFluidProperties::p_sat(), TwoPhaseNCGFluidProperties::supportsPhaseChange(), TwoPhaseNCGFluidProperties::T_sat(), and TestTwoPhaseNCGFluidProperties().
|
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::TwoPhaseFluidPropertiesIndependent().
|
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::TwoPhaseFluidPropertiesIndependent().
|
protectedinherited |
Vapor mixture fluid properties user object.
Definition at line 87 of file TwoPhaseNCGFluidProperties.h.
Referenced by TwoPhaseNCGFluidProperties::getNumberOfNCGs(), and TestTwoPhaseNCGFluidProperties().
|
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().
|
staticinherited |
Universal gas constant (J/mol/K)
Definition at line 42 of file FluidProperties.h.
Referenced by HelmholtzFluidProperties::c_from_p_T(), IdealGasFluidProperties::c_from_p_T(), HelmholtzFluidProperties::cp_from_p_T(), HelmholtzFluidProperties::cv_from_p_T(), HelmholtzFluidProperties::e_from_p_T(), HelmholtzFluidProperties::h_from_p_T(), HelmholtzFluidProperties::p_from_rho_T(), HelmholtzFluidProperties::rho_from_p_T(), IdealGasFluidProperties::rho_from_p_T(), and HelmholtzFluidProperties::s_from_p_T().
|
protectedinherited |
Conversion of temperature from Celsius to Kelvin.
Definition at line 46 of file FluidProperties.h.
Referenced by NaClFluidProperties::cp_from_p_T(), BrineFluidProperties::cp_from_p_T_X(), NaClFluidProperties::h_from_p_T(), BrineFluidProperties::h_from_p_T_X(), BrineFluidProperties::haliteSolubility(), NaClFluidProperties::k_from_p_T(), BrineFluidProperties::k_from_p_T_X(), BrineFluidProperties::mu_from_p_T_X(), CO2FluidProperties::partialDensity(), NaClFluidProperties::rho_from_p_T(), and BrineFluidProperties::rho_from_p_T_X().
|
protectedinherited |
Vapor mixture fluid properties user object name.
Definition at line 82 of file TwoPhaseNCGFluidProperties.h.
Referenced by TwoPhaseNCGFluidProperties::getVaporMixtureName(), TestTwoPhaseNCGFluidProperties(), and TwoPhaseNCGFluidProperties::TwoPhaseNCGFluidProperties().
|
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().