|Excel Thermo Import|
|Excel Unit Operation|
|Matlab Unit Operation|
|Matlab Thermo Import|
|OO Calc Thermo Import|
|SciLab Unit Operation|
|SciLab Thermo Import|
|Python Thermo Import|
getTwoPhaseProperty is used to retrieve two-phase mixture properties.
String; name of the property. The following single phase properties may be supported, depending on the underlying thermo system:
|property name||description||unit of measure|
|kvalue||Ratio of fugacity coefficients for a pair of phases defined as follows: kvaluei=phii,phase 2/phii,phase 1; where phi is the fugacity coefficient|
|logKvalue||Natural logarithm of K-value|
|surfaceTension||Interfacial tension for a pair of phases||N m|
.Dtemperatureto the property name, e.g.
enthalpy.Dtemperature. Pressure derivatives may be obtained by adding
.Dpressure. Mole fraction derivatives may be obtained by adding
.DmolFraction. Mole number derivatives - for a total of 1 mole of mixture - may be obtained by by adding
String; name of the first phase for which to retrieve the property. The defined phase names depend on the underlying thermo system.
String; name of the second phase for which to retrieve the property
Double; temperature (K) at which to retrieve the property values
Double; pressure (Pa) at which to retrieve the property values
Double; composition of the first phase at which to retrieve the property values. This must be a vector, with the number of elements equal to the number of compounds.
Double; composition of the second phase at which to retrieve the property values
Double; values for the properties. Depending on the property, this may be a scalar value (e.g. surfaceTension), a vector value (one value for each compound, e.g. kvalue), or a matrix (number of compounds squared, e.g. kvalue.Dmolfraction).
For composition derivatives, this is the derivative w.r.t. to the composition of the first phase.
For composition derivatives, this is the derivative w.r.t. to the composition of the second phase. For other properties this value will be empty.
-->xVap=[0.1 0.2 0.3 0.4] xVap = 0.1 0.2 0.3 0.4 -->xLiq=[0.4 0.3 0.1 0.2] xLiq = 0.4 0.3 0.1 0.2 -->sigma=getTwoPhaseProperty("surfaceTension","vapor","liquid",298.15,101325,xVap,xLiq) sigma = 0.0000497 -->sigmadP=getTwoPhaseProperty("surfaceTension.Dpressure","vapor","liquid",298.15,101325,xVap,xLiq) sigmadP = 0. -->[sigmadx1,sigmadx2]=getTwoPhaseProperty("surfaceTension.DmolFraction","vapor","liquid",298.15,101325,xVap,xLiq) sigmadx2 = 1.000D-10 1.000D-10 0.0004969 1.000D-10 sigmadx1 = 0. 0. 0. 0. -->//surface tension for this system does not depend on vapor composition or pressure