VaporMixtureFluidProperties

VaporMixtureFluidProperties is a base class for gas mixture fluid properties objects. Its main function is to provide interfaces for computing various properties from different combinations of other properties and the mass fractions of its components.

Properties

The following properties are considered in this class, where the "Name" column gives the identifier for the property used in the available interfaces:

NameSymbolDescription
cSpeed of sound
cpIsobaric specific heat capacity
cvIsochoric specific heat capacity
eSpecific internal energy
kThermal conductivity
muDynamic viscosity
pPressure
rhoDensity
sSpecific entropy
TTemperature
vSpecific volume

Each mixture property lookup is of the form where is the desired thermodynamic property and and are independent, intensive thermodynamic properties, and is a vector of mass fractions ; it does not include the mass fraction of the first component, since it can be determined by the others using the partition of unity property: . The corresponding function name is fname_from_aname_bname, where fname, aname, and bname are the names in the table above, corresponding to , , and , respectively. The following table lists which properties are available from various combinations of properties (e.g., "Yes" in the column for the row denotes that the interface fname_from_aname_bname is available):

Name
YesYes
Yes
Yes
YesYes
Yes
Yes
Yes
Yes
Yes
Yes

Interfaces are also provided for getting derivatives of fluid properties with respect to the input arguments. These interfaces are named the same as their non-derivative counterparts, but have no return value but 3 additional (output) arguments, corresponding to the property value and then the derivatives of each of the two input arguments. For example, has the interface rho_from_p_T(p, T, x, rho, drho_dp, drho_dT, drho_dx), where drho_dp, drho_dT, and drho_dx correspond to , , and respectively.

Additionally, the following interfaces are available:

  • getPrimaryFluidProperties(): The primary component of the mixture.

  • getSecondaryFluidProperties(i): The secondary component of the mixture.

  • getNumberOfSecondaryVapors(): Returns

  • numberOfComponents(): Returns

  • primaryMassFraction(x_secondary): Computes from

  • mixtureMolarMass(molar_fractions, molar_masses): Computes the mixture molar mass from the molar fractions and molar masses of all components

  • massFractionsFromMolarFractions(molar_fractions, molar_masses): Converts molar fractions to mass fractions

The full list of available methods can be found in either the source code or the Modules Doxygen page for each FluidProperties class.