Kinetic Procedure Definition

This window is used to specify the Procedure block declaration data and to enter the FORTRAN-based code statements for performing the kinetic rate calculations. For an introduction to Procedure Data, see Procedure Data - General Information.

 

Usage

 

Check Code button 

This button becomes available once any text is typed into the code section. Pushing this button executes the code syntax checker. The Status window is then displayed where input errors and warnings, if any, are shown.

 

Edit/View, Hide Declarations button

This button displays and hides the Declarations, where you can define parameters for the declaration section of the Procedure block.

 

Declaration

When the Declarations are displayed, the following data may be entered:

 

Defined Procedure Variables: Enter the names of variables in the code section which are to be transferred from the unit operation which uses the Procedure block. They are the "calling argument list" into the Procedure block. These variables will normally be calculated during the simulation and values will be supplied by the Define system from the Plug Flow Reactor, Continuous Stirred Tank Reactor , Batch Reactor , or Reactive Distillation. Fixed real, integer and supplemental data arrays may be specified in the unit operation and retrieved by their Predefined Variable Names.

 

Parameter: Enter the maximum number of reactions which can be calculated by the Procedure block. The default is 15. This parameter may be retrieved in the Code section in the variable MAXNOR.

Note: This needs be changed only  if the Procedure block handles more than the default number of reactions i.e. 15 reactions.

 

Code

In this section, you enter the FORTRAN-based statements which will perform the calculations. See Code Overview for differences from standard FORTRAN.

 

The reaction rates must be calculated and stored into the RRATES[ ] array. The temperature and composition derivatives are optional and may be stored into the DRDT[ ] and DRDX[ ] arrays.

 

Full details of coding the Procedure block are given in Procedure Data Code.

 

How to get to this window

The Kinetic Procedure - Definition window is accessed by pressing the Enter Data button for the selected Procedure block on the Procedure Data Window.

 

image\SML_LINE.gif

Related Topics

 

Unit and Description

Editing Tabular Data

Toolbar

OK and Cancel Buttons