
2-28 Key HYSYS Objects
2-28
Assays and Blends are not estimated until the EndOilChange
method is invoked.
AssaysCollection & Assays
The AssaysCollection object is accessed through the OilManager
object and contains the assay objects available within a
particular HYSYS case. There are eight types of assays available
and each of them has a specific set of properties and methods.
The properties associated with the hypocomponents generated
by the OilManager can be accessed through the Assay object.
Example: Accessing the Oil Manager Environment
Public hyOil As OilManager
hyCase.BasisManager.StartBasisChange
hyCase.BasisManager.StartOilChange
Set hyOil = hyCase.BasisManager.OilManager
'//code to manipulate oil manager objects
hyCase.BasisManager.EndOilChange
hyCase.BasisManager.EndBasisChange
AssayTypes:
• at_ASTMD2887 = 4
• at_BulkPropertiesOnly = 7
•at_Chromatograph = 5
• at_D1160 = 2
• at_D86 = 1
• at_D86D1160 = 3
•at_EFV = 6
•at_TBP = 0
Syntax: Assays
Referencing a Collection
Set hyAssays = hyCase.BasisManager.OilManager.Assays
Referencing a Member
Set hyAssay = hyCase.BasisManager.OilManager.Assays.Item(“name”)
Adding an Assay
hyCase.BasisManager.OilManager.Assays.Add “name”, AssayType
Komentáře k této Příručce