Modular and Equation Aproach
Modular and Equation Aproach
Sequential: This approach involves collecting equations and constraints for each process
unit into a separate computational subroutine or module. This concept is known as ‘unit
computation’. Thus, each module calculates values pertaining to the output streams for the
given input conditions and parameters for that process unit or equipment, irrespective of
the source of input information or the sink of output information
Using this concept, it is possible to create a library of
modules and use them for a variety of flowsheets.
The sequential part of the approach involves
carrying out calculations from module to module,
starting with the feed streams until products are
obtained. In order to make it totally sequential, it is
then necessary to identify recycle loops of units in a
given flowsheet and to ‘tear’ certain streams.
Tearing of streams
Structural Components of sequential modular program
1. A store of physical and thermodynamic properties for pure chemical species and
their mixtures.
2. A system-working database derived from the store as well as the problem input.
3. Individual module database derived from the working database.
4. Modules or subroutines for individual process units, computational procedures
including input/output for each module, and internally iterated variables, if any.
5. Flowsheet topology to be used by the system executive to order computational
sequence. This is usually defined by a ‘process matrix’ which specifies standard unit
modules for use in simulation of a particular process along with identification numbers,
positive for input streams and negative for the output streams.
6. Routines for the recycle calculations and convergence analysis.
7. Other mathematical service routines.
Simultaneous Modular approach
In this type of approach, the unit modules are similar to those in the sequential
modular approach. However, the main difference is that for each unit, an
additional module is written, which approximately relates each output value by a
linear combination of all input values.
Thus for the given input xil, xi2, ..., xin for module i and equipment parameters ui;
the exact model for module i could be written as