CalculatorCalcTwoPhaseProp(PropertyPackage, String, String, String, String, String, Double, Double, Double, Double, Object, Object, Object, Object) Method |
Calculates two phase properties (K-values, Ln(K-values) or Surface Tension) using the selected Property Package.
Namespace: DWSIM.Thermodynamics.CalculatorInterfaceAssembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 8.8.1.0
Syntax [DispIdAttribute(19)]
public Object[] CalcTwoPhaseProp(
PropertyPackage proppack,
string prop,
string basis,
string phaselabel1,
string phaselabel2,
string[] compounds,
double temperature,
double pressure,
double[] molefractions1,
double[] molefractions2,
Object ip1 = null,
Object ip2 = null,
Object ip3 = null,
Object ip4 = null
)
<DispIdAttribute(19)>
Public Function CalcTwoPhaseProp (
proppack As PropertyPackage,
prop As String,
basis As String,
phaselabel1 As String,
phaselabel2 As String,
compounds As String(),
temperature As Double,
pressure As Double,
molefractions1 As Double(),
molefractions2 As Double(),
Optional ip1 As Object = Nothing,
Optional ip2 As Object = Nothing,
Optional ip3 As Object = Nothing,
Optional ip4 As Object = Nothing
) As Object()
Request Example
View SourceParameters
- proppack PropertyPackage
- The Property Package instance to use.
- prop String
- The property to calculate.
- basis String
- The returning basis of the properties: Mole, Mass or UNDEFINED.
- phaselabel1 String
- The name of the first phase.
- phaselabel2 String
- The name of the second phase.
- compounds String
- The list of compounds to include.
- temperature Double
- Temperature in K.
- pressure Double
- Pressure in Pa.
- molefractions1 Double
- *Normalized* mole fractions of the compounds in the first phase.
- molefractions2 Double
- *Normalized* mole fractions of the compounds in the second phase.
- ip1 Object (Optional)
- Interaction Parameters Set #1.
- ip2 Object (Optional)
- Interaction Parameters Set #2.
- ip3 Object (Optional)
- Interaction Parameters Set #3.
- ip4 Object (Optional)
- Interaction Parameters Set #4.
Return Value
ObjectImplements
Calculator_CalculatorCalcTwoPhaseProp(PropertyPackage, String, String, String, String, String, Double, Double, Double, Double, Object, Object, Object, Object)See Also