
Automation 2-17
2-17
property of a column.
The array is set to hyStageCompFrac. This array is two-
dimensional. The first dimension represents the components
in the systems as specified in the fluid package. The second
dimension represents the stages in the column. A property
view displays the vapour fraction of component 1 for each
stage of the column.
Example 2: Using Variants in HYSYS
Dim hyOp As ColumnOp
Dim hyStageCompFrac As Variant
Set hyOp = hyCase.Flowsheet.Operations(“ColumnOp”).Item(0)
hyStageCompFrac = hyOp.VapourComponentFraction
For j = 0 To UBound(hyStageCompFrac,2)
MsgBox “Stage “ & j +1 & “ Component 1 Vapour Fraction = “ &
hyStageCompFrac(0,j)
Next j
Komentáře k této Příručce