You are on page 1of 6

Computers

&Chemical
Engineering
ELSEVIER Computers and Chemical Engineerine._ 24 (2000)
. 653-658
I

www.elsevier.com/locate/compchemeng

A general framework for the integration of computational fluid


dynamics and process simulation
F. Bezzo *, S. Macchietto, C.C. Pantelides
Centrefor Process Systems Engineering, Imperial College of Science, Technology and Medicine, London SW 7 2BY, UK

Abstract

Computational fluid dynamics (CFD) and process simulation are widely used in the process industry. The two technologies are
largely complementary, each being able to capture and analyse some of the important process characteristics. Their combined
application can, therefore, lead to significant industrial benefits. This is especially true for systems, such as chemical reactors, in
which steady-state performance, dynamics and control strategy depend on mixing and fluid flow behaviour. This paper presents
a new approach for the integration of the capabilities of CFD technology and process simulation via a general interface that
allows the automatic exchange of critical variables between the two packages, leading to a simultaneous solution of the overall
problem. The approach applies to both steady-state and dynamic problems. The feasibility of the approach and its first practical
implementation are demonstrated by integrating a widely used CFD package (Fluent 4.5, by Fluent Inc.) within a general-purpose
advanced process simulator (gPROMS 1.7, by Process Systems Enterprise Ltd. (1999)). One case study involving a batch reactor
is used to illustrate the ability of the combined tool to provide information on the detailed interactions between fluid mechanics,
heat transfer, reaction and control strategy, and to provide insights on important design and operational decisions. 0 2000
Elsevier Science Ltd. All rights reserved.

Keywords: Framework; Integration; Computational fluid dynamics and process simulation

1. Introduction recent improvements, CFD’s ability to describe the


physics involved in several application areas and/or to
Computational fluid dynamics (CFD) and process solve the underlying numerical problems is still limited.
simulation are important tools for the design and opti- Such areas include, among others, the important classes
misation of chemical processes. CFD is a particularly of complex reactive systems and multiphase processes
powerful tool for the study of fluid dynamics and with multicomponent phase equilibria. Moreover, CFD
mixing processes within individual items of process is currently primarily used for steady state simulations.
equipment. The aim is often to avoid expensive experi- Performing realistic dynamic simulations is often prob-
mentation and to use the information and insight lematic due to excessive computational times and
gained in order to obtain a better design of the unit. difficulties with the description of some of the disconti-
The ability of CFD to handle complex equipment ge- nuities that typically occur in dynamic processes.
ometry is especially important in this context. Process simulation is already a well-established tool
CFD simulation has already made valuable contribu- in process industry, being used to study individual unit
tions to a wide range of process applications including operations as well as multiple interconnected units or
polymerisation reactors (Maggioris, Goulas, Alexopou- even entire plants. The latest generation of process
los, Chatzi & Kiparissides, 1998), fluidised beds (van simulation tools is extremely flexible, being able to
Wachem, Schouten, Krishna & van den Bleek, 1998), represent a very wide range of multicomponent, multi-
bioreactors (Noorman, Morud, Hjertager, Tragardh, phase and reactive systems. It can also deal with both
Larsso & Enfors, 1993), environmental issues (Pereira, steady-state and dynamic models subject to discontinu-
1999) and several others. Nonetheless, despite many ities. However, most of the models used by process
simulation tools either ignore all spatial variations of
* Corresponding author. properties within each unit operation (invoking the

0098-1354/00/$ - see front matter 0 2000 Elsevier Science Ltd. All rights reserved.
PII: SOO98-1354(00)00372-O
654 F. Bezzo et al. /Computers and Chemical Engineering 24 (2000) 653-658

‘well-mixed tank’ assumption) or are limited to simple paper is based on the following premises:
idealised geometries. Moreover, even in models that Both the CFD package and the process simulation
represent mass and heat transfer phenomena to a tool will model the same spatial region (e.g. the
high degree of detail, the treatment of fluid mechanics interior of a process equipment unit) using different
is usually quite rudimentary. As a result, process sim- approximations. For example, consider a two-phase
ulation may offer only an incomplete and unsatisfac- reactor involving a complex set of exothermic reac-
tory description of processes in which local tions taking place in a liquid phase which is in
interactions between mixing and other phenomena, thermodynamic equilibrium with a vapour phase.
and the way in which these interactions are influenced External cooling is provided by means of a jacket;
by equipment geometry, are significant. the heat transfer between the latter and the process
In view of the above, CFD and process simulation
liquid has a major influence on controlling the reac-
technologies are highly complementary, and there are
tor temperature and, ultimately, the yield and selec-
clear benefits to be gained from a closer integration
tivity achieved. In this case, the liquid phase would
of the two. For example, recent research in the area
be modelled by both the CFD and the process
of polymerisation reactors (Vivaldo Lima, Wood,
simulation tools. The CFD model might take ac-
Hamielec & Penlidis, 1998) has employed CFD simu-
lations to acquire data and information that allow a count of the 3-D variation of velocities within the
more complete modelling of the process. The results liquid-phase of a reactor, ignoring the temperature
indicate that a better representation of the interaction and composition profiles. On the other hand, the
between fluid flow behaviour and other process phe- process simulation model could employ a well-
nomena is highly beneficial. mixedness assumption to describe the mass and
The simplest way of reaping some of the benefits of energy conservation (including the reaction) in the
the combined application of CFD and process simula- liquid phase, as well as the equilibrium with the
tion is to use them in a sequential manner: first CFD vapour phase.
is used to compute the flow field; then the informa- The phenomena described by the CFD model are
tion gained from these results is somehow incorpo- assumed to be much faster than those described by
rated in the models used for process simulation (e.g. the process simulation model. Again, considering
by identifying a number of interacting spatial regions, the two-phase reactor mentioned above as an exam-
each of which can be approximated as well-mixed by ple, this is equivalent to assuming that the time it
the process simulation model). However, in many takes for the velocity field to settle down following
practical applications, hydrodynamics evolves signifi- any external disturbance (e.g. in mixing intensity) is
cantly during the process, being affected by changes much shorter than the characteristic time constants
in composition and/or temperature. A tighter degree associated with the mass and energy dynamics.
of interfacing between CFD and process simulation is
necessary in such cases. The above assumptions allow us to design an overall
This paper describes a software interface that sup- software architecture in which control of the simulation
ports the close interaction between a process simula- is held by the process simulation package. An addi-
tion package (gPROMS by Process Systems tional justification for such a design is that, in addition
Enterprise Ltd.) and a CFD package (Fluent by Flu-
to the region that is common to both the process
ent Inc.). The two software tools act in a complemen-
simulation model and the CFD model, the former
tary manner, exchanging critical parameters during a
model will often also include other entities (e.g. other
simulation and continuously updating the dynamic
unit operations) that are completely unknown to the
process description. The next section presents the
latter; thus, the process simulation tool has a wider
scope of the interface and describes the architecture
adopted for the combined tool. We then proceed to view of the process being modelled, and it alone has
outline some aspects of the implementation of the responsibility for the interactions among these regions.
interface. One example of chemical reactor illustrating On the other hand, the CFD calculation may be viewed
the applicability and benefits of this approach is also as providing certain well-defined calculation services to
presented. Finally, we conclude with some remarks on the process simulation model, e.g. in the two-phase
what has been achieved so far and identify some ar- reactor example, it computes the heat transfer coeffi-
eas of possible development. cient for given density and viscosity of the liquid mix-
ture. Hence, in this respect, the CFD tool becomes a
provider of fluid dynamical services in much the same
2. Scope and architecture of the interface way as a physical property package interfaced to the
process simulation tool provides thermodynamic ser-
The architecture of the interface described in this vices to it.
F. Bezzo et al. / Computers and Chemical Engineering 24 (2000) 653-658 655

3. Implementation of the interface of a certain quantity of interest - its ‘output’ -


(e.g. a surface-averaged heat transfer coefficient) for
As has already been mentioned, the process simula- given values of its ‘inputs’. The latter typically comprise
tion tool used for this work is the commercial package fluid properties (e.g. density and viscosity) and other
gPROMS. This is a state-of-the-art process modelling important parameters (e.g. impeller speed).
tool originally developed at Imperial College, London The FOI mentioned above essentially defines the
(Barton & Pantelides, 1994; Oh & Pantelides, 1996) and behaviour of a general class of foreign objects, all
more recently commercialised by Process Systems En- implemented by the same CFD package (e.g. Fluent).
terprise Ltd. A major advantage of using gPROMS is Specific instances of this class may correspond to indi-
its open architecture that allows both external software vidual items of equipment or spatial regions, each
to be incorporated within gPROMS, and gPROMS modelled separately. Each instance is characterised by
itself to be incorporated within other software. Of its own geometry and also by the way this is repre-
particular interest to us is gPROMS’ foreign object sented within the CFD package (e.g. the discretisation
interface (FOI). A foreign object (Kakhu, Keeping, Lu grid). The definition of an instance in terms of this
& Pantelides, 1998) is simply an external piece of information is carried out before the combined simula-
software that provides certain computational services to tion is initiated; in fact, state-of-the-art CFD packages,
native gPROMS models; examples of such foreign ob- such as Fluent, provide pre-processors that allow the
jects include a physical property package computing user to define the geometry and to derive an appropri-
thermodynamic and transport properties, a spreadsheet ate discretisation grid using a graphical user interface.
carrying out costing calculations, or a software module During the simulation, gPROMS issues calls to the
written in a conventional programming language (e.g. various methods of the Foreign Object passing to them
FORTRAN) to simulate an individual unit operation (e.g. the current values of their inputs and requesting the
a distillation column). values of their outputs. In the simplest implementation,
The FOI is a general, published (PSE Ltd., 1999) each such call triggers a CFD calculation which is
initialised using previously generated result points (see
protocol that gPROMS employs for all its communica-
above). When the calculation converges, the quantity
tion with foreign objects of whatever type. The actual
required by the method is computed by post-processing
communication between gPROMS and the external
the results in a ‘user defined subroutine’, a standard
software is implemented using ‘middleware’ based on
feature in Fluent and other CFD packages. Control is
CORBA’ which allows the two items of software to
then returned to gPROMS.
communicate in a manner which is completely transpar-
ent to the user even if they are executing on quite
different computers. This is especially important for the
4. The example process
purposes of the interface considered in this paper as
CFD software may run on specialised hardware.
To illustrate the applicability of the combined
For the purposes of interfacing gPROMS to the
gPROMS/Fluent modelling, we use it to study a semi-
CFD package, the latter was ‘wrapped’ within a FOI
batch reactor (Fig. 1) which forms part of an existing
that exposes a number of ‘methods’ (i.e. externally pilot plant at Imperial College, London. The tank is
accessible procedures). Each method returns the value fitted with a double impeller centred shaft and a jacket
that can be used for either cooling or heating. Temper-
ature control in the tank is achieved by controlling the
temperature and flowrate of the jacket water inlet. The
water inlet temperature is controlled by means of a heat
exchanger on the water-recycling loop. The actual ma-
nipulated variables are cooling water flowrate F, and
vapour stream W, in the heat exchanger. More detailed
descriptions of this unit and its ancillary equipment and
operation have been presented by Liu (1995) and Liu
and Macchietto (1995).
For the purposes of the simulations reported in this
paper, the reactor is always operated in batch mode. In
the integrated approach, both gPROMS and Fluent are
used to model the system, with the following division of
Fig.1. Semi-batch reactor. responsibilities:
1. gPROMS
’ Common Object Request Broker Architecture. o Jacket model
656 F. Bezzo et al. /Computers and Chemical Engineering 24 (2000) 653-658

the CFD computation in a user provided subroutine


making use of correlations presented by Launder and
SO Spalding (1974). Thus, local values of heat transfer
370 coefficient are calculated from local values of kinetic
$0
energy passed by Fluent for each grid cell and are then
averaged over the heat exchange surface to obtain the
=50
3 global heat transfer coefficient.
640
An important parameter in this model is the impeller
+130
0 speed that ultimately determines the intensity of heat
20 transfer between the process fluid and the jacket. Al-
though this parameter is not used directly by the
gPROMS-side model, it is introduced in it so that it can
be manipulated as a design or control decision.
gPROMS merely passes its value, together with physi-
cal properties (viscosity, density, heat capacity and
conductivity), to the CFD-side model where it is actu-
ally used.
The above combined model has been used for the
dynamic simulation of one reacting system. This exam-
ple considers the exothermic (AH= - 60 kJ/mol) ester-
ification of methanol using acetic anhydride:
CH,OH + (CH$O)20 + CH,COOCH, + CH,COOH
50% of the initial molar charge in the tank is consti-
tuted by the two reactants in equal proportions. The
remaining 50% is made up by the products used as
solvent.
JPO The simulation studies for this example make use of
r-..
310'
0
'
1000
'
3000 3000 4000 5000 6000
the axially distributed jacket model (see above) and
T+mr (=.a) implement the following simple control strategy:
-'-'- m.oto?z tmq?9r.t- rim h 150)
1. Start with an initial reactor temperature T = 3 10 K.
------. ~.atO?z tmmpmrrt- d&h SO)
- rrrctor tllprrmturr doubh 150) 2. Heat until the temperature reaches 365 K.
3. Maintain the temperature constant at this level until
(b) the methanol molar fraction drops below 0.15.
4. Heat until the temperature reaches 390 K.
Fig. 2. Effects of impeller geometry and speed of agitation of (a) 5. Maintain the temperature constant at this level until
process-side heat transfer coefficient and (b) reactor temperature.
the methanol molar fraction drops below 0.05.
6. Cool the reactor contents down to 310 K.
o Control model A simple proportional controller is used for tempera-
o Tank model: mass and energy balance, physical ture control when appropriate.
property estimation Simulations have been carried out using the double
2. Fluent impeller centred shaft at two different velocities
o Tank model: momentum balance, estimation of (RPM = 180 and 90) and also with the single impeller
process-side heat transfer coefficient. centred shaft (RPM = 180). In all cases, the impeller
The tank model used by gPROMS is based on that speed has been kept constant throughout the
proposed by Macquart-Moulin (1998). It assumes uni- simulation.
form concentration and temperature profiles. The Some of the results obtained are illustrated in Fig. 2.
jacket model accounts for axial (vertical) variations of Fig. 2(a) illustrates the sensitivity of the heat transfer
temperature in the jacket. The heat transfer coefficient coefficient to fluid flow behaviour and process condi-
on the jacket side is taken to be a constant 1500 W/m2 tions (temperature and physical properties) changing
K. during the reaction. As can be seen from Fig. 2(b), the
A 3-D model of the tank is used in Fluent. Two impeller speed can significantly affect the process dy-
different versions of this model are used, employing namics and the effectiveness of control strategy. In
single and double mixing impeller centred shafts respec- particular, a low impeller speed (RPM = 90) impairs
tively. In both cases, the process-side heat transfer the capability of the controller to regulate the process
coefficient is computed by post-processing the results of behaviour as the heat transfer coefficient is not suffi-
F. Bezzo et al. /Computers and Chemical Engineering 24 (2000) 653-658 651

ciently high for ensuring good temperature control by about 15%. Overall, agitation and impeller design
from the jacket. On the contrary, at higher RPM, the have a major influence on the productivity of the
system is able to follow set points quite closely. process.
The effects of impeller geometry can also be seen Fig. 3 shows a typical profile of the magnitude of the
from these results. As expected, a double impeller leads velocity vector within the tank. It can be seen that this
to higher process-side heat transfer coefficients than a varies appreciably along the wall separating the tank
single impeller operated at the same speed. However, from the surrounding jacket, and this has a correspond-
the effect on the temperature control is less ing effect on the process-side heat transfer coefficient.
pronounced. In order to investigate the influence that this variation
It is also interesting to consider the effect of agitation may have on the process performance, we divided the
on batch times. A double impeller operated at the lower heat exchange surface into a number of adjacent hori-
speed of RPM = 90 leads to each batch requiring about zontal zones and modified the post-processing of the
45% more time than when it is operated at RPM = 180. CFD results to compute a separate (local) heat transfer
Even using a single impeller at the same speed makes coefficient within each zone. The gPROMS model then
the process about 8% slower. The differences between takes account of the variation in both heat transfer
different impeller designs and speeds are even more coefficient and jacket fluid temperature along the
significant if only considers only the ‘dead times’ in- jacket.
volved in the operating procedure described above. The results of the modified model for the double
These are the times necessary to heat the reactor up impeller case were found to be very similar to those of
from 310 to 365 K and to cool it down from 390 to 310 the original model. However, it is interesting to observe
K (steps 2 and 6), during which little reaction takes the variation of the heat transfer coefficient behaviour
place. Compared to the best case of a double impeller shown in Fig. 4.
at RPM = 180, the use of a double impeller at RPM = In particular, it appears that, throughout the simula-
90 increases these dead times by about 65%, while the tion, significant heat exchange occurs only in a limited
use of a single impeller at RPM = 180 increases them part of the heat exchange surface. It may well be
possible to modify the impeller design to improve uni-
formity in heat exchange.

5. Concluding remarks

This paper has advocated that the tight interfacing of


CFD calculations within conventional process simula-
tion tools is highly desirable, opening the possibility for
process modelling of an unprecedented degree of detail
and predictive accuracy. It is also practically feasible
given the open architecture of current state-of-the-art
Fig. 3. Velocity magnitude profile within tank. process modelling tools. These points were demon-
strated by the development of a general and flexible
interface allowing the automated exchange of critical
parameters between a process simulation package
(gPROMS) and a CFD package (Fluent).
The example presented clearly illustrates the benefits
of the new approach in allowing the detailed interac-
tions between fluid mechanics, heat transfer, reaction
and control strategy to be examined, and valuable
insights regarding important design and operational
decisions to be gained. Clearly, this could not have
been achieved by either of the two tools in isolation.
Our current work in this area is concerned with
widening the scope of processes to which this approach
can be applied. The examples presented here employed
lumped process simulation models, which assumed that
Fig. 4. Variation of process-side heat transfer coefficient with time
the entire region of interest was well mixed. Thus, the
and vertical position. The value 0 on the ‘jacket height’ axis corre- burden for accounting for spatial variations is placed
sponds to the top of the tank. entirely on the CFD model. This may not be appropri-
658 F. Bezzo et al. /Computers and Chemical Engineering 24 (2000) 653-658

ate, especially in cases in which non-uniformities in discrete/continuous processes. American Institute of Chemical En-
gineering Journal, 40, 966-979.
concentration and temperature caused by incomplete
Kakhu, A. I., Keeping, B. R., Lu, Y., & Pantelides, C. C. (1998). An
mixing have a serious effect on phenomena which are open software architecture for process modelling and model-based
not represented in the CFD model (e.g. reaction, mass applications. In J. Pekny, & G. Blau, Proceedings of the third
transfer, crystal growth). Improving the efficiency of conference in foundations of computer-aidedprocess operations (pp.
the interaction is also important in view of the heavy 518-524). Cache Publications (American Institute of Chemical
Engineering Symposium Series, No. 320).
computational cost of the CFD calculations. Launder, B. E., & Spalding, D. B. (1972). Lectures in mathematical
Another important field of interest is the develop- models of turbulence. London, UK: Academic Press.
ment of novel control strategies that make use of the Liu, Z. H. (1995). An advanced process manufacturing system-design
additional information made available by the combined and application to a food processing pilot plant. Ph.D. thesis.
London, UK: University of London.
models. For instance, in many biological systems, ex-
Liu, Z. H., & Macchietto, S. (1995). Model based control of a
cessive shear stress can severely damage cells and affect multipurpose batch reactor. An experimental study. Computers &
the process productivity. Integrated simulation may be Chemical Engineering, 19S, S477-S482.
used to optimise the agitation intensity in order to Macquart-Moulin, E. (1998). Batch reactor safety uerz@cation. Inter-
nal report. University of London, UK: Centre for Process Sys-
maintain shear stress below a specified level while en-
tems Engineering.
suring that mass and heat transfer rates exceed certain Maggioris, D., Goulas, A., Alexopoulos, A. H., Chatzi, E. G., &
minimal values. New control strategies could thus be Kiparissides, C. (1998). Use of CFD in prediction of particle size
devised and implemented for particularly sensitive distribution in suspension polymer reactors. Computers & Chemi-
systems. cal Engineering, 22S, S315-S322.
Noorman, H., Morud, K., Hjertager, B. H., Tragardh, C., Larsso,
G., & Enfors, S. 0. (1993). CFD modelling and verification of
flow and conversion in 1 m3 bioreactor. Third international confer-
ence on bioreactor and bioprocess fluid dynamics (pp. 241-258).
Acknowledgements London, UK: Mechanical Engineering Publications Ltd.
Oh, M., & Pantelides, C. C. (1996). A modelling and simulation
The authors are indebted to Dr Zbigniew Urban of language for combined lumped and distributed parameter sys-
the Mitsubishi Chemical Corporation for many useful tems. Computers & Chemical Engineering, 20, 61 l-633.
Pereira, C. J. (1999). Enviromentally friendly processes. Chemical
discussions. The contributions of SGI Inc. and Fluent Engineering Science, 54, 1959-1973.
Inc. in providing us with technical assistance as well as Process Systems Enterprise Ltd. (1999). gPROMS advanced user
access to computer hardware and software are grate- guide. London, UK: Process Systems Enterprise Ltd.
fully acknowledged. van Wachem, B. G. M., Schouten, J. C., Krishna, R., & van den
Bleek, C. M. (1998). Eulerian simulations of bubbling behaviour
in gas-solid fluidised beds. Computers & Chemical Engineering,
22S, S299-S306.
Vivaldo Lima, E., Wood, P. E., Hamielec, A. E., & Penlidis, A.
References
(1998). Calculations of the particle size distribution in suspension
polymerization using a compartment-mixing model. Canadian
Barton, P. I., & Pantelides, C. C. (1994). Modeling of combined Journal of Chemical Engineering, 76, 495-505.

You might also like