Procedure Data enables you to supply FORTRAN code for kinetic reaction rate calculations without the need for compilation and linking. Procedure blocks may be accessed by the Plug Flow Reactor, the Continuous Stirred Tank Reactor,Batch Reactor, and the Reactive Distillation in much the same way as FORTRAN programs call calculation subroutines.
Plug Flow, Continuous Stirred Tank, and Batch reactor should not be used when multiphase reactions are expected. Except for Reactive Distillation and the Continuous Stirred Tank boiling pot model, PRO/II assumes the phase is 100% liquid or vapor as defined in the unit operation.
To model a unit operation or other calculation using FORTRAN-based statements, you may use the Calculator Unit.
The Procedure block has two main sections - declaration and code. The declaration section in the Kinetic Procedure Definition Window declares variable names which are used in the code section but defined in the unit operation.
The Procedure Data Code section contains FORTRAN-based statements which calculate the reaction rates. Specific unit operation data for the reactor or reactive distillation unit and reaction data can be accessed through number of Predefined Variables. Special Intrinsic Functions can be used in the code statements for direct retrieval of component properties
The code statements store the reaction rates in the RRATES[ ] array and the temperature and composition derivatives in the DRDT[ ] and DRDX[ ] arrays. The results from this array can then be accessed by the reactor or reactive distillation unit.
Related Topics