0% found this document useful (0 votes)
238 views19 pages

Modular Approaches in Process Simulation

This document discusses different approaches to simulation of chemical processes, including sequential modular, simultaneous modular, and equation-solving approaches. The sequential modular approach involves breaking the process into separate computational modules for each unit operation. The simultaneous modular approach uses both exact models and linear approximations for each unit. The equation-solving approach formulates the problem as a set of nonlinear equations that must be solved simultaneously. Precedence ordering is used to break the equations into smaller subsets that can be solved sequentially. An example illustrates generating an incidence matrix and directed graph to perform precedence ordering on a set of process equations.

Uploaded by

anand_upadhyay_9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Topics covered

  • mathematical service routines,
  • irreducible sets,
  • iterated variables,
  • process units,
  • process matrix,
  • material balance,
  • process simulation,
  • precedence ordering,
  • sequential modular approach,
  • unit computation
0% found this document useful (0 votes)
238 views19 pages

Modular Approaches in Process Simulation

This document discusses different approaches to simulation of chemical processes, including sequential modular, simultaneous modular, and equation-solving approaches. The sequential modular approach involves breaking the process into separate computational modules for each unit operation. The simultaneous modular approach uses both exact models and linear approximations for each unit. The equation-solving approach formulates the problem as a set of nonlinear equations that must be solved simultaneously. Precedence ordering is used to break the equations into smaller subsets that can be solved sequentially. An example illustrates generating an incidence matrix and directed graph to perform precedence ordering on a set of process equations.

Uploaded by

anand_upadhyay_9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Topics covered

  • mathematical service routines,
  • irreducible sets,
  • iterated variables,
  • process units,
  • process matrix,
  • material balance,
  • process simulation,
  • precedence ordering,
  • sequential modular approach,
  • unit computation

SIMULATION

Sequential modular approach


• 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
Sequential modular approach
Sequential modular approach
• 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 implies assumption of
some value for that stream.
• For example, in Fig. , tearing streams 2 and
7, it is possible to make the calculations
sequential in order of the modules (1), (4),
(3), (5), and (2).
Sequential modular approach
• structural components:
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
6. 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.
7. Routines for the recycle calculations and convergence analysis. 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 xi1, xi2, ..., xin for module i and equipment
parameters ui; the exact model for module i could be written as


• 11.1
Simultaneous modular approach
• and the linear models for module i could be represented by the following two
connecting equations:

11.2
11.3
• In the above equations, y denotes output values and β coefficients of linear
equations.
• The unknowns of the linear model ( β i j k) are determined by the simultaneous
modular approach described below.
• The flow diagram for the simultaneous modular approach is given
Comparision
• On comparing these two approaches, the sequential modular
approach seems easier to write; but in the simultaneous modular
approach, there is no decomposition required.
• Also, the convenience of the two approaches depends upon the type
of the process and the nature of recycle streams.
The Equation-solving Approach
• An unconstrained material balance problem is one in which all the
parameters are assigned known values.
• These parameters constitute the set of natural simulation
specifications, namely, the species, or stream split fractions,
stoichiometry, and key reactant conversion for all the reactors and the
species flow rates in all the external process streams.
Precedence-ordering of Equation Sets
• In general, the steady-state simulation of a process requires solving a
set of nonlinear simultaneous equations expressed in the form
fi ( x , u ) = O , i € In (11.4)
• in which x is a vector of n unknown state variables and u a vector of r
known decision variables.
• In an iterative procedure to solve Eq. (1 1.4), one has to start with an
initial vector xo and generate successive approximation to it xl, x2, ...,
so that the solution is obtained within a prescribed accuracy.
• The major drawback in most iterative techniques is that the whole set
of n unknown variables are to be iterated upon, which requires an nth
order convergence matrix. When n becomes large with the growing
complexity of the process, simulation needs larger storage space and
excessive computer time.
• It is, therefore, desirable to break up a large system of equations into
smaller subsets, which only need to be solved simultaneously.
• A systematic strategy to identify such subsets and to arrange them in
a proper sequence is known as precedence ordering.
• The equations are arranged in a certain order by first arranging them into
diagrams. The first of them is the Boolean ‘incidence’ (or ‘occurrence’)
matrix, in which the rows correspond to system equations and the columns
correspond to a system variable.
• Then the system is represented by a ‘digraph’ or directed graph or its
associated ‘Boolean adjacency matrix’.
• The output set assignment is not unique. Nevertheless, same results for
irreducible sets and precedence ordering are obtained.
• In this adjacency matrix, the rows correspond to the vertices from which
the flow originates and the columns correspond to the vertices to which
the flow is directed.
Example 11.1
• Find (a) the incidence matrix, (b) the digraph, and (c) the associated
adjacency matrix for a process represented by a set of the following
equations in functional form: f1 (x1,x 2)= 0,f2(x 4) = 0,f3 (x3,x 6) = 0,f4
(x4, x5) = 0,f5 (x1,x 6) = 0, & f6(x2, x3, x5) = 0.
• Solution
• (a) Incidence matrix In the incidence matrix, the process functions
and their relationship with the process variables are represented as
rows and columns of the matrix, respectively, using the binary coding
(Lea, 1’s and 0’s).
(b) Digraph In a digraph, the flow of information (i.e., the sequence of
calculations) is given. From the equation f2 (x4) = 0, the value of x4 can
be calculated.
• Using this x4 and the equation f4 (x4, x5) = 0, the value of x5 can be
obtained.
• Using this x5, and with an assumed value of x3, the equation f6 (x2,
x4, x5) = 0 gives the value of x2.
• Using this value of x2 and the equation f1 (xl, x2) = 0, the value of x1
could be computed.
(c) Associated adjacency matrix In the above digraph, the equations
are numbered as the nodes.
• In the adjacency matrix, rows correspond to the vertices from which
the flow originates and columns correspond to the vertices to which
the flow is directed; it can be obtained directly from the incidence
matrix as well.
• Rules of Boolean multiplication and union apply to these matrices.
REFERENCE

1. Process Plant Simulation, B.V. Babu

Common questions

Powered by AI

The sequential modular approach involves decomposing equations to solve for individual units sequentially, while the simultaneous modular approach writes additional modules that relate outputs to all inputs, allowing for simultaneous equations. The main implication of these differences is that the sequential approach is generally easier to write, as it deals with smaller subsets of calculations at one time, but may struggle with systems with complex recycle streams. In contrast, the simultaneous approach does not require decomposition, potentially offering a more holistic solution at the cost of increased complexity in model formulation. The choice between the two often depends on process type and the nature of recycle streams .

Not decomposing equations in the simultaneous modular approach means that the entire system of equations is addressed as a whole, allowing for a more integrated solution. Consequently, this approach can handle complex interactions and recycle streams more robustly compared to the sequential approach. However, it also results in more complex formulations and potentially higher computational requirements due to solving larger sets of equations simultaneously. This can increase the demand for computational resources and complicate error handling and convergence issues if model precision is not adequately managed .

Boolean matrices contribute to precedence ordering in process simulation by helping identify and order equations into solvable subsets. The Boolean 'incidence' matrix represents relationships between equations and variables using binary coding, facilitating visualization and management of dependencies in calculations. The adjacency matrix, derived from the incidence matrix, indicates flow direction between variables, aiding in arranging equations according to their dependencies. This organization is crucial for solving nonlinear simultaneous equations, breaking them into smaller, manageable subgroups without losing solvability accuracy .

Iterative techniques can lead to increased computational loads due to the need to update and iterate over a large number of unknown state variables, particularly as the complexity of the process increases. This requires extensive use of memory and processing power, and can significantly slow down computation. Strategies to mitigate these issues include dividing the large system into smaller subsets, enabling more focused and efficient iteration (termed precedence ordering), reducing the number of unknowns in individual iterative steps, and improving initial guesses to enhance convergence speed .

Calculating the value of x4 first simplifies the solution process by resolving dependencies early on in the equation system. By solving an equation where x4 is isolated, subsequent calculations that depend on x4 can proceed without delay or further complexity. This initial calculation essentially sets a foundation that resolves portions of the system, allowing more complex interdependencies to be tackled with known values rather than placeholders, thus streamlining the computational sequence and reducing potential for iterative complications .

The digraph representation facilitates solving equations in process simulation by visually depicting the relationships and flow of calculations between process variables and equations. Each node in the digraph corresponds to an equation, with directed edges indicating variable dependencies. This visualization helps identify calculation sequences, optimize order of operations, and effectively manage iterations by clearly mapping how solutions should propagate through the system. Additionally, it aids in creating the corresponding adjacency matrix, further informing the precedence ordering needed for efficient computational strategies .

The equation-solving approach benefits process simulation by providing a structured method to address complex material balance problems, especially when all parameters like species fractions and key reactant conversions are known. It simplifies large sets of nonlinear equations into manageable forms, enabling targeted solution finding with prescribed accuracy. By iteratively solving and approximating solutions, it mitigates the computational demands associated with large problem sets and ensures efficient storage usage and solution accuracy .

Tearing streams facilitate the sequential modular approach in process simulation by assuming a value for certain streams, which allows the calculations to be conducted sequentially. This process is necessary to identify recycle loops of units in a flowsheet and ensures that the modules can be executed in a specific order without waiting for information from downstream units. For example, tearing streams can reorder the calculations as needed, allowing them to proceed with modules in sequence without requiring circular calculation dependencies .

The 'process matrix' in the sequential modular approach defines the flowsheet topology that guides the system executive in determining the computational sequence of the modules. It specifies the organization of input and output streams for each module, ensuring that calculations follow a logically ordered path. This matrix helps maintain clarity in computation order, avoiding circular dependencies, and supports effective management of data flows and recycling streams within the simulation .

The main structural components of a sequential modular approach in process simulation include: 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 including computational procedures and input/output for each module, 5) flowsheet topology used by the system executive defined by a ‘process matrix,’ 6) standard unit modules identified by numbers for simulation of a particular process, and 7) routines for recycle calculations and convergence analysis .

You might also like