Click or drag to resize

PropertyPackageGetTDependentProperty Method

Returns the values of temperature-dependent Physical Properties for the specified pure Compounds.

Namespace: DWSIM.Thermodynamics.PropertyPackages
Assembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 8.8.1.0
Syntax
public virtual void GetTDependentProperty(
	Object props,
	double temperature,
	Object compIds,
	ref Object propVals
)
Request Example View Source

Parameters

props  Object
The list of Physical Property identifiers. Valid identifiers for temperature-dependent Physical Properties are listed in section 7.5.3
temperature  Double
Temperature (in K) at which properties are evaluated
compIds  Object
List of Compound identifiers for which Physical Properties are to be retrieved. Set compIds to UNDEFINED to denote all Compounds in the component that implements the ICapeThermoCompounds interface.
propVals  Object
Physical Property values for the Compounds specified.

Implements

ICapeThermoCompounds.GetTDependentProperty(Object, Double, Object, Object)
Remarks
The GetTDependentPropList method can be used in order to check which Physical Properties are available. If the number of requested Physical Properties is P and the number of Compounds is C, the propvals array will contain C*P values. The first C will be the values for the first requested Physical Property followed by C values for the second Physical Property, and so on. Properties are returned in a fixed set of units as specified in section 7.5.3. If the compIds argument is set to UNDEFINED this is a request to return property values for all compounds in the component that implements the ICapeThermoCompounds interface with the compound order the same as that returned by the GetCompoundList method. For example, if the interface is implemented by a Property Package component the property request with compIds set to UNDEFINED means all compounds in the Property Package rather than all compounds in the Material Object passed to the Property package. If any Physical Property is not available for one or more Compounds, then undefined values must be returned for those combinations and an ECapeThrmPropertyNotAvailable exception must be raised. If the exception is raised, the client should check all the values returned to determine which is undefined.
See Also