vA and vB are given as inputs even though they can be calculated from T, pA, and pB because it may be desirable to leave vA and vB constant while varying pA and pB.
This function is based on eq. 5 from [Slattery1958].
function k import harmonicMean = FCSys.Utilities.Means.harmonic; input Q.TemperatureAbsolute T = 298.15*U.K "Temperature" annotation( Dialog(__Dymola_label = "<html><i>T</i></html>")); input Q.PressureAbsolute p_A = U.atm "<html>Pressure of the 1<sup>st</sup> species</html>" annotation( Dialog(__Dymola_label = "<html><i>p</i><sub>A</sub></html>")); input Q.PressureAbsolute p_B = U.atm "<html>Pressure of the 2<sup>nd</sup> species</html>" annotation( Dialog(__Dymola_label = "<html><i>p</i><sub>B</sub></html>")); input Q.VolumeSpecific v_A = 298.15*U.K/A.p0 "<html>Specific volume of the 1<sup>st</sup> species</html>" annotation( Dialog(__Dymola_label = "<html><i>v</i><sub>A</sub></html>")); input Q.VolumeSpecific v_B = 298.15*U.K/B.p0 "<html>Specific volume of the 2<sup>nd</sup> species</html>" annotation( Dialog(__Dymola_label = "<html><i>v</i><sub>B</sub></html>")); replaceable function pDstar = MobilityFactors.BaseClasses.pDstar_nonpolar "Reduced pressure-diffusivity product"; replaceable package A = Characteristics.BaseClasses.Characteristic "<html>Characteristic data of the 2<sup>nd</sup> species</html>"; replaceable package B = Characteristics.BaseClasses.Characteristic "<html>Characteristic data of the 2<sup>nd</sup> species</html>"; input Q.TemperatureAbsolute T_crit "Geometric mean of the critical temperatures" annotation( Dialog(__Dymola_label = "<html><i>T</i><sub>crit</sub></html>")); input Q.PressureAbsolute p_crit "Geometric mean of the critical pressures" annotation( Dialog(__Dymola_label = "<html><i>p</i><sub>crit</sub></html>")); output Q.NumberAbsolute k_Phi "Binary mobility factor" annotation( Dialog(__Dymola_label = "<html><i>k</i><sub>Φ</sub></html>")); end k;
Name | Description |
---|---|
pDstar | Reduced pressure-diffusivity product |
A | Characteristic data of the 2nd species |
B | Characteristic data of the 2nd species |