Specifications
Customization FAQ A-3
A-3
The text below is a HYSYS macro which demonstrates the
above.
3. How do I use Automation to attach multiple feed and product
streams to unit operations which can accept them (such as
the tee, balance, separator, etc.)?
Ans: The Add method of the Feeds property is used to add
multiple feed streams to a unit operation object one at a
time.
CNull Chien Null
ExtNRTL Extended NRTL
GenNRTL General NRTL
CS Chao Seader
GSD Grayson Streed
Antoine Antoine
BraunK10 BraunK10
EssoTabular Esso K
AsmeSteamPkg ASME Steam
Steam84Pkg NBS Steam
Amine Amine
Tab u l a r P k g Ta b u l a r Pa c k a g e
LKP Lee-Kesler Plocker
Sub Main
Set hyApp = Application
Set hyCase = hyApp.SimulationCases.Add("C:\Temp.HSC")
Set hyBasis = hyCase.BasisManager
Set hyFldPkgs = hyBasis.FluidPackages
Set hyFldPkg = hyFldPkgs.Item(0)
Set hyPropPkg = hyFldpkg.PropertyPackage
hyFldPkgs.Add "Steam"
Set hyFldPkg = hyFldPkgs.Item("Steam")
hyFldPkg.PropertyPackageName = "asme steam"
End Sub
Internal Name External HYSYS Property Package Name