Gethysys

Google Chrome blocks downloading DLL files, please use Microsoft Edge to download.

GetHysys Function: extracts Hysys simulation data

Function GetHysys(CaseFileName, FlowsheetName, ObjectName, ObjectType, VariableName, Units, ItemIndex, Update, SolverMode)


Input:

CaseFileName: file name, this can be the absolute filename, or relative filename or "". If "" is specified, the current loaded file will be used. ".hsc" or ".pmx" or ".usc" needs to be part of the filename.

FlowsheetName: flowsheet name in a simulation file. It has to be something like "main" or "TPL1".

ObjectName: the name of objects. This can be a stream name or a unit operation name.

ObjectType: this can be one of the 8 choices. Operation, Stream, Vapour, Liquid, HeavyLiquid, CombinedLiquid, Fluid or Utility.

VariableName: this is the variable name. It can be something like pressure or massflow for stream, or duty for heat exchanger.

Units: this is the unit you would like to report, such as psia for pressure. It can be "" for dimensionless number.

ItemIndex: this can be a component such as "CO2", to get component specific information.

Update: True or False. When set to False, the function will NOT get the new data from the simulation. When set to True and the function is activated, it will refresh the output. Before saving, please set this field to "False". By flipping this from False to True, you refresh the output if your simulation is changed.

SolverMode: please leave it empty.


Note:

Before saving a file, please set "Update" to "False"

GetHysys was originally developed by Aspentech and is further enhanced by EngineeringToolbox.Net.