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

Stiffened gas fluid properties. More...

#include <StiffenedGasFluidProperties.h>

Inheritance diagram for StiffenedGasFluidProperties:
[legend]

Public Member Functions

 StiffenedGasFluidProperties (const InputParameters &parameters)
 
virtual ~StiffenedGasFluidProperties ()
 
virtual Real p_from_v_e (Real v, Real e) const override
 
virtual void p_from_v_e (Real v, Real e, Real &p, Real &dp_dv, Real &dp_de) const override
 
virtual Real T_from_v_e (Real v, Real e) const override
 
virtual void T_from_v_e (Real v, Real e, Real &T, Real &dT_dv, Real &dT_de) const override
 
virtual Real c_from_v_e (Real v, Real e) const override
 
virtual void c_from_v_e (Real v, Real e, Real &c, Real &dc_dv, Real &dc_de) const override
 
virtual Real cp_from_v_e (Real v, Real e) const override
 
virtual void cp_from_v_e (Real v, Real e, Real &cp, Real &dcp_dv, Real &dcp_de) const override
 
virtual Real cv_from_v_e (Real v, Real e) const override
 
virtual Real mu_from_v_e (Real v, Real e) const override
 
virtual Real k_from_v_e (Real v, Real e) const override
 
virtual Real s_from_v_e (Real v, Real e) const override
 
virtual void s_from_v_e (Real v, Real e, Real &s, Real &ds_dv, Real &ds_de) const override
 
virtual Real s_from_h_p (Real h, Real p) const override
 
virtual void s_from_h_p (Real h, Real p, Real &s, Real &ds_dh, Real &ds_dp) const override
 
virtual Real s_from_p_T (Real p, Real T) const override
 
virtual void s_from_p_T (Real p, Real T, Real &s, Real &ds_dp, Real &ds_dT) const override
 
virtual Real rho_from_p_s (Real p, Real s) const override
 
virtual void rho_from_p_s (Real p, Real s, Real &rho, Real &drho_dp, Real &drho_ds) const override
 
virtual Real rho_from_p_T (Real p, Real T) const override
 
virtual void rho_from_p_T (Real p, Real T, Real &rho, Real &drho_dp, Real &drho_dT) const override
 
virtual Real e_from_p_rho (Real p, Real rho) const override
 
virtual void e_from_p_rho (Real p, Real rho, Real &e, Real &de_dp, Real &de_drho) const override
 
virtual Real e_from_T_v (Real T, Real v) const override
 
virtual void e_from_T_v (Real T, Real v, Real &e, Real &de_dT, Real &de_dv) const override
 
virtual Real p_from_T_v (Real T, Real v) const override
 
virtual void p_from_T_v (Real T, Real v, Real &p, Real &dp_dT, Real &dp_dv) const override
 
virtual Real h_from_T_v (Real T, Real v) const override
 
virtual void h_from_T_v (Real T, Real v, Real &h, Real &dh_dT, Real &dh_dv) const override
 
virtual Real s_from_T_v (Real T, Real v) const override
 
virtual void s_from_T_v (Real T, Real v, Real &s, Real &ds_dT, Real &ds_dv) const override
 
virtual Real cv_from_T_v (Real T, Real v) const override
 
virtual Real e_spndl_from_v (Real v) const override
 Specific internal energy from temperature and specific volume. More...
 
virtual void v_e_spndl_from_T (Real T, Real &v, Real &e) const override
 Specific internal energy from temperature and specific volume. More...
 
virtual Real e_from_v_h (Real v, Real h) const override
 
virtual void e_from_v_h (Real v, Real h, Real &e, Real &de_dv, Real &de_dh) const override
 
virtual Real h_from_p_T (Real p, Real T) const override
 
virtual void h_from_p_T (Real p, Real T, Real &h, Real &dh_dp, Real &dh_dT) const override
 
virtual Real e_from_p_T (Real p, Real T) const override
 
virtual void e_from_p_T (Real p, Real T, Real &e, Real &de_dp, Real &de_dT) const override
 
virtual Real p_from_h_s (Real h, Real s) const override
 
virtual void p_from_h_s (Real h, Real s, Real &p, Real &dp_dh, Real &dp_ds) const override
 
virtual Real g_from_v_e (Real v, Real e) const override
 
virtual Real molarMass () const override
 Fluid name. More...
 
virtual Real criticalTemperature () const override
 Critical temperature. More...
 
virtual Real criticalDensity () const override
 Critical density. More...
 
virtual Real criticalInternalEnergy () const override
 Critical specific internal energy. More...
 
virtual Real cv_from_p_T (Real p, Real T) const override
 
virtual void cv_from_p_T (Real p, Real T, Real &cv, Real &dcv_dp, Real &dcv_dT) const override
 
virtual Real cp_from_p_T (Real p, Real T) const override
 
virtual void cp_from_p_T (Real p, Real T, Real &cp, Real &dcp_dp, Real &dcp_dT) const override
 
virtual Real mu_from_p_T (Real p, Real T) const override
 
virtual void mu_from_p_T (Real p, Real T, Real &mu, Real &dmu_dp, Real &dmu_dT) const override
 
virtual Real k_from_p_T (Real p, Real T) const override
 
virtual void k_from_p_T (Real p, Real T, Real &k, Real &dk_dp, Real &dk_dT) const override
 
virtual Real c2_from_p_rho (Real pressure, Real rho) const
 
virtual Real pp_sat_from_p_T (Real, Real) const override
 
virtual Real criticalPressure () const
 Critical pressure. More...
 
virtual Real triplePointPressure () const
 Triple point pressure. More...
 
virtual Real triplePointTemperature () const
 Triple point temperature. More...
 
virtual Real vaporPressure (Real T) const
 Vapor pressure. More...
 
virtual void vaporPressure (Real T, Real &psat, Real &dpsat_dT) const
 
DualReal vaporPressure (const DualReal &T) const
 
virtual Real vaporTemperature (Real p) const
 Vapor temperature. More...
 
virtual void vaporTemperature (Real p, Real &Tsat, Real &dTsat_dp) const
 
DualReal vaporTemperature (const DualReal &p) const
 
virtual std::vector< Real > henryCoefficients () const
 Henry's law coefficients for dissolution in water. More...
 
virtual void rho_mu_from_p_T (Real p, Real T, Real &rho, Real &mu) const
 Combined methods. More...
 
virtual void rho_mu_from_p_T (Real p, Real T, Real &rho, Real &drho_dp, Real &drho_dT, Real &mu, Real &dmu_dp, Real &dmu_dT) const
 
virtual void rho_mu_from_p_T (const DualReal &p, const DualReal &T, DualReal &rho, DualReal &mu) const
 
virtual void rho_e_from_p_T (Real p, Real T, Real &rho, Real &drho_dp, Real &drho_dT, Real &e, Real &de_dp, Real &de_dT) const
 
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 Types

enum  NaNMessage { NAN_MESSAGE_NONE = 0, NAN_MESSAGE_WARNING = 1, NAN_MESSAGE_ERROR = 2 }
 

Protected Member Functions

Real getNaN () const
 Produces errors, warnings, or just quiet NaNs. More...
 
template<typename... Args>
Real getNaN (Args &&... args) const
 

Protected Attributes

bool _allow_nonphysical_states
 
Real _gamma
 
Real _cv
 
Real _q
 
Real _q_prime
 
Real _p_inf
 
Real _cp
 
Real _mu
 
Real _k
 
Real _molar_mass
 
Real _T_c
 
Real _rho_c
 
Real _e_c
 
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...
 
const MooseObject * _moose_object
 
enum NaNMessage _emit_on_nan
 Raise mooseWarning or mooseError? More...
 

Private Member Functions

template<typename... Args>
void fluidPropError (Args... args) const
 
e e e e p h T T T T T v v v s h propfuncWithDefault (beta, p, T) propfuncWithDefault(v
 
e e e e p h T T T T T v v v s h T propfuncWithDefault (e, p, T) propfuncWithDefault(gamma
 
 propfunc (p, v, e) propfunc(T
 Compute a fluid property given for the state defined by two given properties. More...
 
propfunc (c, v, e) propfunc(cp
 
e e propfunc (cv, v, e) propfunc(mu
 
e e e propfunc (k, v, e) propfunc(s
 
e e e e propfunc (s, h, p) propfunc(T
 
e e e e p propfunc (rho, p, s) propfunc(e
 
e e e e p h propfunc (s, p, T) propfunc(pp_sat
 
e e e e p h T propfunc (mu, rho, T) propfunc(k
 
e e e e p h T T propfunc (c, p, T) propfunc(cp
 
e e e e p h T T T propfunc (cv, p, T) propfunc(mu
 
e e e e p h T T T T propfunc (k, p, T) propfunc(rho
 
e e e e p h T T T T T propfunc (e, p, rho) propfunc(e
 
e e e e p h T T T T T v propfunc (p, T, v) propfunc(h
 
e e e e p h T T T T T v v propfunc (s, T, v) propfunc(cv
 
e e e e p h T T T T T v v v propfunc (h, p, T) propfunc(p
 
e e e e p h T T T T T v v vpropfunc (g, v, e) propfuncWithDefault(T
 
 v
 
v
 
e e v
 
e e e v
 
e e e e p v
 
e e e e p h T T T T T v v v s h T v
 
e e e e h
 
e e e e p h T T T T T v v v h
 
e e e e p h p
 
e e e e p h T T p
 
e e e e p h T T T p
 
e e e e p h T T T T p
 
e e e e p h T T T T T v v vp
 
e e e e p h T T T T T v v v s h p
 
e e e e p h T rho
 
e e e e p h T T T T T T
 
e e e e p h T T T T T v T
 
e e e e p h T T T T T v v T
 
e e e e p h T T T T T v v v s h TpropfuncWithDefault (gamma, p, T)
 

Detailed Description

Stiffened gas fluid properties.

Definition at line 26 of file StiffenedGasFluidProperties.h.

Member Enumeration Documentation

◆ NaNMessage

enum NaNInterface::NaNMessage
protectedinherited
Enumerator
NAN_MESSAGE_NONE 
NAN_MESSAGE_WARNING 
NAN_MESSAGE_ERROR 

Definition at line 33 of file NaNInterface.h.

34  {
35  NAN_MESSAGE_NONE = 0,
38  };

Constructor & Destructor Documentation

◆ StiffenedGasFluidProperties()

StiffenedGasFluidProperties::StiffenedGasFluidProperties ( const InputParameters &  parameters)

Definition at line 37 of file StiffenedGasFluidProperties.C.

38  : SinglePhaseFluidProperties(parameters),
39  NaNInterface(this),
40  _allow_nonphysical_states(getParam<bool>("allow_nonphysical_states")),
41  _gamma(getParam<Real>("gamma")),
42  _cv(getParam<Real>("cv")),
43  _q(getParam<Real>("q")),
44  _q_prime(getParam<Real>("q_prime")),
45  _p_inf(getParam<Real>("p_inf")),
46  _mu(getParam<Real>("mu")),
47  _k(getParam<Real>("k")),
48  _molar_mass(getParam<Real>("M")),
49  _T_c(getParam<Real>("T_c")),
50  _rho_c(getParam<Real>("rho_c")),
51  _e_c(getParam<Real>("e_c"))
52 {
53  if (_cv == 0.0)
54  mooseError(name(), ": cv cannot be zero.");
55  _cp = _cv * _gamma;
56 }

◆ ~StiffenedGasFluidProperties()

StiffenedGasFluidProperties::~StiffenedGasFluidProperties ( )
virtual

Definition at line 58 of file StiffenedGasFluidProperties.C.

58 {}

Member Function Documentation

◆ c2_from_p_rho()

Real StiffenedGasFluidProperties::c2_from_p_rho ( Real  pressure,
Real  rho 
) const
virtual

Definition at line 506 of file StiffenedGasFluidProperties.C.

507 {
508  return _gamma * (pressure + _p_inf) / rho;
509 }

◆ c_from_v_e() [1/2]

Real StiffenedGasFluidProperties::c_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 89 of file StiffenedGasFluidProperties.C.

90 {
92  return std::sqrt(_gamma * (p_from_v_e(v, e) + _p_inf) * v);
93  else
94  {
95  const Real radicant = _gamma * (p_from_v_e(v, e) + _p_inf) * v;
96  if (radicant < 0.)
97  {
98  return getNaN();
99  }
100  else
101  {
102  return std::sqrt(radicant);
103  }
104  }
105 }

◆ c_from_v_e() [2/2]

void StiffenedGasFluidProperties::c_from_v_e ( Real  v,
Real  e,
Real &  c,
Real &  dc_dv,
Real &  dc_de 
) const
overridevirtual

Definition at line 108 of file StiffenedGasFluidProperties.C.

109 {
111  {
112  Real p, dp_dv, dp_de;
113  p_from_v_e(v, e, p, dp_dv, dp_de);
114 
115  c = std::sqrt(_gamma * (p_from_v_e(v, e) + _p_inf) * v);
116  const Real dc_dp = 0.5 / c * _gamma * v;
117  const Real dc_dv_partial = 0.5 / c * _gamma * (p + _p_inf);
118 
119  dc_dv = dc_dv_partial + dc_dp * dp_dv;
120  dc_de = dc_dp * dp_de;
121  }
122  else
123  {
124  const Real radicant = _gamma * (p_from_v_e(v, e) + _p_inf) * v;
125  if (radicant < 0.)
126  {
127  c = getNaN();
128  dc_dv = getNaN();
129  dc_de = getNaN();
130  }
131  else
132  {
133  Real p, dp_dv, dp_de;
134  p_from_v_e(v, e, p, dp_dv, dp_de);
135  c = std::sqrt(radicant);
136  const Real dc_dp = 0.5 / c * _gamma * v;
137  const Real dc_dv_partial = 0.5 / c * _gamma * (p + _p_inf);
138 
139  dc_dv = dc_dv_partial + dc_dp * dp_dv;
140  dc_de = dc_dp * dp_de;
141  }
142  }
143 }

◆ cp_from_p_T() [1/2]

Real StiffenedGasFluidProperties::cp_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 549 of file StiffenedGasFluidProperties.C.

550 {
551  return _cp;
552 }

Referenced by cp_from_p_T().

◆ cp_from_p_T() [2/2]

void StiffenedGasFluidProperties::cp_from_p_T ( Real  p,
Real  T,
Real &  cp,
Real &  dcp_dp,
Real &  dcp_dT 
) const
overridevirtual

Definition at line 555 of file StiffenedGasFluidProperties.C.

557 {
559  dcp_dp = 0.0;
560  dcp_dT = 0.0;
561 }

◆ cp_from_v_e() [1/2]

Real StiffenedGasFluidProperties::cp_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 145 of file StiffenedGasFluidProperties.C.

145 { return _cp; }

Referenced by cp_from_v_e().

◆ cp_from_v_e() [2/2]

void StiffenedGasFluidProperties::cp_from_v_e ( Real  v,
Real  e,
Real &  cp,
Real &  dcp_dv,
Real &  dcp_de 
) const
overridevirtual

Definition at line 148 of file StiffenedGasFluidProperties.C.

150 {
151  cp = cp_from_v_e(v, e);
152  dcp_dv = 0.0;
153  dcp_de = 0.0;
154 }

◆ criticalDensity()

Real StiffenedGasFluidProperties::criticalDensity ( ) const
overridevirtual

Critical density.

Returns
critical density (kg/m^3)

Reimplemented from SinglePhaseFluidProperties.

Definition at line 524 of file StiffenedGasFluidProperties.C.

525 {
526  return _rho_c;
527 }

◆ criticalInternalEnergy()

Real StiffenedGasFluidProperties::criticalInternalEnergy ( ) const
overridevirtual

Critical specific internal energy.

Returns
specific internal energy (J/kg)

Reimplemented from SinglePhaseFluidProperties.

Definition at line 530 of file StiffenedGasFluidProperties.C.

531 {
532  return _e_c;
533 }

◆ criticalPressure()

Real SinglePhaseFluidProperties::criticalPressure ( ) const
virtualinherited

Critical pressure.

Returns
critical pressure (Pa)

Reimplemented in CO2FluidProperties, HydrogenFluidProperties, NitrogenFluidProperties, MethaneFluidProperties, NaClFluidProperties, and Water97FluidProperties.

Definition at line 108 of file SinglePhaseFluidProperties.C.

109 {
110  mooseError(name(), ": ", __PRETTY_FUNCTION__, " not implemented.");
111 }

◆ criticalTemperature()

Real StiffenedGasFluidProperties::criticalTemperature ( ) const
overridevirtual

Critical temperature.

Returns
critical temperature (K)

Reimplemented from SinglePhaseFluidProperties.

Definition at line 518 of file StiffenedGasFluidProperties.C.

519 {
520  return _T_c;
521 }

◆ cv_from_p_T() [1/2]

Real StiffenedGasFluidProperties::cv_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 535 of file StiffenedGasFluidProperties.C.

536 {
537  return _cv;
538 }

Referenced by cv_from_p_T().

◆ cv_from_p_T() [2/2]

void StiffenedGasFluidProperties::cv_from_p_T ( Real  p,
Real  T,
Real &  cv,
Real &  dcv_dp,
Real &  dcv_dT 
) const
overridevirtual

Definition at line 541 of file StiffenedGasFluidProperties.C.

543 {
545  dcv_dp = 0.0;
546  dcv_dT = 0.0;
547 }

◆ cv_from_T_v()

Real StiffenedGasFluidProperties::cv_from_T_v ( Real  T,
Real  v 
) const
overridevirtual

Definition at line 430 of file StiffenedGasFluidProperties.C.

430 { return _cv; }

◆ cv_from_v_e()

Real StiffenedGasFluidProperties::cv_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 156 of file StiffenedGasFluidProperties.C.

156 { return _cv; }

◆ e_from_p_rho() [1/2]

Real StiffenedGasFluidProperties::e_from_p_rho ( Real  p,
Real  rho 
) const
overridevirtual

Definition at line 352 of file StiffenedGasFluidProperties.C.

353 {
354  mooseAssert((_gamma - 1.0) * rho != 0., "Invalid gamma or density detected!");
355  return (p + _gamma * _p_inf) / ((_gamma - 1.0) * rho) + _q;
356 }

Referenced by e_from_p_rho().

◆ e_from_p_rho() [2/2]

void StiffenedGasFluidProperties::e_from_p_rho ( Real  p,
Real  rho,
Real &  e,
Real &  de_dp,
Real &  de_drho 
) const
overridevirtual

Definition at line 359 of file StiffenedGasFluidProperties.C.

361 {
362  e = e_from_p_rho(p, rho);
363  de_dp = 1.0 / ((_gamma - 1.0) * rho);
364  de_drho = -(p + _gamma * _p_inf) / ((_gamma - 1.0) * rho * rho);
365 }

◆ e_from_p_T() [1/2]

Real StiffenedGasFluidProperties::e_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 456 of file StiffenedGasFluidProperties.C.

457 {
458  return (p + _gamma * _p_inf) / (p + _p_inf) * _cv * T + _q;
459 }

Referenced by e_from_p_T().

◆ e_from_p_T() [2/2]

void StiffenedGasFluidProperties::e_from_p_T ( Real  p,
Real  T,
Real &  e,
Real &  de_dp,
Real &  de_dT 
) const
overridevirtual

Definition at line 462 of file StiffenedGasFluidProperties.C.

463 {
464  e = e_from_p_T(p, T);
465  de_dp = (1. - _gamma) * _p_inf / (p + _p_inf) / (p + _p_inf) * _cv * T;
466  de_dT = (p + _gamma * _p_inf) / (p + _p_inf) * _cv;
467 }

◆ e_from_T_v() [1/2]

Real StiffenedGasFluidProperties::e_from_T_v ( Real  T,
Real  v 
) const
overridevirtual

Definition at line 368 of file StiffenedGasFluidProperties.C.

369 {
370  return _cv * T + _q + _p_inf * v;
371 }

Referenced by p_from_T_v(), and s_from_T_v().

◆ e_from_T_v() [2/2]

void StiffenedGasFluidProperties::e_from_T_v ( Real  T,
Real  v,
Real &  e,
Real &  de_dT,
Real &  de_dv 
) const
overridevirtual

Definition at line 374 of file StiffenedGasFluidProperties.C.

375 {
376  e = _cv * T + _q + _p_inf * v;
377  de_dT = _cv;
378  de_dv = _p_inf;
379 }

◆ e_from_v_h() [1/2]

Real StiffenedGasFluidProperties::e_from_v_h ( Real  v,
Real  h 
) const
overridevirtual

Definition at line 309 of file StiffenedGasFluidProperties.C.

310 {
311  return (h + (_gamma - 1.0) * _q + _gamma * _p_inf * v) / _gamma;
312 }

◆ e_from_v_h() [2/2]

void StiffenedGasFluidProperties::e_from_v_h ( Real  v,
Real  h,
Real &  e,
Real &  de_dv,
Real &  de_dh 
) const
overridevirtual

Definition at line 315 of file StiffenedGasFluidProperties.C.

316 {
317  e = (h + (_gamma - 1.0) * _q + _gamma * _p_inf * v) / _gamma;
318  de_dv = _p_inf;
319  de_dh = 1.0 / _gamma;
320 }

◆ e_spndl_from_v()

Real StiffenedGasFluidProperties::e_spndl_from_v ( Real  v) const
overridevirtual

Specific internal energy from temperature and specific volume.

Parameters
[in]Ttemperature
[in]vspecific volume

Reimplemented from SinglePhaseFluidProperties.

Definition at line 432 of file StiffenedGasFluidProperties.C.

432 { return _e_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 {}

◆ fluidPropError()

template<typename... Args>
void SinglePhaseFluidProperties::fluidPropError ( Args...  args) const
inlineprivateinherited

Definition at line 326 of file SinglePhaseFluidProperties.h.

327  {
329  mooseDoOnce(mooseWarning(std::forward<Args>(args)...));
330  else
331  mooseError(std::forward<Args>(args)...);
332  }

Referenced by SinglePhaseFluidProperties::vaporPressure(), and SinglePhaseFluidProperties::vaporTemperature().

◆ g_from_v_e()

Real StiffenedGasFluidProperties::g_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 489 of file StiffenedGasFluidProperties.C.

490 {
491  // g(p,T) for SGEOS is given by Equation (37) in the following reference:
492  //
493  // Ray A. Berry, Richard Saurel, Olivier LeMetayer
494  // The discrete equation method (DEM) for fully compressible, two-phase flows in
495  // ducts of spatially varying cross-section
496  // Nuclear Engineering and Design 240 (2010) p. 3797-3818
497  //
498  const Real p = p_from_v_e(v, e);
499  const Real T = T_from_v_e(v, e);
500 
501  return (_gamma * _cv - _q_prime) * T -
502  _cv * T * std::log(std::pow(T, _gamma) / std::pow(p + _p_inf, _gamma - 1.0)) + _q;
503 }

◆ getNaN() [1/2]

Real NaNInterface::getNaN ( ) const
inlineprotectedinherited

◆ getNaN() [2/2]

template<typename... Args>
Real NaNInterface::getNaN ( Args &&...  args) const
inlineprotectedinherited

Definition at line 51 of file NaNInterface.h.

52  {
53  switch (_emit_on_nan)
54  {
55  case (NAN_MESSAGE_WARNING):
56  mooseWarning(_moose_object->name(), ": ", std::forward<Args>(args)...);
57  break;
58  case (NAN_MESSAGE_ERROR):
59  mooseError(_moose_object->name(), ": ", std::forward<Args>(args)...);
60  break;
61  default:
62  break;
63  }
64  // return a quiet NaN
65  return std::nan("");
66  }

◆ h_from_p_T() [1/2]

Real StiffenedGasFluidProperties::h_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 442 of file StiffenedGasFluidProperties.C.

443 {
444  return _gamma * _cv * T + _q;
445 }

Referenced by h_from_p_T().

◆ h_from_p_T() [2/2]

void StiffenedGasFluidProperties::h_from_p_T ( Real  p,
Real  T,
Real &  h,
Real &  dh_dp,
Real &  dh_dT 
) const
overridevirtual

Definition at line 448 of file StiffenedGasFluidProperties.C.

449 {
450  h = h_from_p_T(p, T);
451  dh_dp = 0.0;
452  dh_dT = _gamma * _cv;
453 }

◆ h_from_T_v() [1/2]

Real StiffenedGasFluidProperties::h_from_T_v ( Real  T,
Real  v 
) const
overridevirtual

Definition at line 399 of file StiffenedGasFluidProperties.C.

400 {
401  return _gamma * _cv * T + _q;
402 }

◆ h_from_T_v() [2/2]

void StiffenedGasFluidProperties::h_from_T_v ( Real  T,
Real  v,
Real &  h,
Real &  dh_dT,
Real &  dh_dv 
) const
overridevirtual

Definition at line 405 of file StiffenedGasFluidProperties.C.

407 {
408  h = _gamma * _cv * T + _q;
409  dh_dT = _gamma * _cv;
410  dh_dv = 0.0;
411 }

◆ henryCoefficients()

std::vector< Real > SinglePhaseFluidProperties::henryCoefficients ( ) const
virtualinherited

Henry's law coefficients for dissolution in water.

Returns
Henry's constant coefficients

Reimplemented in CO2FluidProperties, TabulatedFluidProperties, HydrogenFluidProperties, NitrogenFluidProperties, and MethaneFluidProperties.

Definition at line 183 of file SinglePhaseFluidProperties.C.

184 {
185  mooseError(name(), ": ", __PRETTY_FUNCTION__, " not implemented.");
186 }

Referenced by TabulatedFluidProperties::henryCoefficients().

◆ initialize()

virtual void FluidProperties::initialize ( )
inlinefinalvirtualinherited

Definition at line 35 of file FluidProperties.h.

35 {}

◆ k_from_p_T() [1/2]

Real StiffenedGasFluidProperties::k_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 577 of file StiffenedGasFluidProperties.C.

578 {
579  return _k;
580 }

Referenced by k_from_p_T().

◆ k_from_p_T() [2/2]

void StiffenedGasFluidProperties::k_from_p_T ( Real  p,
Real  T,
Real &  k,
Real &  dk_dp,
Real &  dk_dT 
) const
overridevirtual

Definition at line 583 of file StiffenedGasFluidProperties.C.

585 {
586  k = this->k_from_p_T(pressure, temperature);
587  dk_dp = 0.0;
588  dk_dT = 0.0;
589 }

◆ k_from_v_e()

Real StiffenedGasFluidProperties::k_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 160 of file StiffenedGasFluidProperties.C.

160 { return _k; }

◆ molarMass()

Real StiffenedGasFluidProperties::molarMass ( ) const
overridevirtual

Fluid name.

Returns
string representing fluid name Molar mass [kg/mol]
molar mass

Reimplemented from SinglePhaseFluidProperties.

Definition at line 512 of file StiffenedGasFluidProperties.C.

513 {
514  return _molar_mass;
515 }

◆ mu_from_p_T() [1/2]

Real StiffenedGasFluidProperties::mu_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 563 of file StiffenedGasFluidProperties.C.

564 {
565  return _mu;
566 }

Referenced by mu_from_p_T().

◆ mu_from_p_T() [2/2]

void StiffenedGasFluidProperties::mu_from_p_T ( Real  p,
Real  T,
Real &  mu,
Real &  dmu_dp,
Real &  dmu_dT 
) const
overridevirtual

Definition at line 569 of file StiffenedGasFluidProperties.C.

571 {
572  mu = this->mu_from_p_T(pressure, temperature);
573  dmu_dp = 0.0;
574  dmu_dT = 0.0;
575 }

◆ mu_from_v_e()

Real StiffenedGasFluidProperties::mu_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 158 of file StiffenedGasFluidProperties.C.

158 { return _mu; }

◆ p_from_h_s() [1/2]

Real StiffenedGasFluidProperties::p_from_h_s ( Real  h,
Real  s 
) const
overridevirtual

Definition at line 470 of file StiffenedGasFluidProperties.C.

471 {
472  return std::pow((h - _q) / (_gamma * _cv), _gamma / (_gamma - 1.0)) *
473  std::exp((_q_prime - s) / ((_gamma - 1.0) * _cv)) -
474  _p_inf;
475 }

Referenced by p_from_h_s().

◆ p_from_h_s() [2/2]

void StiffenedGasFluidProperties::p_from_h_s ( Real  h,
Real  s,
Real &  p,
Real &  dp_dh,
Real &  dp_ds 
) const
overridevirtual

Definition at line 478 of file StiffenedGasFluidProperties.C.

479 {
480  p = p_from_h_s(h, s);
481  dp_dh = _gamma / (_gamma - 1.0) / (_gamma * _cv) *
482  std::pow((h - _q) / (_gamma * _cv), 1.0 / (_gamma - 1.0)) *
483  std::exp((_q_prime - s) / ((_gamma - 1.0) * _cv));
484  dp_ds = std::pow((h - _q) / (_gamma * _cv), _gamma / (_gamma - 1)) *
485  std::exp((_q_prime - s) / ((_gamma - 1) * _cv)) / ((1 - _gamma) * _cv);
486 }

◆ p_from_T_v() [1/2]

Real StiffenedGasFluidProperties::p_from_T_v ( Real  T,
Real  v 
) const
overridevirtual

Definition at line 382 of file StiffenedGasFluidProperties.C.

383 {
384  Real e = e_from_T_v(T, v);
385  return p_from_v_e(v, e);
386 }

◆ p_from_T_v() [2/2]

void StiffenedGasFluidProperties::p_from_T_v ( Real  T,
Real  v,
Real &  p,
Real &  dp_dT,
Real &  dp_dv 
) const
overridevirtual

Definition at line 389 of file StiffenedGasFluidProperties.C.

390 {
391  Real e, de_dT_v, de_dv_T, dp_dv_e, dp_de_v;
392  e_from_T_v(T, v, e, de_dT_v, de_dv_T);
393  p_from_v_e(v, e, p, dp_dv_e, dp_de_v);
394  dp_dT = dp_de_v * de_dT_v;
395  dp_dv = dp_dv_e + dp_de_v * de_dv_T;
396 }

◆ p_from_v_e() [1/2]

Real StiffenedGasFluidProperties::p_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 61 of file StiffenedGasFluidProperties.C.

62 {
63  return (_gamma - 1.0) * (e - _q) / v - _gamma * _p_inf;
64 }

Referenced by c_from_v_e(), g_from_v_e(), p_from_T_v(), p_from_v_e(), and s_from_v_e().

◆ p_from_v_e() [2/2]

void StiffenedGasFluidProperties::p_from_v_e ( Real  v,
Real  e,
Real &  p,
Real &  dp_dv,
Real &  dp_de 
) const
overridevirtual

Definition at line 67 of file StiffenedGasFluidProperties.C.

68 {
69  p = p_from_v_e(v, e);
70  dp_dv = -(_gamma - 1.0) * (e - _q) / v / v;
71  dp_de = (_gamma - 1.0) / v;
72 }

◆ pp_sat_from_p_T()

Real StiffenedGasFluidProperties::pp_sat_from_p_T ( Real  ,
Real   
) const
overridevirtual

Definition at line 591 of file StiffenedGasFluidProperties.C.

592 {
593  mooseError(
594  name(), ": ", __PRETTY_FUNCTION__, " not implemented. Use a real fluid property class!");
595 }

◆ propfunc() [1/16]

e e e e p h T T SinglePhaseFluidProperties::propfunc ( ,
p  ,
T   
)
inherited

◆ propfunc() [2/16]

e SinglePhaseFluidProperties::propfunc ( ,
v  ,
 
)
inherited

◆ propfunc() [3/16]

e e e e p h T T T SinglePhaseFluidProperties::propfunc ( cv  ,
p  ,
T   
)
inherited

◆ propfunc() [4/16]

e e SinglePhaseFluidProperties::propfunc ( cv  ,
v  ,
 
)
inherited

◆ propfunc() [5/16]

e e e e p h T T T T T SinglePhaseFluidProperties::propfunc ( ,
p  ,
rho   
)
inherited

◆ propfunc() [6/16]

e e e e p h T T T T T v v v s SinglePhaseFluidProperties::propfunc ( ,
v  ,
 
)
inherited

◆ propfunc() [7/16]

e e e e p h T T T T T v v v SinglePhaseFluidProperties::propfunc ( h  ,
p  ,
T   
)
inherited

◆ propfunc() [8/16]

e e e e p h T T T T SinglePhaseFluidProperties::propfunc ( ,
p  ,
T   
)
inherited

◆ propfunc() [9/16]

e e e SinglePhaseFluidProperties::propfunc ( ,
v  ,
 
)
inherited

◆ propfunc() [10/16]

e e e e p h T SinglePhaseFluidProperties::propfunc ( mu  ,
rho  ,
T   
)
inherited

◆ propfunc() [11/16]

e e e e p h T T T T T v SinglePhaseFluidProperties::propfunc ( p  ,
T  ,
v   
)
inherited

◆ propfunc() [12/16]

SinglePhaseFluidProperties::propfunc ( p  ,
v  ,
 
)
inherited

Compute a fluid property given for the state defined by two given properties.

For all functions, the first two arguments are the given properties that define the fluid state. For the two-argument variants, the desired property is the return value. The five-argument variants also provide partial derivatives dx/da and dx/db where x is the desired property being computed, a is the first given property, and b is the second given property. The desired property, dx/da, and dx/db are stored into the 3rd, 4th, and 5th arguments respectively.

Properties/parameters used in these function are listed below with their units:

@begincode p pressure [Pa] T temperature [K] e specific internal energy [J/kg] v specific volume [m^3/kg] rho density [kg/m^3] h specific enthalpy [J/kg] s specific entropy [J/(kg*K)] mu viscosity [Pa*s] k thermal conductivity [W/(m*K)] c speed of sound [m/s] cp constant-pressure specific heat [J/K] cv constant-volume specific heat [J/K] beta volumetric thermal expansion coefficient [1/K] g Gibbs free energy [J] pp_sat partial pressure at saturation [Pa] gamma Adiabatic ratio (cp/cv) [-]

As an example:

@begincode // calculate pressure given specific vol and energy: auto pressure = your_fluid_properties_object.p_from_v_e(specific_vol, specific_energy);

// or use the derivative variant: Real dp_dv = 0; // derivative will be stored into here Real dp_de = 0; // derivative will be stored into here your_fluid_properties_object.p_from_v_e(specific_vol, specific_energy, pressure, dp_dv, dp_de);

Automatic differentiation (AD) support is provided through x_from_a_b(DualReal a, DualReal b) and x_from_a_b(DualReal a, DualReal b, DualReal x, DualReal dx_da, DualReal dx_db) versions of the functions where a and b must be ADReal/DualNumber's calculated using all AD-supporting values:

@begincode auto v = 1/rho; // rho must be an AD non-linear variable. auto e = rhoE/rho - vel_energy; // rhoE and vel_energy must be AD variables/numbers also. auto pressure = your_fluid_properties_object.p_from_v_e(v, e); // pressure now contains partial derivatives w.r.t. all degrees of freedom

◆ propfunc() [13/16]

e e e e p SinglePhaseFluidProperties::propfunc ( rho  ,
p  ,
 
)
inherited

◆ propfunc() [14/16]

e e e e SinglePhaseFluidProperties::propfunc ( ,
h  ,
p   
)
inherited

◆ propfunc() [15/16]

e e e e p h SinglePhaseFluidProperties::propfunc ( ,
p  ,
T   
)
inherited

◆ propfunc() [16/16]

e e e e p h T T T T T v v SinglePhaseFluidProperties::propfunc ( ,
T  ,
v   
)
inherited

◆ propfuncWithDefault() [1/2]

e e e e p h T T T T T v v v s h SinglePhaseFluidProperties::propfuncWithDefault ( beta  ,
p  ,
T   
)
inherited

◆ propfuncWithDefault() [2/2]

e e e e p h T T T T T v v v s h T SinglePhaseFluidProperties::propfuncWithDefault ( ,
p  ,
T   
)
inherited

◆ rho_e_from_p_T()

void SinglePhaseFluidProperties::rho_e_from_p_T ( Real  p,
Real  T,
Real &  rho,
Real &  drho_dp,
Real &  drho_dT,
Real &  e,
Real &  de_dp,
Real &  de_dT 
) const
virtualinherited

Definition at line 242 of file SinglePhaseFluidProperties.C.

250 {
251  rho_from_p_T(p, T, rho, drho_dp, drho_dT);
252  e_from_p_T(p, T, e, de_dp, de_dT);
253 }

◆ rho_from_p_s() [1/2]

Real StiffenedGasFluidProperties::rho_from_p_s ( Real  p,
Real  s 
) const
overridevirtual

Definition at line 271 of file StiffenedGasFluidProperties.C.

272 {
273  Real a = (s - _q_prime + _cv * std::log(std::pow(p + _p_inf, _gamma - 1.0))) / _cv;
274  Real T = std::pow(std::exp(a), 1.0 / _gamma);
275  Real rho = rho_from_p_T(p, T);
276  if (!_allow_nonphysical_states && rho <= 0.)
277  return getNaN();
278  else
279  return rho;
280 }

◆ rho_from_p_s() [2/2]

void StiffenedGasFluidProperties::rho_from_p_s ( Real  p,
Real  s,
Real &  rho,
Real &  drho_dp,
Real &  drho_ds 
) const
overridevirtual

Definition at line 283 of file StiffenedGasFluidProperties.C.

285 {
286  // T(p,s)
287  const Real aux = (s - _q_prime + _cv * std::log(std::pow(p + _p_inf, _gamma - 1.0))) / _cv;
288  const Real T = std::pow(std::exp(aux), 1 / _gamma);
289 
290  // dT/dp
291  const Real dT_dp = 1.0 / _gamma * std::pow(std::exp(aux), 1.0 / _gamma - 1.0) * std::exp(aux) /
292  std::pow(p + _p_inf, _gamma - 1.0) * (_gamma - 1.0) *
293  std::pow(p + _p_inf, _gamma - 2.0);
294 
295  // dT/ds
296  const Real dT_ds =
297  1.0 / _gamma * std::pow(std::exp(aux), 1.0 / _gamma - 1.0) * std::exp(aux) / _cv;
298 
299  // Drho/Dp = d/dp[rho(p, T(p,s))] = drho/dp + drho/dT * dT/dp
300  Real drho_dp_partial, drho_dT;
301  rho_from_p_T(p, T, rho, drho_dp_partial, drho_dT);
302  drho_dp = drho_dp_partial + drho_dT * dT_dp;
303 
304  // Drho/Ds = d/ds[rho(p, T(p,s))] = drho/dT * dT/ds
305  drho_ds = drho_dT * dT_ds;
306 }

◆ rho_from_p_T() [1/2]

Real StiffenedGasFluidProperties::rho_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 323 of file StiffenedGasFluidProperties.C.

324 {
325  mooseAssert(((_gamma - 1.0) * _cv * T) != 0.0, "Invalid gamma or cv or temperature detected!");
326  Real rho = (p + _p_inf) / ((_gamma - 1.0) * _cv * T);
327  if (!_allow_nonphysical_states && rho <= 0.)
328  return getNaN();
329  else
330  return rho;
331 }

Referenced by rho_from_p_s().

◆ rho_from_p_T() [2/2]

void StiffenedGasFluidProperties::rho_from_p_T ( Real  p,
Real  T,
Real &  rho,
Real &  drho_dp,
Real &  drho_dT 
) const
overridevirtual

Definition at line 334 of file StiffenedGasFluidProperties.C.

336 {
337  mooseAssert(((_gamma - 1.0) * _cv * T) != 0.0, "Invalid gamma or cv or temperature detected!");
338  rho = (p + _p_inf) / ((_gamma - 1.0) * _cv * T);
339  if (!_allow_nonphysical_states && rho <= 0.)
340  {
341  drho_dp = getNaN();
342  drho_dT = getNaN();
343  }
344  else
345  {
346  drho_dp = 1. / ((_gamma - 1.0) * _cv * T);
347  drho_dT = -(p + _p_inf) / ((_gamma - 1.0) * _cv * T * T);
348  }
349 }

◆ rho_mu_from_p_T() [1/3]

void SinglePhaseFluidProperties::rho_mu_from_p_T ( const DualReal &  p,
const DualReal &  T,
DualReal &  rho,
DualReal &  mu 
) const
virtualinherited

Definition at line 277 of file SinglePhaseFluidProperties.C.

281 {
282  rho = rho_from_p_T(p, T);
283  mu = mu_from_p_T(p, T);
284 }

◆ rho_mu_from_p_T() [2/3]

void SinglePhaseFluidProperties::rho_mu_from_p_T ( Real  p,
Real  T,
Real &  rho,
Real &  drho_dp,
Real &  drho_dT,
Real &  mu,
Real &  dmu_dp,
Real &  dmu_dT 
) const
virtualinherited

Reimplemented in Water97FluidProperties, CO2FluidProperties, HydrogenFluidProperties, and NitrogenFluidProperties.

Definition at line 263 of file SinglePhaseFluidProperties.C.

271 {
272  rho_from_p_T(p, T, rho, drho_dp, drho_dT);
273  mu_from_p_T(p, T, mu, dmu_dp, dmu_dT);
274 }

◆ rho_mu_from_p_T() [3/3]

void SinglePhaseFluidProperties::rho_mu_from_p_T ( Real  p,
Real  T,
Real &  rho,
Real &  mu 
) const
virtualinherited

Combined methods.

These methods are particularly useful for the PorousFlow module, where density and viscosity are typically both computed everywhere. The combined methods allow the most efficient means of calculating both properties, especially where rho(p, T) and mu(rho, T). In this case, an extra density calculation would be required to calculate mu(p, T). All propery names are described above.

Reimplemented in Water97FluidProperties, CO2FluidProperties, HydrogenFluidProperties, and NitrogenFluidProperties.

Definition at line 256 of file SinglePhaseFluidProperties.C.

257 {
258  rho = rho_from_p_T(p, T);
259  mu = mu_from_p_T(p, T);
260 }

Referenced by PorousFlowSingleComponentFluid::computeQpProperties(), PorousFlowWaterNCG::gasProperties(), PorousFlowBrineCO2::gasProperties(), and PorousFlowWaterNCG::liquidProperties().

◆ s_from_h_p() [1/2]

Real StiffenedGasFluidProperties::s_from_h_p ( Real  h,
Real  p 
) const
overridevirtual

Definition at line 206 of file StiffenedGasFluidProperties.C.

207 {
208  const Real aux = (p + _p_inf) * std::pow((h - _q) / (_gamma * _cv), -_gamma / (_gamma - 1));
209  if (aux <= 0.0)
210  return getNaN();
211  else
212  return _q_prime - (_gamma - 1) * _cv * std::log(aux);
213 }

◆ s_from_h_p() [2/2]

void StiffenedGasFluidProperties::s_from_h_p ( Real  h,
Real  p,
Real &  s,
Real &  ds_dh,
Real &  ds_dp 
) const
overridevirtual

Definition at line 216 of file StiffenedGasFluidProperties.C.

217 {
218  const Real aux = (p + _p_inf) * std::pow((h - _q) / (_gamma * _cv), -_gamma / (_gamma - 1));
219  if (aux <= 0.0)
220  {
221  s = getNaN();
222  ds_dh = getNaN();
223  ds_dp = getNaN();
224  }
225  else
226  {
227  const Real daux_dh = (p + _p_inf) *
228  std::pow((h - _q) / (_gamma * _cv), -_gamma / (_gamma - 1) - 1) *
229  (-_gamma / (_gamma - 1)) / (_gamma * _cv);
230  const Real daux_dp = std::pow((h - _q) / (_gamma * _cv), -_gamma / (_gamma - 1));
231 
232  s = _q_prime - (_gamma - 1) * _cv * std::log(aux);
233  ds_dh = -(_gamma - 1) * _cv / aux * daux_dh;
234  ds_dp = -(_gamma - 1) * _cv / aux * daux_dp;
235  }
236 }

◆ s_from_p_T() [1/2]

Real StiffenedGasFluidProperties::s_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 239 of file StiffenedGasFluidProperties.C.

240 {
241  Real n = std::pow(T, _gamma) / std::pow(p + _p_inf, _gamma - 1.0);
242  if (n <= 0.0)
243  return getNaN();
244  else
245  return _cv * std::log(n) + _q_prime;
246 }

◆ s_from_p_T() [2/2]

void StiffenedGasFluidProperties::s_from_p_T ( Real  p,
Real  T,
Real &  s,
Real &  ds_dp,
Real &  ds_dT 
) const
overridevirtual

Definition at line 249 of file StiffenedGasFluidProperties.C.

250 {
251  const Real n = std::pow(T, _gamma) / std::pow(p + _p_inf, _gamma - 1.0);
252  if (n <= 0.0)
253  {
254  s = getNaN();
255  ds_dp = getNaN();
256  ds_dT = getNaN();
257  }
258  else
259  {
260  s = _cv * std::log(n) + _q_prime;
261 
262  const Real dn_dT = _gamma * std::pow(T, _gamma - 1.0) / std::pow(p + _p_inf, _gamma - 1.0);
263  const Real dn_dp = std::pow(T, _gamma) * (1.0 - _gamma) * std::pow(p + _p_inf, -_gamma);
264 
265  ds_dp = _cv / n * dn_dp;
266  ds_dT = _cv / n * dn_dT;
267  }
268 }

◆ s_from_T_v() [1/2]

Real StiffenedGasFluidProperties::s_from_T_v ( Real  T,
Real  v 
) const
overridevirtual

Definition at line 414 of file StiffenedGasFluidProperties.C.

415 {
416  Real e = e_from_T_v(T, v);
417  return s_from_v_e(v, e);
418 }

◆ s_from_T_v() [2/2]

void StiffenedGasFluidProperties::s_from_T_v ( Real  T,
Real  v,
Real &  s,
Real &  ds_dT,
Real &  ds_dv 
) const
overridevirtual

Definition at line 421 of file StiffenedGasFluidProperties.C.

422 {
423  Real e, de_dT_v, de_dv_T, ds_dv_e, ds_de_v;
424  e_from_T_v(T, v, e, de_dT_v, de_dv_T);
425  s_from_v_e(v, e, s, ds_dv_e, ds_de_v);
426  ds_dT = ds_de_v * de_dT_v;
427  ds_dv = ds_dv_e + ds_de_v * de_dv_T;
428 }

◆ s_from_v_e() [1/2]

Real StiffenedGasFluidProperties::s_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 163 of file StiffenedGasFluidProperties.C.

164 {
165  Real T = T_from_v_e(v, e);
166  Real p = p_from_v_e(v, e);
167  Real n = std::pow(T, _gamma) / std::pow(p + _p_inf, _gamma - 1.0);
168  if (n <= 0.0)
169  return getNaN();
170  else
171  return _cv * std::log(n) + _q_prime;
172 }

Referenced by s_from_T_v().

◆ s_from_v_e() [2/2]

void StiffenedGasFluidProperties::s_from_v_e ( Real  v,
Real  e,
Real &  s,
Real &  ds_dv,
Real &  ds_de 
) const
overridevirtual

Definition at line 175 of file StiffenedGasFluidProperties.C.

176 {
177  Real T, dT_dv, dT_de;
178  T_from_v_e(v, e, T, dT_dv, dT_de);
179 
180  Real p, dp_dv, dp_de;
181  p_from_v_e(v, e, p, dp_dv, dp_de);
182 
183  const Real n = std::pow(T, _gamma) / std::pow(p + _p_inf, _gamma - 1.0);
184  if (n <= 0.0)
185  {
186  s = getNaN();
187  ds_dv = getNaN();
188  ds_de = getNaN();
189  }
190  else
191  {
192  s = _cv * std::log(n) + _q_prime;
193 
194  const Real dn_dT = _gamma * std::pow(T, _gamma - 1.0) / std::pow(p + _p_inf, _gamma - 1.0);
195  const Real dn_dp = std::pow(T, _gamma) * (1.0 - _gamma) * std::pow(p + _p_inf, -_gamma);
196 
197  const Real dn_dv = dn_dT * dT_dv + dn_dp * dp_dv;
198  const Real dn_de = dn_dT * dT_de + dn_dp * dp_de;
199 
200  ds_dv = _cv / n * dn_dv;
201  ds_de = _cv / n * dn_de;
202  }
203 }

◆ subdomainSetup()

virtual void FluidProperties::subdomainSetup ( )
inlinefinalvirtualinherited

Definition at line 39 of file FluidProperties.h.

39 {}

◆ T_from_v_e() [1/2]

Real StiffenedGasFluidProperties::T_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 75 of file StiffenedGasFluidProperties.C.

76 {
77  return (1.0 / _cv) * (e - _q - _p_inf * v);
78 }

Referenced by g_from_v_e(), s_from_v_e(), and T_from_v_e().

◆ T_from_v_e() [2/2]

void StiffenedGasFluidProperties::T_from_v_e ( Real  v,
Real  e,
Real &  T,
Real &  dT_dv,
Real &  dT_de 
) const
overridevirtual

Definition at line 81 of file StiffenedGasFluidProperties.C.

82 {
83  T = T_from_v_e(v, e);
84  dT_dv = -_p_inf / _cv;
85  dT_de = 1.0 / _cv;
86 }

◆ threadJoin()

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

Definition at line 38 of file FluidProperties.h.

38 {}

◆ triplePointPressure()

Real SinglePhaseFluidProperties::triplePointPressure ( ) const
virtualinherited

Triple point pressure.

Returns
triple point pressure (Pa)

Reimplemented in CO2FluidProperties, HydrogenFluidProperties, NitrogenFluidProperties, MethaneFluidProperties, NaClFluidProperties, and Water97FluidProperties.

Definition at line 132 of file SinglePhaseFluidProperties.C.

133 {
134  mooseError(name(), ": ", __PRETTY_FUNCTION__, " not implemented.");
135 }

◆ triplePointTemperature()

Real SinglePhaseFluidProperties::triplePointTemperature ( ) const
virtualinherited

Triple point temperature.

Returns
triple point temperature (K)

Reimplemented in CO2FluidProperties, HydrogenFluidProperties, NitrogenFluidProperties, MethaneFluidProperties, NaClFluidProperties, and Water97FluidProperties.

Definition at line 138 of file SinglePhaseFluidProperties.C.

139 {
140  mooseError(name(), ": ", __PRETTY_FUNCTION__, " not implemented.");
141 }

◆ v_e_spndl_from_T()

void StiffenedGasFluidProperties::v_e_spndl_from_T ( Real  T,
Real &  v,
Real &  e 
) const
overridevirtual

Specific internal energy from temperature and specific volume.

Parameters
[in]Ttemperature
[in]vspecific volume

Reimplemented from SinglePhaseFluidProperties.

Definition at line 435 of file StiffenedGasFluidProperties.C.

436 {
437  v = 1. / _rho_c;
438  e = _e_c;
439 }

◆ vaporPressure() [1/3]

DualReal SinglePhaseFluidProperties::vaporPressure ( const DualReal &  T) const
inherited

Definition at line 198 of file SinglePhaseFluidProperties.C.

199 {
200  Real p = 0.0;
201  Real temperature = T.value();
202  Real dpdT = 0.0;
203 
204  vaporPressure(temperature, p, dpdT);
205 
206  DualReal result = p;
207  result.derivatives() = T.derivatives() * dpdT;
208 
209  return result;
210 }

◆ vaporPressure() [2/3]

Real SinglePhaseFluidProperties::vaporPressure ( Real  T) const
virtualinherited

Vapor pressure.

Used to delineate liquid and gas phases. Valid for temperatures between the triple point temperature and the critical temperature

Parameters
Tfluid temperature (K)
[out]saturationpressure (Pa)
[out]derivativeof saturation pressure wrt temperature (Pa/K)

Reimplemented in TabulatedFluidProperties, CO2FluidProperties, Water97FluidProperties, HydrogenFluidProperties, NitrogenFluidProperties, and MethaneFluidProperties.

Definition at line 177 of file SinglePhaseFluidProperties.C.

178 {
179  mooseError(name(), ": ", __PRETTY_FUNCTION__, " not implemented.");
180 }

Referenced by PorousFlowWaterNCG::equilibriumMassFractions(), PorousFlowWaterNCG::gasDensity(), PorousFlowWaterNCG::gasProperties(), BrineFluidProperties::vaporPressure(), TabulatedFluidProperties::vaporPressure(), and SinglePhaseFluidProperties::vaporPressure().

◆ vaporPressure() [3/3]

void SinglePhaseFluidProperties::vaporPressure ( Real  T,
Real &  psat,
Real &  dpsat_dT 
) const
virtualinherited

Reimplemented in TabulatedFluidProperties, CO2FluidProperties, Water97FluidProperties, HydrogenFluidProperties, NitrogenFluidProperties, and MethaneFluidProperties.

Definition at line 189 of file SinglePhaseFluidProperties.C.

190 {
191  fluidPropError(name(), ": ", __PRETTY_FUNCTION__, " derivatives not implemented.");
192 
193  dp_dT = 0.0;
194  p = vaporPressure(T);
195 }

◆ vaporTemperature() [1/3]

DualReal SinglePhaseFluidProperties::vaporTemperature ( const DualReal &  p) const
inherited

Definition at line 227 of file SinglePhaseFluidProperties.C.

228 {
229  Real T = 0.0;
230  Real pressure = p.value();
231  Real dTdp = 0.0;
232 
233  vaporTemperature(pressure, T, dTdp);
234 
235  DualReal result = T;
236  result.derivatives() = p.derivatives() * dTdp;
237 
238  return result;
239 }

◆ vaporTemperature() [2/3]

Real SinglePhaseFluidProperties::vaporTemperature ( Real  p) const
virtualinherited

Vapor temperature.

Used to delineate liquid and gas phases. Valid for pressures between the triple point pressure and the critical pressure

Parameters
pfluid pressure (Pa)
[out]saturationtemperature (K)
[out]derivativeof saturation temperature wrt pressure

Reimplemented in Water97FluidProperties.

Definition at line 212 of file SinglePhaseFluidProperties.C.

213 {
214  mooseError(name(), ": ", __PRETTY_FUNCTION__, " not implemented.");
215 }

Referenced by PorousFlowWaterVapor::thermophysicalProperties(), and SinglePhaseFluidProperties::vaporTemperature().

◆ vaporTemperature() [3/3]

void SinglePhaseFluidProperties::vaporTemperature ( Real  p,
Real &  Tsat,
Real &  dTsat_dp 
) const
virtualinherited

Reimplemented in Water97FluidProperties.

Definition at line 218 of file SinglePhaseFluidProperties.C.

219 {
220  fluidPropError(name(), ": ", __PRETTY_FUNCTION__, " derivatives not implemented.");
221 
222  dT_dp = 0.0;
223  T = vaporTemperature(p);
224 }

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

◆ _allow_nonphysical_states

bool StiffenedGasFluidProperties::_allow_nonphysical_states
protected

Definition at line 96 of file StiffenedGasFluidProperties.h.

Referenced by c_from_v_e(), rho_from_p_s(), and rho_from_p_T().

◆ _cp

Real StiffenedGasFluidProperties::_cp
protected

◆ _cv

Real StiffenedGasFluidProperties::_cv
protected

◆ _e_c

Real StiffenedGasFluidProperties::_e_c
protected

◆ _emit_on_nan

enum NaNMessage NaNInterface::_emit_on_nan
protectedinherited

Raise mooseWarning or mooseError?

Definition at line 43 of file NaNInterface.h.

Referenced by NaNInterface::getNaN().

◆ _gamma

Real StiffenedGasFluidProperties::_gamma
protected

◆ _k

Real StiffenedGasFluidProperties::_k
protected

Definition at line 106 of file StiffenedGasFluidProperties.h.

Referenced by k_from_p_T(), and k_from_v_e().

◆ _molar_mass

Real StiffenedGasFluidProperties::_molar_mass
protected

Definition at line 107 of file StiffenedGasFluidProperties.h.

Referenced by molarMass().

◆ _moose_object

const MooseObject* NaNInterface::_moose_object
protectedinherited

Definition at line 40 of file NaNInterface.h.

Referenced by NaNInterface::getNaN(), and NaNInterface::NaNInterface().

◆ _mu

Real StiffenedGasFluidProperties::_mu
protected

Definition at line 105 of file StiffenedGasFluidProperties.h.

Referenced by mu_from_p_T(), and mu_from_v_e().

◆ _p_inf

Real StiffenedGasFluidProperties::_p_inf
protected

◆ _q

Real StiffenedGasFluidProperties::_q
protected

◆ _q_prime

Real StiffenedGasFluidProperties::_q_prime
protected

◆ _R

const Real FluidProperties::_R = 8.3144598
staticinherited

◆ _rho_c

Real StiffenedGasFluidProperties::_rho_c
protected

Definition at line 110 of file StiffenedGasFluidProperties.h.

Referenced by criticalDensity(), and v_e_spndl_from_T().

◆ _T_c

Real StiffenedGasFluidProperties::_T_c
protected

Definition at line 109 of file StiffenedGasFluidProperties.h.

Referenced by criticalTemperature().

◆ _T_c2k

const Real FluidProperties::_T_c2k
protectedinherited

◆ h [1/2]

e e e e SinglePhaseFluidProperties::h
inherited

◆ h [2/2]

e e e e p h T T T T T v v v SinglePhaseFluidProperties::h
inherited

Definition at line 183 of file SinglePhaseFluidProperties.h.

◆ p [1/6]

e e e e p h SinglePhaseFluidProperties::p
inherited

Definition at line 167 of file SinglePhaseFluidProperties.h.

Referenced by c_from_v_e(), HeliumFluidProperties::c_from_v_e(), IdealGasFluidProperties::cp_from_p_T(), IdealGasFluidProperties::cv_from_p_T(), e_from_p_rho(), IdealGasFluidProperties::e_from_p_rho(), e_from_p_T(), IdealGasFluidProperties::e_from_p_T(), g_from_v_e(), IdealGasFluidProperties::g_from_v_e(), TabulatedFluidProperties::generateTabulatedData(), h_from_p_T(), IdealGasFluidProperties::h_from_p_T(), Water97FluidProperties::henryConstant(), IdealGasFluidProperties::k_from_p_T(), p_from_h_s(), IdealGasFluidProperties::p_from_h_s(), p_from_T_v(), IdealGasFluidProperties::p_from_T_v(), IdealGasFluidProperties::p_from_v_e(), p_from_v_e(), HeliumFluidProperties::p_from_v_e(), FlinakFluidProperties::p_from_v_e(), FlibeFluidProperties::p_from_v_e(), SinglePhaseFluidProperties::rho_e_from_p_T(), rho_from_p_s(), IdealGasFluidProperties::rho_from_p_s(), rho_from_p_T(), IdealGasFluidProperties::rho_from_p_T(), SinglePhaseFluidProperties::rho_mu_from_p_T(), s_from_h_p(), IdealGasFluidProperties::s_from_h_p(), s_from_p_T(), IdealGasFluidProperties::s_from_p_T(), SimpleFluidProperties::s_from_p_T(), Water97FluidProperties::s_from_p_T(), TabulatedFluidProperties::s_from_p_T(), IdealGasFluidProperties::s_from_T_v(), s_from_v_e(), IdealGasFluidProperties::s_from_v_e(), Water97FluidProperties::T_from_p_h(), FlinakFluidProperties::T_from_v_e(), FlibeFluidProperties::T_from_v_e(), Water97FluidProperties::vaporPressure(), SinglePhaseFluidProperties::vaporPressure(), Water97FluidProperties::vaporTemperature(), SinglePhaseFluidProperties::vaporTemperature(), and TabulatedFluidProperties::writeTabulatedData().

◆ p [2/6]

e e e e p h T T SinglePhaseFluidProperties::p
inherited

Definition at line 171 of file SinglePhaseFluidProperties.h.

◆ p [3/6]

e e e e p h T T T SinglePhaseFluidProperties::p
inherited

Definition at line 173 of file SinglePhaseFluidProperties.h.

◆ p [4/6]

e e e e p h T T T T SinglePhaseFluidProperties::p
inherited

Definition at line 175 of file SinglePhaseFluidProperties.h.

◆ p [5/6]

e e e e p h T T T T T v v v s SinglePhaseFluidProperties::p
inherited

Definition at line 185 of file SinglePhaseFluidProperties.h.

◆ p [6/6]

e e e e p h T T T T T v v v s h SinglePhaseFluidProperties::p
inherited

Definition at line 187 of file SinglePhaseFluidProperties.h.

◆ propfuncWithDefault

e e e e p h T T T T T v v v s h T e SinglePhaseFluidProperties::propfuncWithDefault(gamma, p, T)
inherited

Definition at line 190 of file SinglePhaseFluidProperties.h.

◆ rho

e e e e p h T SinglePhaseFluidProperties::rho
inherited

◆ T [1/3]

e e e e p h T T T T T SinglePhaseFluidProperties::T
inherited

Definition at line 177 of file SinglePhaseFluidProperties.h.

Referenced by IdealGasFluidProperties::c_from_p_T(), IdealGasFluidProperties::c_from_v_e(), HeliumFluidProperties::c_from_v_e(), IdealGasFluidProperties::cp_from_p_T(), IdealGasFluidProperties::cv_from_p_T(), e_from_p_T(), IdealGasFluidProperties::e_from_p_T(), e_from_T_v(), IdealGasFluidProperties::e_from_T_v(), g_from_v_e(), IdealGasFluidProperties::g_from_v_e(), h_from_p_T(), IdealGasFluidProperties::h_from_p_T(), h_from_T_v(), IdealGasFluidProperties::h_from_T_v(), Water97FluidProperties::henryConstant(), IdealGasFluidProperties::k_from_p_T(), HeliumFluidProperties::k_from_v_e(), IdealGasFluidProperties::mu_from_p_T(), p_from_T_v(), IdealGasFluidProperties::p_from_T_v(), HeliumFluidProperties::p_from_v_e(), FlibeFluidProperties::p_from_v_e(), FlinakFluidProperties::p_from_v_e(), SinglePhaseFluidProperties::rho_e_from_p_T(), rho_from_p_s(), IdealGasFluidProperties::rho_from_p_s(), rho_from_p_T(), IdealGasFluidProperties::rho_from_p_T(), SinglePhaseFluidProperties::rho_mu_from_p_T(), s_from_p_T(), IdealGasFluidProperties::s_from_p_T(), SimpleFluidProperties::s_from_p_T(), Water97FluidProperties::s_from_p_T(), TabulatedFluidProperties::s_from_p_T(), s_from_T_v(), IdealGasFluidProperties::s_from_T_v(), s_from_v_e(), IdealGasFluidProperties::s_from_v_e(), IdealGasFluidProperties::T_from_p_h(), Water97FluidProperties::T_from_p_h(), T_from_v_e(), IdealGasFluidProperties::T_from_v_e(), FlibeFluidProperties::T_from_v_e(), FlinakFluidProperties::T_from_v_e(), HeliumFluidProperties::T_from_v_e(), SinglePhaseFluidProperties::vaporPressure(), Water97FluidProperties::vaporTemperature(), and SinglePhaseFluidProperties::vaporTemperature().

◆ T [2/3]

e e e e p h T T T T T v SinglePhaseFluidProperties::T
inherited

Definition at line 179 of file SinglePhaseFluidProperties.h.

◆ T [3/3]

e e e e p h T T T T T v v SinglePhaseFluidProperties::T
inherited

Definition at line 181 of file SinglePhaseFluidProperties.h.

◆ v [1/6]

SinglePhaseFluidProperties::v
inherited

Definition at line 155 of file SinglePhaseFluidProperties.h.

Referenced by c_from_v_e(), IdealGasFluidProperties::c_from_v_e(), HeliumFluidProperties::c_from_v_e(), cp_from_v_e(), IdealGasFluidProperties::cp_from_v_e(), FlibeFluidProperties::cp_from_v_e(), FlinakFluidProperties::cp_from_v_e(), HeliumFluidProperties::cp_from_v_e(), FlibeFluidProperties::cv_from_p_T(), FlinakFluidProperties::cv_from_p_T(), IdealGasFluidProperties::cv_from_v_e(), FlibeFluidProperties::cv_from_v_e(), FlinakFluidProperties::cv_from_v_e(), HeliumFluidProperties::cv_from_v_e(), FlibeFluidProperties::e_from_p_T(), FlinakFluidProperties::e_from_p_T(), e_from_T_v(), IdealGasFluidProperties::e_from_v_h(), e_from_v_h(), g_from_v_e(), IdealGasFluidProperties::g_from_v_e(), FlibeFluidProperties::k_from_v_e(), FlinakFluidProperties::k_from_v_e(), HeliumFluidProperties::k_from_v_e(), FlibeFluidProperties::mu_from_v_e(), FlinakFluidProperties::mu_from_v_e(), HeliumFluidProperties::mu_from_v_e(), p_from_T_v(), IdealGasFluidProperties::p_from_T_v(), IdealGasFluidProperties::p_from_v_e(), p_from_v_e(), HeliumFluidProperties::p_from_v_e(), FlibeFluidProperties::p_from_v_e(), FlinakFluidProperties::p_from_v_e(), s_from_T_v(), IdealGasFluidProperties::s_from_T_v(), s_from_v_e(), IdealGasFluidProperties::s_from_v_e(), T_from_v_e(), IdealGasFluidProperties::T_from_v_e(), FlinakFluidProperties::T_from_v_e(), FlibeFluidProperties::T_from_v_e(), HeliumFluidProperties::T_from_v_e(), v_e_spndl_from_T(), IdealGasFluidProperties::v_e_spndl_from_T(), FlibeFluidProperties::v_from_p_T(), and FlinakFluidProperties::v_from_p_T().

◆ v [2/6]

e SinglePhaseFluidProperties::v
inherited

Definition at line 157 of file SinglePhaseFluidProperties.h.

◆ v [3/6]

e e SinglePhaseFluidProperties::v
inherited

Definition at line 159 of file SinglePhaseFluidProperties.h.

◆ v [4/6]

e e e SinglePhaseFluidProperties::v
inherited

Definition at line 161 of file SinglePhaseFluidProperties.h.

◆ v [5/6]

e e e e p SinglePhaseFluidProperties::v
inherited

Definition at line 165 of file SinglePhaseFluidProperties.h.

◆ v [6/6]

e e e e p h T T T T T v v v s h T SinglePhaseFluidProperties::v
inherited

Definition at line 189 of file SinglePhaseFluidProperties.h.


The documentation for this class was generated from the following files:
StiffenedGasFluidProperties::_e_c
Real _e_c
Definition: StiffenedGasFluidProperties.h:111
StiffenedGasFluidProperties::_mu
Real _mu
Definition: StiffenedGasFluidProperties.h:105
StiffenedGasFluidProperties::_cp
Real _cp
Definition: StiffenedGasFluidProperties.h:103
pow
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
Definition: ExpressionBuilder.h:673
SinglePhaseFluidProperties::v
v
Definition: SinglePhaseFluidProperties.h:155
StiffenedGasFluidProperties::s_from_v_e
virtual Real s_from_v_e(Real v, Real e) const override
Definition: StiffenedGasFluidProperties.C:163
StiffenedGasFluidProperties::_molar_mass
Real _molar_mass
Definition: StiffenedGasFluidProperties.h:107
StiffenedGasFluidProperties::h_from_p_T
virtual Real h_from_p_T(Real p, Real T) const override
Definition: StiffenedGasFluidProperties.C:442
StiffenedGasFluidProperties::e_from_T_v
virtual Real e_from_T_v(Real T, Real v) const override
Definition: StiffenedGasFluidProperties.C:368
StiffenedGasFluidProperties::_rho_c
Real _rho_c
Definition: StiffenedGasFluidProperties.h:110
NaNInterface::_moose_object
const MooseObject * _moose_object
Definition: NaNInterface.h:40
StiffenedGasFluidProperties::_T_c
Real _T_c
Definition: StiffenedGasFluidProperties.h:109
NaNInterface::_emit_on_nan
enum NaNMessage _emit_on_nan
Raise mooseWarning or mooseError?
Definition: NaNInterface.h:43
StiffenedGasFluidProperties::e_from_p_T
virtual Real e_from_p_T(Real p, Real T) const override
Definition: StiffenedGasFluidProperties.C:456
StiffenedGasFluidProperties::T_from_v_e
virtual Real T_from_v_e(Real v, Real e) const override
Definition: StiffenedGasFluidProperties.C:75
SinglePhaseFluidProperties::SinglePhaseFluidProperties
SinglePhaseFluidProperties(const InputParameters &parameters)
Definition: SinglePhaseFluidProperties.C:22
NaNInterface::NAN_MESSAGE_ERROR
Definition: NaNInterface.h:37
StiffenedGasFluidProperties::k_from_p_T
virtual Real k_from_p_T(Real p, Real T) const override
Definition: StiffenedGasFluidProperties.C:577
StiffenedGasFluidProperties::_allow_nonphysical_states
bool _allow_nonphysical_states
Definition: StiffenedGasFluidProperties.h:96
SinglePhaseFluidProperties::T
e e e e p h T T T T T T
Definition: SinglePhaseFluidProperties.h:177
StiffenedGasFluidProperties::mu_from_p_T
virtual Real mu_from_p_T(Real p, Real T) const override
Definition: StiffenedGasFluidProperties.C:563
SinglePhaseFluidProperties::rho
e e e e p h T rho
Definition: SinglePhaseFluidProperties.h:169
SinglePhaseFluidProperties::vaporPressure
virtual Real vaporPressure(Real T) const
Vapor pressure.
Definition: SinglePhaseFluidProperties.C:177
SinglePhaseFluidProperties::vaporTemperature
virtual Real vaporTemperature(Real p) const
Vapor temperature.
Definition: SinglePhaseFluidProperties.C:212
NaNInterface::NAN_MESSAGE_NONE
Definition: NaNInterface.h:35
name
const std::string name
Definition: Setup.h:21
StiffenedGasFluidProperties::p_from_h_s
virtual Real p_from_h_s(Real h, Real s) const override
Definition: StiffenedGasFluidProperties.C:470
NaNInterface::NAN_MESSAGE_WARNING
Definition: NaNInterface.h:36
StiffenedGasFluidProperties::cp_from_p_T
virtual Real cp_from_p_T(Real p, Real T) const override
Definition: StiffenedGasFluidProperties.C:549
StiffenedGasFluidProperties::_p_inf
Real _p_inf
Definition: StiffenedGasFluidProperties.h:102
StiffenedGasFluidProperties::_q
Real _q
Definition: StiffenedGasFluidProperties.h:100
StiffenedGasFluidProperties::_k
Real _k
Definition: StiffenedGasFluidProperties.h:106
StiffenedGasFluidProperties::_gamma
Real _gamma
Definition: StiffenedGasFluidProperties.h:98
StiffenedGasFluidProperties::cp_from_v_e
virtual Real cp_from_v_e(Real v, Real e) const override
Definition: StiffenedGasFluidProperties.C:145
SinglePhaseFluidProperties::fluidPropError
void fluidPropError(Args... args) const
Definition: SinglePhaseFluidProperties.h:326
StiffenedGasFluidProperties::e_from_p_rho
virtual Real e_from_p_rho(Real p, Real rho) const override
Definition: StiffenedGasFluidProperties.C:352
NS::temperature
const std::string temperature
Definition: NS.h:26
NaNInterface::getNaN
Real getNaN() const
Produces errors, warnings, or just quiet NaNs.
Definition: NaNInterface.h:48
StiffenedGasFluidProperties::_q_prime
Real _q_prime
Definition: StiffenedGasFluidProperties.h:101
FluidProperties::_allow_imperfect_jacobians
const bool _allow_imperfect_jacobians
Flag to set unimplemented Jacobian entries to zero.
Definition: FluidProperties.h:48
StiffenedGasFluidProperties::_cv
Real _cv
Definition: StiffenedGasFluidProperties.h:99
StiffenedGasFluidProperties::cv_from_p_T
virtual Real cv_from_p_T(Real p, Real T) const override
Definition: StiffenedGasFluidProperties.C:535
SinglePhaseFluidProperties::p
e e e e p h p
Definition: SinglePhaseFluidProperties.h:167
StiffenedGasFluidProperties::p_from_v_e
virtual Real p_from_v_e(Real v, Real e) const override
Definition: StiffenedGasFluidProperties.C:61
StiffenedGasFluidProperties::rho_from_p_T
virtual Real rho_from_p_T(Real p, Real T) const override
Definition: StiffenedGasFluidProperties.C:323
NS::pressure
const std::string pressure
Definition: NS.h:25
SinglePhaseFluidProperties::h
e e e e h
Definition: SinglePhaseFluidProperties.h:163
NaNInterface::NaNInterface
NaNInterface(const MooseObject *moose_object)
Definition: NaNInterface.C:33