
2-26 Key HYSYS Objects
2-26
counted.
Hypotheticals
The HypoGroups collection object is accessed from the
BasisManager. This object contains a collection of HypoGroup
objects, each of which provides access to a HypoComponents
object. A HypoComponent can be entirely specified through
Automation and added to a HYSYS simulation case. Methods for
the HypoComponent object are used to estimate properties
based on the minimum data requirement.
The example below, adds a hypothetical component and sets its
boiling point value in order to estimate the remaining properties.
The StartBasisChange and EndBasisChange methods are
Example: Components
Dim numComp As Integer
Dim hyFluidPackage As FluidPackage
Dim hyBasis As BasisManager
Dim hyComponents As Components
Dim hyComponent As Component
Set hyBasis = hyCase.BasisManager
Set hyFluidPackage = hyBasis.FluidPackages.Item(0)
Set hyComponents = hyFluidPackage.Components
numComp = 0
For Each hyComponent In hyComponents
If hyComponent.NormalBoilingPointValue < 0 Then
numComp = numComp + 1
End If
Next hyComponent
MsgBox numComp & “ components have NBP below 0"
Syntax: Hypotheticals
SimulationCase.BasisManager.HypoGroups.Item(0).HypoComponents.Item(0)
Komentáře k této Příručce