Material StreamGet TPFraction Method
Retrieves temperature, pressure and composition for a Phase.
Definition
Namespace: DWSIM.Thermodynamics.Streams
Assembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 10.0.0.0
Assembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 10.0.0.0
C#
public void GetTPFraction(
string phaseLabel,
ref double temperature,
ref double pressure,
ref Object composition
)VB
Public Sub GetTPFraction (
phaseLabel As String,
ByRef temperature As Double,
ByRef pressure As Double,
ByRef composition As Object
)Parameters
- phaseLabel String
- Phase label of the Phase for which the property is required. The Phase label must be one of the identifiers returned by the GetPresentPhases method of this interface.
- temperature Double
- Temperature (in K)
- pressure Double
- Pressure (in Pa)
- composition Object
- Composition (mole fractions)
Implements
ICapeThermoMaterialGetTPFraction(String, Double, Double, Object)Remarks
This method is provided to make it easier for developers to make efficient use of the CAPEOPEN
interfaces. It returns the most frequently requested information from a Material
Object in a single call.
There is no choice of basis in this method. The composition is always returned as mole
fractions.
To get the equivalent information for the overall mixture the GetOverallTPFraction method
of the ICapeThermoMaterial interface should be used.