Aspen Touch Solutions ATM-123R Series Specifikace Strana 38

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 374
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 37
2-24 Key HYSYS Objects
2-24
PropertyPackage object and Components object. When you
access the fluid package in this way, changes can be made to
the property package and the list of components.
When obtaining a reference to the FluidPackage object from the
flowsheet object, you are accessing the one fluid package
associated with the flowsheet. You can view the property
package or component list of the FluidPackage object, however
you are not able to make any changes.
The example below, displays the number of FluidPackage
objects in a case and sets a FluidPackage object to the first
member of the FluidPackages collection.
PropPackage (PropertyPackage)
The PropPackage object is accessed through the FluidPackage
object. Each FluidPackage object can have a single PropPackage
object. The type of property package can be determined through
the PropPackage TypeName property or through the
PropertyPackageName property of the FluidPackage object. Each
property package has a set of unique properties and methods
along with the common ones shared among all property
packages.
The example below, connects to the FluidPackages collection
object and checks each member FluidPackage to see if it
Example: FluidPackage
Dim hyFluidPackages As FluidPackages
Dim hyFluidPackage As FluidPackage
Set hyFluidPackages = hyCase.BasisManager.FluidPackages
MsgBox “Number of Fluid Packages = “ & hyFluidPackages.Count
Set hyFluidPackage = hyFluidPackages.Item(0)
Syntax to determine the type of property package
SimulationCase.BasisManager.Fluidpackages.Item(0).PropPackage.TypeName
or
SimulationCase.BasisManager.Fluidpackages.Item(0).PropertyPackageName
Zobrazit stránku 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 373 374

Komentáře k této Příručce

Žádné komentáře