MaterialStreamGetSinglePhaseProp Method | 
 Retrieves single-phase non-constant Physical Property values for a mixture.
 
Namespace: DWSIM.Thermodynamics.StreamsAssembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 8.8.1.0
Syntaxpublic void GetSinglePhaseProp(
	string property,
	string phaseLabel,
	string basis,
	ref Object results
)
Public Sub GetSinglePhaseProp ( 
	property As String,
	phaseLabel As String,
	basis As String,
	ByRef results As Object
)
 Request Example
		View SourceParameters
- property  String
 - The identifier of the Physical Property for which values are requested. 
 This must be one of the single-phase Physical Properties or derivatives. The standard identifiers 
 are listed in sections 7.5.5 and 7.6.
 - phaseLabel  String
 - Phase label of the Phase for which the Physical Property is required. 
 The Phase label must be one of the identifiers returned by the GetPresentPhases method of this interface.
 - basis  String
 - Basis of the results. Valid settings are: “Mass” for Physical Properties per unit mass or “Mole” 
 for molar properties. Use UNDEFINED as a place holder for a Physical Property for which basis does not apply. See section 
 7.5.5 for details.
 - results  Object
 - Results vector (CapeArrayDouble) containing Physical Property value(s) in SI units or CapeInterface 
 (see notes).
 
Implements
ICapeThermoMaterial.GetSinglePhaseProp(String, String, String, Object)
RemarksThe results argument returned by GetSinglePhaseProp is either a CapeArrayDouble that
 contains one or more numerical values, e.g. temperature, or a CapeInterface that may be
 used to retrieve single-phase Physical Properties described by a more complex data
 structure, e.g. distributed properties.
 It is required that a component that implements the ICapeThermoMaterial interface will
 always support the following properties: temperature, pressure, fraction, phaseFraction,
 flow, totalFlow.
 Although the result of some calls to GetSinglePhaseProp may be a single numerical value,
 the return type for numerical values is CapeArrayDouble and in such a case the method must
 return an array even if it contains only a single element.
 A Phase is ‘present’ in a Material if its identifier is returned by the GetPresentPhases
 method. An exception is raised by the GetSinglePhaseProp method if the Phase specified is
 not present. Even if a Phase is present, this does not necessarily mean that any Physical
 Properties are available.
 The Physical Property values returned by GetSinglePhaseProp refer to a single Phase. These
 values may be set by the SetSinglePhaseProp method, which may be called directly, or by
 ICapeThermoPropertyRoutine interface or the CalcEquilibrium method of the
 ICapeThermoEquilibriumRoutine interface. Note: Physical Properties that depend on more
 than one Phase, for example surface tension or K-values, are returned by the
 GetTwoPhaseProp method.
 It is expected that this method will normally be able to provide Physical Property values on
 any basis, i.e. it should be able to convert values from the basis on which they are stored to
 the basis requested. This operation will not always be possible. For example, if the
 molecular weight is not known for one or more Compounds, it is not possible to convert
 from mass fractions or mass flows to mole fractions or molar flows.
See Also