GetPMX

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

GetPMX Function: extracts ProMax simulation data

Function GetProMax(Filename, Flowsheet, StrmOrBlk, PhaseAnalysis, Property, Optional Unit, Optional CompIndex, Optional Update)


Input:

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

Flowsheet: flowsheet name in a ProMax file.

StrmOrBlk: the name of PStream, QStream or Block.

PhaseAnalysis:

If StrmOrBlk is a PSream, this is the phase of the PStream, it can be total, vapor, light liquid, heavy liquid or mixed liquid. It can be also an analysis name for the stream. 

If StrmOrBlk is a QStream, PhaseAnalysis can be specified as "" and it will be ignored. 

If StrmOrBlk is a block, 

PhaseAnalysis can be "" if the property desired belongs to the block.

Generic Block: Inlet, outlet. If there are multiple inlets and outlets, please specify CompIndex to determine which one.

Heat Exchanger: QManager

Separator: vapor outlet, light liquid outlet, heavy liquid outlet. SizingProperties to get separator sizing properties.

Column: "specifications" to get column specifications, "hardware" to get column hardware, "vapor", "light liquid", "heavy liquid" if stage number is specified in CompIndex

Property: 

If StrmOrBlk is PStream, this can be pressure, temperature, mass flow, molar flow, std liquid volumetric flow, mass fraction, mole fraction or std liquid volumetric fraction. If CompIndex is specified as a component like "CO2", the component CO2 info will be extracted. This can be also a property of stream analysis

If StrmOrBlk is QStream, this needs to be "Energy Rate".

If StrmOrBlk is a block, this will be a property based on PhaseAnalysis.

Unit: the unit users desire of the output. It can be "" for dimensionless number.

CompIndex: this can be a component such as "CO2" or an Index to get 2nd outlet or 10th stage.

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.


Note:

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