Class for fluid properties of an arbitrary vapor mixture. More...
#include <IdealRealGasMixtureFluidProperties.h>
Public Member Functions | |
IdealRealGasMixtureFluidProperties (const InputParameters ¶meters) | |
virtual unsigned int | getNumberOfSecondaryVapors () const override |
Number of secondary vapors (non-condensable components) More... | |
virtual Real | p_from_v_e (Real v, Real e, const std::vector< Real > &x) const override |
Pressure from specific volume and specific internal energy. More... | |
virtual void | p_from_v_e (Real v, Real e, const std::vector< Real > &x, Real &p, Real &dp_dv, Real &dp_de, std::vector< Real > &dp_dx) const override |
Pressure and its derivatives from specific volume and specific internal energy. More... | |
virtual Real | T_from_v_e (Real v, Real e, const std::vector< Real > &x) const override |
Temperature from specific volume and specific internal energy. More... | |
virtual void | T_from_v_e (Real v, Real e, const std::vector< Real > &x, Real &T, Real &dT_dv, Real &dT_de, std::vector< Real > &dT_dx) const override |
Temperature and its derivatives from specific volume and specific internal energy. More... | |
virtual Real | c_from_v_e (Real v, Real e, const std::vector< Real > &x) const override |
Speed of sound from specific volume and specific internal energy. More... | |
virtual void | c_from_v_e (Real v, Real e, const std::vector< Real > &x, Real &c, Real &dc_dv, Real &dc_de, std::vector< Real > &dc_dx) const override |
Speed of sound and its derivatives from specific volume and specific internal energy. More... | |
virtual Real | rho_from_p_T (Real p, Real T, const std::vector< Real > &x) const override |
Density from pressure and temperature. More... | |
virtual void | rho_from_p_T (Real p, Real T, const std::vector< Real > &x, Real &rho, Real &drho_dp, Real &drho_dT, std::vector< Real > &drho_dx) const override |
Density and its derivatives from pressure and temperature. More... | |
virtual Real | e_from_p_T (Real p, Real T, const std::vector< Real > &x) const override |
Specific internal energy from pressure and temperature. More... | |
virtual void | e_from_p_T (Real p, Real T, const std::vector< Real > &x, Real &e, Real &de_dp, Real &de_dT, std::vector< Real > &de_dx) const override |
Specific internal energy and its derivatives from pressure and temperature. More... | |
virtual Real | c_from_p_T (Real p, Real T, const std::vector< Real > &x) const override |
Speed of sound from pressure and temperature. More... | |
virtual void | c_from_p_T (Real p, Real T, const std::vector< Real > &x, Real &c, Real &dc_dp, Real &dc_dT, std::vector< Real > &dc_dx) const override |
Speed of sound and its derivatives from pressure and temperature. More... | |
virtual Real | cp_from_p_T (Real p, Real T, const std::vector< Real > &x) const override |
Isobaric heat capacity from pressure and temperature. More... | |
virtual Real | cv_from_p_T (Real p, Real T, const std::vector< Real > &x) const override |
Isochoric heat capacity from pressure and temperature. More... | |
virtual Real | mu_from_p_T (Real p, Real T, const std::vector< Real > &x) const override |
Dynamic viscosity from pressure and temperature. More... | |
virtual Real | k_from_p_T (Real p, Real T, const std::vector< Real > &x) const override |
Thermal conductivity from pressure and temperature. More... | |
virtual Real | v_from_p_T (Real p, Real T, const std::vector< Real > &x) const |
Specific volume from pressure and temperature. More... | |
virtual void | v_from_p_T (Real p, Real T, const std::vector< Real > &x, Real &v, Real &dv_dp, Real &dv_dT, std::vector< Real > &dv_dx) const |
Specific volume and its derivatives from pressure and temperature. More... | |
virtual Real | e_from_p_rho (Real p, Real rho, const std::vector< Real > &x) const override |
Specific internal energy from pressure and density. More... | |
virtual void | e_from_p_rho (Real p, Real rho, const std::vector< Real > &x, Real &e, Real &de_dp, Real &de_drho, std::vector< Real > &de_dx) const override |
Specific internal energy and its derivatives from pressure and density. More... | |
void | p_T_from_v_e (Real v, Real e, const std::vector< Real > &x, Real &p, Real &T) const |
Pressure and temperature from specific volume and specific internal energy. More... | |
void | p_T_from_v_e (Real v, Real e, const std::vector< Real > &x, Real &p, Real &dp_dv, Real &dp_de, std::vector< Real > &dp_dx, Real &T, Real &dT_dv, Real &dT_de, std::vector< Real > &dT_dx) const |
Pressure and temperature from specific volume and specific internal energy. More... | |
Real | T_from_p_v (Real p, Real v, const std::vector< Real > &x) const |
Temperature from pressure and specific volume. More... | |
void | T_from_p_v (Real p, Real v, const std::vector< Real > &x, Real &T, Real &dT_dp, Real &dT_dv, std::vector< Real > &dT_dx) const |
Temperature and its derivatives from pressure and specific volume. More... | |
Real | p_from_T_v (Real T, Real v, const std::vector< Real > &x) const |
Pressure from temperature and specific volume. More... | |
void | p_from_T_v (Real T, Real v, const std::vector< Real > &x, Real &p, Real &dp_dT, Real &dp_dv) const |
Pressure and its derivatives from temperature and specific volume. More... | |
void | p_from_T_v (Real T, Real v, const std::vector< Real > &x, Real &p, Real &dp_dT, Real &dp_dv, std::vector< Real > &dp_dx) const |
Pressure and its derivatives from temperature and specific volume. More... | |
Real | e_from_T_v (Real T, Real v, const std::vector< Real > &x) const |
Specific internal energy from temperature and specific volume. More... | |
void | e_from_T_v (Real T, Real v, const std::vector< Real > &x, Real &e, Real &de_dT, Real &de_dv, std::vector< Real > &de_dx) const |
Specific internal energy and its derivatives from temperature and specific volume. More... | |
void | s_from_T_v (Real T, Real v, const std::vector< Real > &x, Real &s, Real &ds_dT, Real &ds_dv) const |
Specific entropy and its derivatives from temperature and specific volume. More... | |
Real | c_from_T_v (Real T, Real v, const std::vector< Real > &x) const |
Speed of sound from temperature and specific volume. More... | |
void | c_from_T_v (Real T, Real v, const std::vector< Real > &x, Real &c, Real &dc_dT, Real &dc_dv, std::vector< Real > &dc_dx) const |
Speed of sound and its derivatives from temperature and specific volume. More... | |
Real | cp_from_T_v (Real T, Real v, const std::vector< Real > &x) const |
Isobaric heat capacity from temperature and specific volume. More... | |
Real | cv_from_T_v (Real T, Real v, const std::vector< Real > &x) const |
Isochoric heat capacity from temperature and specific volume. More... | |
Real | mu_from_T_v (Real T, Real v, const std::vector< Real > &x) const |
Dynamic viscosity from temperature and specific volume. More... | |
Real | k_from_T_v (Real T, Real v, const std::vector< Real > &x) const |
Thermal conductivity from temperature and specific volume. More... | |
Real | xs_prim_from_p_T (Real p, Real T, const std::vector< Real > &x) const |
Mass fraction of primary (condensable) component at saturation from pressure and temperature. More... | |
Real | primaryMassFraction (const std::vector< Real > &x) const |
Computes the mass fraction of the primary vapor given mass fractions of the secondary vapors. 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 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 | |
const SinglePhaseFluidProperties * | _fp_primary |
Primary vapor fluid properties. More... | |
std::vector< const SinglePhaseFluidProperties * > | _fp_secondary |
Secondary vapor fluid properties. More... | |
const std::vector< UserObjectName > | _fp_secondary_names |
Names of secondary vapor fluid properties. More... | |
const unsigned int | _n_secondary_vapors |
Number of secondary vapors. More... | |
const Real | _T_mix_max |
maximum temperature of all components 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... | |
const MooseObject * | _moose_object |
enum NaNMessage | _emit_on_nan |
Raise mooseWarning or mooseError? More... | |
Static Protected Attributes | |
constexpr static const Real | R_molar = 8.3144598 |
molar (or universal) gas constant More... | |
Class for fluid properties of an arbitrary vapor mixture.
Definition at line 26 of file IdealRealGasMixtureFluidProperties.h.
|
protectedinherited |
Enumerator | |
---|---|
NAN_MESSAGE_NONE | |
NAN_MESSAGE_WARNING | |
NAN_MESSAGE_ERROR |
Definition at line 33 of file NaNInterface.h.
IdealRealGasMixtureFluidProperties::IdealRealGasMixtureFluidProperties | ( | const InputParameters & | parameters | ) |
Definition at line 39 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Speed of sound from pressure and temperature.
[in] | p | pressure |
[in] | T | temperature |
[in] | x | vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 265 of file IdealRealGasMixtureFluidProperties.C.
Referenced by c_from_p_T().
|
overridevirtual |
Speed of sound and its derivatives from pressure and temperature.
[in] | p | pressure |
[in] | T | temperature |
[in] | x | vapor mass fraction values |
[out] | c | speed of sound |
[out] | dc_dp | derivative of speed of sound w.r.t. pressure |
[out] | dc_dT | derivative of speed of sound w.r.t. temperature |
[out] | dc_dx | derivative of speed of sound w.r.t. vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 283 of file IdealRealGasMixtureFluidProperties.C.
Real IdealRealGasMixtureFluidProperties::c_from_T_v | ( | Real | T, |
Real | v, | ||
const std::vector< Real > & | x | ||
) | const |
Speed of sound from temperature and specific volume.
[in] | T | temperature |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
Definition at line 756 of file IdealRealGasMixtureFluidProperties.C.
Referenced by c_from_T_v(), and c_from_v_e().
void IdealRealGasMixtureFluidProperties::c_from_T_v | ( | Real | T, |
Real | v, | ||
const std::vector< Real > & | x, | ||
Real & | c, | ||
Real & | dc_dT, | ||
Real & | dc_dv, | ||
std::vector< Real > & | dc_dx | ||
) | const |
Speed of sound and its derivatives from temperature and specific volume.
[in] | T | temperature |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
[out] | c | speed of sound |
[out] | dc_dT | derivative of speed of sound w.r.t. temperature |
[out] | dc_dv | derivative of speed of sound w.r.t. specific volume |
[out] | dc_dx | derivative of speed of sound w.r.t. vapor mass fraction values |
Definition at line 772 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Speed of sound from specific volume and specific internal energy.
[in] | v | specific volume |
[in] | e | specific internal energy |
[in] | x | vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 101 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Speed of sound and its derivatives from specific volume and specific internal energy.
[in] | v | specific volume |
[in] | e | specific internal energy |
[in] | x | vapor mass fraction values |
[out] | c | Speed of sound |
[out] | dc_dv | derivative of temperature w.r.t. specific volume |
[out] | dc_de | derivative of temperature w.r.t. specific internal energy |
[out] | dc_dx | derivative of temperature w.r.t. vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 109 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Isobaric heat capacity from pressure and temperature.
[in] | p | pressure |
[in] | T | temperature |
[in] | x | vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 325 of file IdealRealGasMixtureFluidProperties.C.
Real IdealRealGasMixtureFluidProperties::cp_from_T_v | ( | Real | T, |
Real | v, | ||
const std::vector< Real > & | x | ||
) | const |
Isobaric heat capacity from temperature and specific volume.
[in] | T | temperature |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
Definition at line 814 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Isochoric heat capacity from pressure and temperature.
[in] | p | pressure |
[in] | T | temperature |
[in] | x | vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 348 of file IdealRealGasMixtureFluidProperties.C.
Real IdealRealGasMixtureFluidProperties::cv_from_T_v | ( | Real | T, |
Real | v, | ||
const std::vector< Real > & | x | ||
) | const |
Isochoric heat capacity from temperature and specific volume.
[in] | T | temperature |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
Definition at line 836 of file IdealRealGasMixtureFluidProperties.C.
Referenced by cv_from_p_T().
|
overridevirtual |
Specific internal energy from pressure and density.
[in] | p | pressure |
[in] | rho | density |
[in] | x | vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 418 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Specific internal energy and its derivatives from pressure and density.
[in] | p | pressure |
[in] | rho | density |
[in] | x | vapor mass fraction values |
[out] | e | specific internal energy |
[out] | de_dp | derivative of specific internal energy w.r.t. pressure |
[out] | de_drho | derivative of specific internal energy w.r.t. density |
[out] | de_dx | derivative of specific internal energy w.r.t. vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 429 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Specific internal energy from pressure and temperature.
[in] | p | pressure |
[in] | T | temperature |
[in] | x | vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 232 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Specific internal energy and its derivatives from pressure and temperature.
[in] | p | pressure |
[in] | T | temperature |
[in] | x | vapor mass fraction values |
[out] | e | specific internal energy |
[out] | de_dp | derivative of specific internal energy w.r.t. pressure |
[out] | de_dT | derivative of specific internal energy w.r.t. temperature |
[out] | de_dx | derivative of specific internal energy w.r.t. vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 239 of file IdealRealGasMixtureFluidProperties.C.
Real IdealRealGasMixtureFluidProperties::e_from_T_v | ( | Real | T, |
Real | v, | ||
const std::vector< Real > & | x | ||
) | const |
Specific internal energy from temperature and specific volume.
[in] | T | temperature |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
Definition at line 666 of file IdealRealGasMixtureFluidProperties.C.
Referenced by c_from_v_e(), e_from_p_rho(), e_from_p_T(), and p_T_from_v_e().
void IdealRealGasMixtureFluidProperties::e_from_T_v | ( | Real | T, |
Real | v, | ||
const std::vector< Real > & | x, | ||
Real & | e, | ||
Real & | de_dT, | ||
Real & | de_dv, | ||
std::vector< Real > & | de_dx | ||
) | const |
Specific internal energy and its derivatives from temperature and specific volume.
[in] | T | temperature |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
[out] | e | specific internal energy |
[out] | de_dT | derivative of specific internal energy w.r.t. temperature |
[out] | de_dv | derivative of specific internal energy w.r.t. specific volume |
[out] | de_dx | derivative of specific internal energy w.r.t. vapor mass fraction values |
Definition at line 678 of file IdealRealGasMixtureFluidProperties.C.
|
inlinefinalvirtualinherited |
Definition at line 34 of file FluidProperties.h.
|
inlinefinalvirtualinherited |
Definition at line 36 of file FluidProperties.h.
|
inlineprotectedinherited |
Produces errors, warnings, or just quiet NaNs.
Definition at line 48 of file NaNInterface.h.
Referenced by StiffenedGasFluidProperties::c_from_v_e(), NaNInterface::getNaN(), NaNInterfaceTestFluidProperties::p_from_v_e(), StiffenedGasFluidProperties::rho_from_p_s(), StiffenedGasFluidProperties::rho_from_p_T(), StiffenedGasFluidProperties::s_from_h_p(), StiffenedGasFluidProperties::s_from_p_T(), StiffenedGasFluidProperties::s_from_v_e(), v_from_p_T(), and xs_prim_from_p_T().
|
inlineprotectedinherited |
Definition at line 51 of file NaNInterface.h.
|
inlineoverridevirtual |
Number of secondary vapors (non-condensable components)
Implements VaporMixtureFluidProperties.
Definition at line 36 of file IdealRealGasMixtureFluidProperties.h.
|
inlinefinalvirtualinherited |
Definition at line 35 of file FluidProperties.h.
|
overridevirtual |
Thermal conductivity from pressure and temperature.
[in] | p | pressure |
[in] | T | temperature |
[in] | x | vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 390 of file IdealRealGasMixtureFluidProperties.C.
Real IdealRealGasMixtureFluidProperties::k_from_T_v | ( | Real | T, |
Real | v, | ||
const std::vector< Real > & | x | ||
) | const |
Thermal conductivity from temperature and specific volume.
[in] | T | temperature |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
Definition at line 874 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Dynamic viscosity from pressure and temperature.
[in] | p | pressure |
[in] | T | temperature |
[in] | x | vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 362 of file IdealRealGasMixtureFluidProperties.C.
Real IdealRealGasMixtureFluidProperties::mu_from_T_v | ( | Real | T, |
Real | v, | ||
const std::vector< Real > & | x | ||
) | const |
Dynamic viscosity from temperature and specific volume.
[in] | T | temperature |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
Definition at line 848 of file IdealRealGasMixtureFluidProperties.C.
Real IdealRealGasMixtureFluidProperties::p_from_T_v | ( | Real | T, |
Real | v, | ||
const std::vector< Real > & | x | ||
) | const |
Pressure from temperature and specific volume.
[in] | T | temperature |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
Definition at line 580 of file IdealRealGasMixtureFluidProperties.C.
Referenced by c_from_p_T(), c_from_T_v(), cp_from_p_T(), cp_from_T_v(), e_from_p_rho(), e_from_p_T(), p_T_from_v_e(), T_from_p_v(), and v_from_p_T().
void IdealRealGasMixtureFluidProperties::p_from_T_v | ( | Real | T, |
Real | v, | ||
const std::vector< Real > & | x, | ||
Real & | p, | ||
Real & | dp_dT, | ||
Real & | dp_dv | ||
) | const |
Pressure and its derivatives from temperature and specific volume.
[in] | T | temperature |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
[out] | p | pressure |
[out] | dp_dT | derivative of pressure w.r.t. temperature |
[out] | dp_dv | derivative of pressure w.r.t. specific volume |
Definition at line 592 of file IdealRealGasMixtureFluidProperties.C.
void IdealRealGasMixtureFluidProperties::p_from_T_v | ( | Real | T, |
Real | v, | ||
const std::vector< Real > & | x, | ||
Real & | p, | ||
Real & | dp_dT, | ||
Real & | dp_dv, | ||
std::vector< Real > & | dp_dx | ||
) | const |
Pressure and its derivatives from temperature and specific volume.
[in] | T | temperature |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
[out] | p | pressure |
[out] | dp_dT | derivative of pressure w.r.t. temperature |
[out] | dp_dv | derivative of pressure w.r.t. specific volume |
[out] | dp_dx | derivative of pressure w.r.t. vapor mass fraction values |
Definition at line 616 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Pressure from specific volume and specific internal energy.
[in] | v | specific volume |
[in] | e | specific internal energy |
[in] | x | vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 55 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Pressure and its derivatives from specific volume and specific internal energy.
[in] | v | specific volume |
[in] | e | specific internal energy |
[in] | x | vapor mass fraction values |
[out] | p | pressure |
[out] | dp_dv | derivative of pressure w.r.t. specific volume |
[out] | dp_de | derivative of pressure w.r.t. specific internal energy |
[out] | dp_dx | derivative of pressure w.r.t. vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 64 of file IdealRealGasMixtureFluidProperties.C.
void IdealRealGasMixtureFluidProperties::p_T_from_v_e | ( | Real | v, |
Real | e, | ||
const std::vector< Real > & | x, | ||
Real & | p, | ||
Real & | dp_dv, | ||
Real & | dp_de, | ||
std::vector< Real > & | dp_dx, | ||
Real & | T, | ||
Real & | dT_dv, | ||
Real & | dT_de, | ||
std::vector< Real > & | dT_dx | ||
) | const |
Pressure and temperature from specific volume and specific internal energy.
[in] | v | specific volume |
[in] | e | specific internal energy |
[in] | x | vapor mass fraction values |
[out] | p | pressure |
[out] | dp_dv | derivative of pressure w.r.t. specific volume |
[out] | dp_de | derivative of pressure w.r.t. specific internal energy |
[out] | dp_dx | derivative of pressure w.r.t. vapor mass fraction values |
[out] | T | temperature |
[out] | dT_dv | derivative of temperature w.r.t. specific volume |
[out] | dT_de | derivative of temperature w.r.t. specific internal energy |
[out] | dT_dx | derivative of temperature w.r.t. vapor mass fraction values |
Definition at line 486 of file IdealRealGasMixtureFluidProperties.C.
void IdealRealGasMixtureFluidProperties::p_T_from_v_e | ( | Real | v, |
Real | e, | ||
const std::vector< Real > & | x, | ||
Real & | p, | ||
Real & | T | ||
) | const |
Pressure and temperature from specific volume and specific internal energy.
[in] | v | specific volume |
[in] | e | specific internal energy |
[in] | x | vapor mass fraction values |
[out] | p | pressure |
[out] | T | temperature |
Definition at line 457 of file IdealRealGasMixtureFluidProperties.C.
Referenced by c_from_v_e(), p_from_v_e(), p_T_from_v_e(), and T_from_v_e().
|
inherited |
Computes the mass fraction of the primary vapor given mass fractions of the secondary vapors.
This uses the relation
\[ \sum\limits_i^N x_i = 1 , \]
where the mass fractions \(x_i, i=2\ldots N\) correspond to the secondary vapors.
Definition at line 29 of file VaporMixtureFluidProperties.C.
Referenced by cp_from_p_T(), cp_from_T_v(), cv_from_p_T(), cv_from_T_v(), e_from_T_v(), k_from_p_T(), k_from_T_v(), mu_from_p_T(), mu_from_T_v(), p_from_T_v(), p_T_from_v_e(), s_from_T_v(), T_from_p_v(), v_from_p_T(), and xs_prim_from_p_T().
|
overridevirtual |
Density from pressure and temperature.
[in] | p | pressure |
[in] | T | temperature |
[in] | x | vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 142 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Density and its derivatives from pressure and temperature.
[in] | p | pressure |
[in] | T | temperature |
[in] | x | vapor mass fraction values |
[out] | rho | density |
[out] | drho_dp | derivative of density w.r.t. pressure |
[out] | drho_dT | derivative of density w.r.t. temperature |
[out] | drho_dx | derivative of density w.r.t. vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 148 of file IdealRealGasMixtureFluidProperties.C.
void IdealRealGasMixtureFluidProperties::s_from_T_v | ( | Real | T, |
Real | v, | ||
const std::vector< Real > & | x, | ||
Real & | s, | ||
Real & | ds_dT, | ||
Real & | ds_dv | ||
) | const |
Specific entropy and its derivatives from temperature and specific volume.
[in] | T | temperature |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
[out] | s | specific entropy |
[out] | ds_dT | derivative of specific entropy w.r.t. temperature |
[out] | ds_dv | derivative of specific entropy w.r.t. specific volume |
[out] | ds_dx | derivative of specific entropy w.r.t. vapor mass fraction values |
Definition at line 732 of file IdealRealGasMixtureFluidProperties.C.
Referenced by c_from_p_T(), and c_from_T_v().
|
inlinefinalvirtualinherited |
Definition at line 39 of file FluidProperties.h.
Real IdealRealGasMixtureFluidProperties::T_from_p_v | ( | Real | p, |
Real | v, | ||
const std::vector< Real > & | x | ||
) | const |
Temperature from pressure and specific volume.
[in] | p | pressure |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
Definition at line 525 of file IdealRealGasMixtureFluidProperties.C.
Referenced by e_from_p_rho(), and T_from_p_v().
void IdealRealGasMixtureFluidProperties::T_from_p_v | ( | Real | p, |
Real | v, | ||
const std::vector< Real > & | x, | ||
Real & | T, | ||
Real & | dT_dp, | ||
Real & | dT_dv, | ||
std::vector< Real > & | dT_dx | ||
) | const |
Temperature and its derivatives from pressure and specific volume.
[in] | p | pressure |
[in] | v | specific volume |
[in] | x | vapor mass fraction values |
[out] | T | temperature |
[out] | dT_dp | derivative of temperature w.r.t. pressure |
[out] | dT_dv | derivative of temperature w.r.t. specific volume |
[out] | dT_dx | derivative of temperature w.r.t. vapor mass fraction values |
Definition at line 553 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Temperature from specific volume and specific internal energy.
[in] | v | specific volume |
[in] | e | specific internal energy |
[in] | x | vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 78 of file IdealRealGasMixtureFluidProperties.C.
|
overridevirtual |
Temperature and its derivatives from specific volume and specific internal energy.
[in] | v | specific volume |
[in] | e | specific internal energy |
[in] | x | vapor mass fraction values |
[out] | T | temperature |
[out] | dT_dv | derivative of temperature w.r.t. specific volume |
[out] | dT_de | derivative of temperature w.r.t. specific internal energy |
[out] | dT_dx | derivative of temperature w.r.t. vapor mass fraction values |
Implements VaporMixtureFluidProperties.
Definition at line 87 of file IdealRealGasMixtureFluidProperties.C.
|
inlinefinalvirtualinherited |
Definition at line 38 of file FluidProperties.h.
|
virtual |
Specific volume from pressure and temperature.
[in] | p | pressure |
[in] | T | temperature |
[in] | x | vapor mass fraction values |
Definition at line 170 of file IdealRealGasMixtureFluidProperties.C.
Referenced by c_from_p_T(), cp_from_p_T(), cv_from_p_T(), e_from_p_T(), k_from_p_T(), mu_from_p_T(), rho_from_p_T(), and v_from_p_T().
|
virtual |
Specific volume and its derivatives from pressure and temperature.
[in] | p | pressure |
[in] | T | temperature |
[in] | x | vapor mass fraction values |
[out] | v | specific volume |
[out] | dv_dp | derivative of specific volume w.r.t. pressure |
[out] | dv_dT | derivative of specific volume w.r.t. temperature |
[out] | dv_dx | derivative of specific volume w.r.t. vapor mass fraction values |
Definition at line 208 of file IdealRealGasMixtureFluidProperties.C.
Real IdealRealGasMixtureFluidProperties::xs_prim_from_p_T | ( | Real | p, |
Real | T, | ||
const std::vector< Real > & | x | ||
) | const |
Mass fraction of primary (condensable) component at saturation from pressure and temperature.
[in] | T | temperature |
[in] | p | pressure |
Definition at line 900 of file IdealRealGasMixtureFluidProperties.C.
|
protectedinherited |
Flag to set unimplemented Jacobian entries to zero.
Definition at line 48 of file FluidProperties.h.
Referenced by SinglePhaseFluidProperties::fluidPropError().
|
protectedinherited |
Raise mooseWarning or mooseError?
Definition at line 43 of file NaNInterface.h.
Referenced by NaNInterface::getNaN().
|
protected |
Primary vapor fluid properties.
Definition at line 542 of file IdealRealGasMixtureFluidProperties.h.
Referenced by cp_from_p_T(), cp_from_T_v(), cv_from_p_T(), cv_from_T_v(), e_from_T_v(), IdealRealGasMixtureFluidProperties(), k_from_p_T(), k_from_T_v(), mu_from_p_T(), mu_from_T_v(), p_from_T_v(), p_T_from_v_e(), s_from_T_v(), T_from_p_v(), v_from_p_T(), and xs_prim_from_p_T().
|
protected |
Secondary vapor fluid properties.
Definition at line 544 of file IdealRealGasMixtureFluidProperties.h.
Referenced by cp_from_p_T(), cp_from_T_v(), cv_from_p_T(), cv_from_T_v(), e_from_T_v(), IdealRealGasMixtureFluidProperties(), k_from_p_T(), k_from_T_v(), mu_from_p_T(), mu_from_T_v(), p_from_T_v(), s_from_T_v(), v_from_p_T(), and xs_prim_from_p_T().
|
protected |
Names of secondary vapor fluid properties.
Definition at line 546 of file IdealRealGasMixtureFluidProperties.h.
Referenced by IdealRealGasMixtureFluidProperties().
|
protectedinherited |
Definition at line 40 of file NaNInterface.h.
Referenced by NaNInterface::getNaN(), and NaNInterface::NaNInterface().
|
protected |
Number of secondary vapors.
Definition at line 548 of file IdealRealGasMixtureFluidProperties.h.
Referenced by c_from_p_T(), c_from_T_v(), c_from_v_e(), cp_from_p_T(), cp_from_T_v(), cv_from_p_T(), cv_from_T_v(), e_from_p_rho(), e_from_p_T(), e_from_T_v(), getNumberOfSecondaryVapors(), IdealRealGasMixtureFluidProperties(), k_from_p_T(), k_from_T_v(), mu_from_p_T(), mu_from_T_v(), p_from_T_v(), p_from_v_e(), p_T_from_v_e(), rho_from_p_T(), s_from_T_v(), T_from_p_v(), T_from_v_e(), v_from_p_T(), and xs_prim_from_p_T().
|
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().
|
protected |
maximum temperature of all components
Definition at line 552 of file IdealRealGasMixtureFluidProperties.h.
Referenced by p_T_from_v_e(), and T_from_p_v().
|
staticconstexprprotected |
molar (or universal) gas constant
Definition at line 550 of file IdealRealGasMixtureFluidProperties.h.
Referenced by v_from_p_T(), and xs_prim_from_p_T().