
Extensibility 3-3
3-3
3.1 Introduction
HYSYS provides the unique capability of enhancing its
functionality through the addition of custom objects to a
simulation. With its open concept, the functionality of HYSYS
can be extended to include your unique or proprietary
calculations. Currently, you can add:
• Extension Unit Operations
• Extension Reaction Kinetics
• Extension Property Packages
Extensions are packaged in to two distinct files making them
easy to transfer to different machines. The extension code
becomes part of a DLL (dynamic linked library), that hides its
proprietary information, making it an excellent vehicle for
commercial distribution. Extensions become part of the
simulation and participate in simulation calculations like any
other HYSYS object. For example, each extension unit operation
has a corresponding PFD icon and property view. Also, the
Extension has its Execute method called by the Steady-State
Solver. Unlike applications which interact with HYSYS through
Automation, extensions exist in process with the HYSYS
applications. New extensions can be written in any language
that supports Automation (formerly OLE Automation). This
provides much flexibility to the end user, who can develop the
extension in languages such as C++ or Visual Basic. By its very
nature, Visual Basic provides the easiest development
environment in which to create unit operation and kinetic
reaction extensions. The Extension Property Package interface
must be implemented as a custom interface, therefore C++
must be used.
Each type of extension is represented in HYSYS by an Extension
Container. This object is the gateway through which HYSYS
communicates with the extension. The Container can also
provide a number of services to the extension, such as
performing Mass Balances or allowing access to the Status Bar.
Komentáře k této Příručce