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:
Name | Symbol | Description |
---|---|---|
c | Speed of sound | |
cp | Isobaric specific heat capacity | |
cv | Isochoric specific heat capacity | |
e | Specific internal energy | |
k | Thermal conductivity | |
mu | Dynamic viscosity | |
p | Pressure | |
rho | Density | |
s | Specific entropy | |
T | Temperature | |
v | Specific 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 | |||
---|---|---|---|
Yes | Yes | ||
Yes | |||
Yes | |||
Yes | Yes | ||
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()
: ReturnsnumberOfComponents()
: ReturnsprimaryMassFraction(x_secondary)
: Computes frommixtureMolarMass(molar_fractions, molar_masses)
: Computes the mixture molar mass from the molar fractions and molar masses of all componentsmassFractionsFromMolarFractions(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.