
2-30 Key HYSYS Objects
2-30
blend is also assigned to a stream in the HYSYS case.
2.4.5 Stream Objects
The main objects of the stream category are the ProcessStream
and Fluid objects. The Fluid object is a type of Stream object
that is not connected to operations but can be derived from a
ProcessStream. The Fluid object can be manipulated without
effecting the operations and streams within the case. The
ProcessStream object can be accessed from either the flowsheet
or the operation to which it is connected.
ProcessStream
The Streams object is a collection object returned by the
flowsheet. The Streams collection contains one or more
ProcessStream objects. There are approximately 124 properties
associated with the ProcessStream, including attributes such as
temperature, pressure, density, and viscosity. These properties
return values of type Double. The ProcessStream object also
returns arrays as variants for properties such as
ComponentMassFraction.
The Fluid object contains a similar set of properties and
Example: Blends
Dim hyBlend As Blend
'//create blend and assign assay
Set hyBlend = hyBasis.OilManager.Blends.Add(“BlendName”)
hyBlend.AddAssay “AssayName”
'//print out some properties
Dim hyVar As Variant
hyvar = hyBlend.TrueBPTemperatureValue
For i = 0 To UBound(hyVar)
Debug.Print hyVar(i)
Next i
hyBlend.InstallIntoStream “Blend_Stream”
Komentáře k této Příručce