www.mooseframework.org
Public Member Functions | List of all members
VaporMixtureFluidProperties Class Referenceabstract

Base class for fluid properties of vapor mixtures. More...

#include <VaporMixtureFluidProperties.h>

Inheritance diagram for VaporMixtureFluidProperties:
[legend]

Public Member Functions

 VaporMixtureFluidProperties (const InputParameters &parameters)
 
virtual ~VaporMixtureFluidProperties ()
 
virtual unsigned int getNumberOfSecondaryVapors () const =0
 Returns the number of secondary vapors. More...
 
virtual Real p_from_v_e (Real v, Real e, const std::vector< Real > &x) const =0
 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 =0
 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 =0
 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 =0
 Temperature 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 =0
 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 =0
 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 =0
 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 =0
 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 =0
 Sound speed 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 =0
 Sound speed and its derivatives from pressure and temperature. More...
 
virtual Real cp_from_p_T (Real p, Real T, const std::vector< Real > &x) const =0
 Isobaric (constant-pressure) specific heat from pressure and temperature. More...
 
virtual Real cv_from_p_T (Real p, Real T, const std::vector< Real > &x) const =0
 Isochoric (constant-volume) specific heat from pressure and temperature. More...
 
virtual Real mu_from_p_T (Real p, Real T, const std::vector< Real > &x) const =0
 Dynamic viscosity from pressure and temperature. More...
 
virtual Real k_from_p_T (Real p, Real T, const std::vector< Real > &x) const =0
 Thermal conductivity 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
 

Detailed Description

Base class for fluid properties of vapor mixtures.

Each interface, in addition to requiring 2 intensive thermodynamic properties, requires the mass fractions of N-1 vapors in the mixture, where N is the number of vapors in the mixture. The mass fraction of the remaining vapor is inferred from the fact that the mass fractions sum to unity.

Definition at line 28 of file VaporMixtureFluidProperties.h.

Constructor & Destructor Documentation

◆ VaporMixtureFluidProperties()

VaporMixtureFluidProperties::VaporMixtureFluidProperties ( const InputParameters &  parameters)

Definition at line 21 of file VaporMixtureFluidProperties.C.

22  : FluidProperties(parameters)
23 {
24 }
FluidProperties(const InputParameters &parameters)

◆ ~VaporMixtureFluidProperties()

VaporMixtureFluidProperties::~VaporMixtureFluidProperties ( )
virtual

Definition at line 26 of file VaporMixtureFluidProperties.C.

26 {}

Member Function Documentation

◆ c_from_p_T() [1/2]

virtual Real VaporMixtureFluidProperties::c_from_p_T ( Real  p,
Real  T,
const std::vector< Real > &  x 
) const
pure virtual

Sound speed from pressure and temperature.

Returns
Sound speed
Parameters
[in]ppressure
[in]Ttemperature
[in]xvapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ c_from_p_T() [2/2]

virtual void VaporMixtureFluidProperties::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
pure virtual

Sound speed and its derivatives from pressure and temperature.

Parameters
[in]ppressure
[in]Ttemperature
[in]xvapor mass fraction values
[out]csound speed
[out]dc_dpderivative of sound speed w.r.t. pressure
[out]dc_dTderivative of sound speed w.r.t. temperature
[out]dc_dxderivative of sound speed w.r.t. vapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ cp_from_p_T()

virtual Real VaporMixtureFluidProperties::cp_from_p_T ( Real  p,
Real  T,
const std::vector< Real > &  x 
) const
pure virtual

Isobaric (constant-pressure) specific heat from pressure and temperature.

Returns
Isobaric (constant-pressure) specific heat
Parameters
[in]ppressure
[in]Ttemperature
[in]xvapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ cv_from_p_T()

virtual Real VaporMixtureFluidProperties::cv_from_p_T ( Real  p,
Real  T,
const std::vector< Real > &  x 
) const
pure virtual

Isochoric (constant-volume) specific heat from pressure and temperature.

Returns
Isochoric (constant-volume) specific heat
Parameters
[in]ppressure
[in]Ttemperature
[in]xvapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ e_from_p_T() [1/2]

virtual Real VaporMixtureFluidProperties::e_from_p_T ( Real  p,
Real  T,
const std::vector< Real > &  x 
) const
pure virtual

Specific internal energy from pressure and temperature.

Parameters
[in]ppressure
[in]Ttemperature
[in]xvapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ e_from_p_T() [2/2]

virtual void VaporMixtureFluidProperties::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
pure virtual

Specific internal energy and its derivatives from pressure and temperature.

Parameters
[in]ppressure
[in]Ttemperature
[in]xvapor mass fraction values
[in]xvapor mass fraction values
[out]especific internal energy
[out]de_dpderivative of specific internal energy w.r.t. pressure
[out]de_dTderivative of specific internal energy w.r.t. temperature
[out]de_dxderivative of specific internal energy w.r.t. vapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ execute()

virtual void FluidProperties::execute ( )
inlinefinalvirtualinherited

Definition at line 27 of file FluidProperties.h.

27 {}

◆ finalize()

virtual void FluidProperties::finalize ( )
inlinefinalvirtualinherited

Definition at line 29 of file FluidProperties.h.

29 {}

◆ getNumberOfSecondaryVapors()

virtual unsigned int VaporMixtureFluidProperties::getNumberOfSecondaryVapors ( ) const
pure virtual

Returns the number of secondary vapors.

Implemented in GeneralVaporMixtureFluidProperties, and IdealRealGasMixtureFluidProperties.

Referenced by TwoPhaseNCGFluidProperties::getNumberOfNCGs().

◆ initialize()

virtual void FluidProperties::initialize ( )
inlinefinalvirtualinherited

Definition at line 28 of file FluidProperties.h.

28 {}

◆ k_from_p_T()

virtual Real VaporMixtureFluidProperties::k_from_p_T ( Real  p,
Real  T,
const std::vector< Real > &  x 
) const
pure virtual

Thermal conductivity from pressure and temperature.

Returns
Dynamic viscosity
Parameters
[in]ppressure
[in]Ttemperature
[in]xvapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ mu_from_p_T()

virtual Real VaporMixtureFluidProperties::mu_from_p_T ( Real  p,
Real  T,
const std::vector< Real > &  x 
) const
pure virtual

Dynamic viscosity from pressure and temperature.

Returns
Dynamic viscosity
Parameters
[in]ppressure
[in]Ttemperature
[in]xvapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ p_from_v_e() [1/2]

virtual Real VaporMixtureFluidProperties::p_from_v_e ( Real  v,
Real  e,
const std::vector< Real > &  x 
) const
pure virtual

Pressure from specific volume and specific internal energy.

Parameters
[in]vspecific volume
[in]especific internal energy
[in]xvapor mass fraction values

Implemented in GeneralVaporMixtureFluidProperties, and IdealRealGasMixtureFluidProperties.

◆ p_from_v_e() [2/2]

virtual void VaporMixtureFluidProperties::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
pure virtual

Pressure and its derivatives from specific volume and specific internal energy.

Parameters
[in]vspecific volume
[in]especific internal energy
[in]xvapor mass fraction values
[out]ppressure
[out]dp_dvderivative of pressure w.r.t. specific volume
[out]dp_dederivative of pressure w.r.t. specific internal energy
[out]dp_dxderivative of pressure w.r.t. vapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ primaryMassFraction()

Real VaporMixtureFluidProperties::primaryMassFraction ( const std::vector< Real > &  x) const

◆ rho_from_p_T() [1/2]

virtual Real VaporMixtureFluidProperties::rho_from_p_T ( Real  p,
Real  T,
const std::vector< Real > &  x 
) const
pure virtual

Density from pressure and temperature.

Parameters
[in]ppressure
[in]Ttemperature
[in]xvapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ rho_from_p_T() [2/2]

virtual void VaporMixtureFluidProperties::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
pure virtual

Density and its derivatives from pressure and temperature.

Parameters
[in]ppressure
[in]Ttemperature
[in]xvapor mass fraction values
[in]xvapor mass fraction values
[out]rhodensity
[out]drho_dpderivative of density w.r.t. pressure
[out]drho_dTderivative of density w.r.t. temperature
[out]drho_dxderivative of density w.r.t. vapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ subdomainSetup()

virtual void FluidProperties::subdomainSetup ( )
inlinefinalvirtualinherited

Definition at line 32 of file FluidProperties.h.

32 {}

◆ T_from_v_e() [1/2]

virtual Real VaporMixtureFluidProperties::T_from_v_e ( Real  v,
Real  e,
const std::vector< Real > &  x 
) const
pure virtual

Temperature from specific volume and specific internal energy.

Parameters
[in]vspecific volume
[in]especific internal energy
[in]xvapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ T_from_v_e() [2/2]

virtual void VaporMixtureFluidProperties::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
pure virtual

Temperature and its derivatives from specific volume and specific internal energy.

Parameters
[in]vspecific volume
[in]especific internal energy
[in]xvapor mass fraction values
[out]Ttemperature
[out]dT_dvderivative of temperature w.r.t. specific volume
[out]dT_dederivative of temperature w.r.t. specific internal energy
[out]dT_dxderivative of temperature w.r.t. vapor mass fraction values

Implemented in IdealRealGasMixtureFluidProperties, and GeneralVaporMixtureFluidProperties.

◆ threadJoin()

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

Definition at line 31 of file FluidProperties.h.

31 {}

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