NOTE: This feature is not fully supported by PRO/II VER 6.0
Third party developers can add their own unit operations to PRO/II by developing FORTRAN DLL for the unit. This DLL should consists of the following function:
INTEGER(4) FUNCTION UOPEXEC(iContextNo) with option
where iContextNo is an integer with options:
1 Cross check of the user input data
2 Calculations
3 Output
Based on the context number, user can branch out to the specific routines required for that context. This function should return the status of call:
1 - success
2 - Failed - continue flow sheet
3 - Fatal error- Abort flow sheet
While developing the above DLL, PRO/II supported interface functions can be called to get/set the requested data through the function arguments. The data get/set methods are divided based on the data type i.e., integer, real, character and are used to get/set the data of Unit operation, stream or component. The interface functions supported are:
iGetInt ( cClass, cMember, cInstance, cItem, cAttribute, nValMax, iCount )
iPutInt ( cClass, cMember, cInstance, cItem, cAttribute, nValMax, iCount )
iGetDbl ( cClass, cMember, cInstance, cItem, cAttribute, nValMax, rCount )
iPutDbl ( cClass, cMember, cInstance, cItem, cAttribute, nValMax, rCount )
iGetChr( cClass, cMember, cInstance, cItem, cAttribute, nValMax, cName )
iPutChr ( cClass, cMember, cInstance, cItem, cAttribute, nValMax, cName )
Valid Options for cClass are : "UOP", "COMPonent", "STReam"
Component properties will be suplied by the Get routines, however users are not allowed to change the properties. cMember, cInstance, cAttribute are not to be specified to get the data. Options for cItem to get the Component data are:
Stream properties will be supplied by the Get routines,
and can be changed (for product streams of that unit operation only) by
using Put routine. cMember, cInstance, cAttribute are not to be specified
to get the data. Options for cItem to get/set the stream data are:
Options for get/set the unit operation data:
Stream Data Item |
Option |
Stream Data Item |
Option |
Molecular weight, bulk |
BMWT |
Molec. Wt. of Liquid Phase |
LMWT |
Watson K (UOP), bulk |
BUK |
Surface Tension of Liquid |
LST |
Cetane Index |
CIND |
Liquid Thermal Conduct. |
LTC |
Cloud Point |
CLPT |
Stream Liquid Fraction |
LFR |
Flash Point |
FLPT |
Viscosity of Liquid Phase |
LMU |
Gross Heating Value |
GRHV |
Standard Volumetric Flow Rate of Liquid Phase |
LSVR |
Fraction L1 in bulk liquid |
L1FR |
Z-Density of Liquid Phase |
LZDN |
Fraction L2 in bulk liquid |
L2FR |
Cp of Vapor Phase |
VCP |
Motor Octane Number |
MOCN |
Cv of Vapor Phase |
VCV |
Heat of combustion |
NHV |
Actual Density, Vapor |
VDEN |
|
|
Mole Enthalpy of Vapor |
VMH |
Pour Point |
POPT |
Mole Entropy of Vapor |
VMS |
Pressure |
STPR |
Mole Rate of Vapor Phase |
VMFL |
Reid Vapor Pressure |
REVP |
Molec. Wt of Vapor Phase |
VMWT |
Research Octane Number |
ROCN |
Vapor Thermal Conduct. |
VTC |
Solid Fraction, bulk |
SSFR |
Viscosity of Vapor Phase |
VMU |
Sulphur Weight Percent |
SUWP |
Standard Volumetric Flow Rate of Vapor Phase |
VSVR |
Temperature |
TEMP |
Z-Density of Vapor Phase |
VZDN |
Total Mole Enthalpy |
TMH |
Stream Vapor Fraction |
VFR |
Total Mole Entropy |
TMS |
Specific Gravity of Liquid |
LSG |
Total Mole Flow Rate |
TMFL |
Composition, Bulk Stream |
TOTC |
True Vapor Pressure |
TRVP |
Composition, Bulk Liquid |
LIQC |
Fraction Aqueous Phase |
WFAQ |
Composition, Vapor |
VAPC |
API Gravity, Liquid Phase |
LAPI |
Bubble Point temperature |
BUBT |
Cp, Liquid Phase |
LCP |
Dew Point Temperature |
DEWT |
Actual Density, Liquid |
LDEN |
Bubble Point Pressure |
BUBP |
Kinematic Viscosity, Liq. |
LKMU |
Dew Point Pressure |
DEWP |
Mole Enthalpy of Liquid |
LMH |
Gibbs Free Energy |
GIBB |
Mole Entropy of Liquid |
LMS |
Stream ID (char*16) |
SID |
Mole Rate of Liquid Phase |
LMFL |
Stream Name (char*40) |
SNAME |
Options for get/set the unit operation data:
Stepwise procedure to add new UAUOP