Aspen Touch Solutions ATM-123R Series Specifikace Strana 136

  • 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 135
3-52 Extension Unit Operations
3-52
3.10 Extension Unit
Operations
You can implement Unit Operation calculations in HYSYS by
creating an Extension Unit Operation.
To implement an Extension Unit Operation, you must implement
two interfaces:
These objects allow the unit operation to function in the HYSYS
environment. The minimum requirements for the Unit Operation
Extensions is the definition of two methods:
Interface Description
ExtensionObject Called when unit operation extension is added to
the simulation.
ExtnUnitOperation Called when the unit operation extension is used.
Method Description
Initialize The Initialize method is called whenever the extension is first
added or whenever a case containing the extension is reopened.
The Initialize method is a function that expects the current build
value of HYSYS to be returned. By referencing the HYSYS Type
Library it is possible to use the constant extnCurrentVersion to
return the proper build value.
The Initialize method passes two arguments when it is called.
The first argument is the extension container object. With the
extension container object, all the variables declared in the EDF
can be accessed. The second argument “IsRecalling” is used to
determine if the extension is being added for the first time or if
the case already contained the extension. This flag can be used
to set default values or to assure that the values specified by
the user are not overwritten by the default values.
Zobrazit stránku 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 373 374

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

Žádné komentáře