Beruflich Dokumente
Kultur Dokumente
www.elsevier.com/locate/apthermeng
Planta Piloto de Ingenierı́a Quı́mica, PLAPIQUI (UNS-CONICET), Camino La Carrindanga Km 7, 8000 Bahia Blanca, Argentina
Abstract
This work addresses the dynamic optimisation of the cryogenic sector in a large-scale natural gas processing plant. Main attention is
focused on rigorous dynamic modelling of countercurrent heat exchangers with phase change and a subsequent high-pressure separation
tank. The original distributed parameter problem, which results from dynamic energy balances in countercurrent heat exchangers, is
transformed into an ordinary differential system (ODE) by performing spatial discretisation with the method of lines. The entire model
comprises algebraic equations for thermodynamic predictions with the Soave–Redlich–Kwong (SRK) equation of state, hydraulic and
design equations. The differential-algebraic equation (DAE) optimisation problem is solved with an advanced simultaneous strategy that
transforms the original problem into a large-scale nonlinear programming (NLP) problem through discretisation in time of the entire set
of variables by collocation on finite elements. Model resolution provides optimal temporal and spatial profiles for pressure and temper-
ature in heat exchangers, together with partial condensation description.
Ó 2006 Elsevier Ltd. All rights reserved.
Keywords: Dynamic optimisation; Cryogenic heat exchanger; Partial condensation; Large-scale NLP
1359-4311/$ - see front matter Ó 2006 Elsevier Ltd. All rights reserved.
doi:10.1016/j.applthermaleng.2006.02.044
M. Rodrı́guez, M.S. Diaz / Applied Thermal Engineering 27 (2007) 1182–1190 1183
Nomenclature
Asup superficial area per length (m2/m) R gas constant (m3 bar/K kmole)
At heat transfer area in tubes (m2) RL pressure drop correction factor for baffle leak-
Cp heat capacity of fluid (kJ/kmole K) age effects
Cv valve flow capacity (gpm/Psi0.5) t time (min)
Din diameter of tube (inside) (m) Ts fluid temperature in shell (K)
Fj fluid flowrate (kg/min) Tt fluid temperature in tubes (K)
G mass velocity inside tube (kg/min) V vapour flow rate (kmole/min)
h liquid enthalpy (MJ/kmole) Vmax maximum velocity (m/s)
H vapour enthalpy (MJ/kmole) VolV vapour volume (m3)
hp liquid enthalpy in previous step (MJ/kmole) Vp vapour flow rate in previous step (kmole/min)
Hp vapour enthalpy in previous step (MJ/kmole) vt fluid velocity in tubes (m/min)
ht liquid height in the tank (m) x liquid mole fraction
Kij equilibrium ratio for component j in grid point i y vapour mole fraction
Kf Bell-Delaware correlation z compressibility factor
L liquid flowrate (kmole/min)
Long length of straight tube (m) Subscripts
Lp liquid flowrate in previous step (kmole/min) i cell
M total holdup (kmole) j component
ML liquid holdup (kmole)
mVL interfacial mole flowrate (kmole/min) Greek symbols
MV vapour holdup (kmole) qL liquid density (kg/m3)
MW molecular weight qr density at reference temperature (kg/m3)
P molL liquid molecular weight qt fluid density in tubes (kg/m3)
P molt molecular weight in tubes qV vapour density (kg/m3)
P molV vapour molecular weight /L liquid fugacity coefficient
Ps pressure in shell (bar) /V vapour fugacity coefficient
Psp pressure in shell in previous step (bar) l viscosity of fluid (Pa s)
Pt pressure in tubes (bar) DPc pressure drop at cross-flow zone (bar)
Qt net rate of heat transfer in tubes (MJ/min) DPs pressure drop (bar)
r high-pressure separation tank radio (m) DPw pressure drop at window zone (bar)
Re Reynolds number Dz length of each cell (m)
Regarding the simulation of heat exchangers with phase heat exchangers is required for process control and optimal
change, Zinemanas et al. [14] proposed an algorithm for operation. However, dynamic optimisation modelling for
the simulation of horizontal or vertical 1–1 shell and tubes heat exchangers with phase change has hardly been
heat exchangers with phase change and one or more com- addressed due to its complex and large-scale nature.
ponents. The algorithm calculated local values of the vari- In this work, we have performed dynamic modelling
ables along the heat exchangers and accommodates and optimisation of main units in the cryogenic sector of
changes of flow patterns. They based the calculation on a natural gas turboexpansion plants, which include counter-
numerical integration with constant enthalpy steps. For current heat exchangers with phase change and high-pres-
each step the physical properties (temperature, phase com- sure separation tanks. The model comprises differential
position and pressure drop) were a function of the operat- energy and mass balances, hydraulic correlations and rig-
ing conditions for that step. orous thermodynamic predictions with the Soave–Red-
As heat exchangers are part of larger industrial pro- lich–Kwong SRK, [12] equation of state for equilibrium
cesses and systems, transient operation can occur fre- calculations. Energy balances for countercurrent heat
quently, and the transient response of the heat exchanger exchangers give rise to a distributed parameters problem
can affect overall system performance. They are exposed that is in turn transformed into an ordinary differential
to transient behaviour not only during start up and shut one, through spatial discretisation applying the method
down operations, but also due to variations of external of lines. The dynamic optimisation problem, which
loads that lead to disturbances in inlet temperature and includes both ordinary differential equations and algebraic
flowrate of fluid streams and changes of heat transfer con- ones as constraints (DAE), has been solved through a
ditions. Knowledge of transient response of shell and tube simultaneous strategy [2]. This approach proceeds by
1184 M. Rodrı́guez, M.S. Diaz / Applied Thermal Engineering 27 (2007) 1182–1190
discretising the DAE system by collocation on finite ele- The dynamic optimisation model for the cryogenic sys-
ments. The resulting large-scale nonlinear programming tem has been formulated within a simultaneous optimisa-
(NLP) problem is solved with a reduced space successive tion approach [4] in which profiles for both state and
quadratic programming algorithm [4]. The solution of optimisation variables are represented as piecewise polyno-
the DAE optimisation problem provides state and control mials over finite elements in time and the DAE system is
variables profiles in space and time, as well as a detailed discretised by orthogonal collocation over these finite ele-
description of partial phase change in countercurrent heat ments. In this way, the DAE optimisation problem is trans-
exchangers. formed into a large-scale nonlinear programming (NLP)
one that requires special solution strategies. In particular,
2. Process description we have applied a barrier point method with successive
quadratic programming (SQP) techniques, within program
In typical turboexpansion plants that extract ethane IPOPT [4]. The main idea in the barrier method is to solve
from natural gas, the feed gas is cooled both in countercur- successive parametric NLPs, for decreasing values of the
rent cryogenic heat exchangers with residual gas and in barrier parameter, each of them giving a solution that is
demethanizer side and bottom reboilers. The partially con- used as a good initial point for the following barrier prob-
densed gas feed is sent to a high-pressure separator. The lem. Besides, each parametric NLP is an equality con-
vapour is expanded through a turboexpander to obtain strained problem and can be solved by the application of
the low temperatures required for high ethane recovery reduced Hessian SQP techniques, with the advantage
and is fed to a demethanizer column. The liquid from the of presenting unconstrained quadratic subproblems, of
high-pressure separator enters the demethanizer at its low- straightforward resolution [2].
est feed point. Methane and nitrogen constitute top prod-
uct and ethane and heavier hydrocarbons are obtained as
4. Mathematical model
bottom product. Carbon dioxide is distributed between
top and bottom streams.
Cryogenic heat exchangers are baffled shell-and-tube
In this work, special attention has been devoted to
single-pass countercurrent ones, in which the fluid in the
dynamic modelling of the system consisting of shell and
tubes is residual gas (mainly methane), and the fluid in
tube cryogenic heat exchangers and high-pressure separa-
the shell is natural gas. The partially condensed natural
tors. In particular, rigorous dynamic models for cryogenic
gas coming out of cryogenic heat exchangers is sent to a
heat exchangers, where natural gas phase change (partial
high-pressure separation tank. Fig. 1 shows the diagram
condensation) takes place, have required special effort
of the system with heat exchangers and high-pressure sep-
and these models are described in the following section.
arator and Table 1 shows both fluids composition. A
detailed description of the models is given below.
3. Optimisation strategy
The general formulation of the differential algebraic 4.1. Cryogenic heat exchangers
equation (DAE) optimisation problem is as follows:
In these heat exchangers, inlet natural gas is cooled and
min Uðzðtf Þ; yðtf Þ; uðtf Þ; tf ; pÞ partially condensed in countercurrent flow with residual
dzðtÞ
s:t: ¼ f ðzðtÞ; yðtÞ; uðtÞ; p; tÞ
dt
hðzðtÞ; yðtÞ; uðtÞ; p; tÞ ¼ 0
To Turboexpander
zð0Þ ¼ z0 From Demethanizer T
hS ðzðtS Þ; yðtS Þ; uðtS Þ; p; tS Þ ¼ 0
zðtÞ 2 ½zl ; zu ; yðtÞ 2 ½xl ; xu
ht
uðtÞ 2 ½ul ; uu ; p 2 ½pl ; pu
L
tt 2 ½tfl ; tfu
G
where U is a scalar objective function; f is the right hand To Demethanizer
side of differential equations constraints; h are algebraic
equation constraints, hS are additional point conditions
at times tS; z are differential state variables; z0 are the initial
values of z; y are algebraic state variables; u are control
Tout
variables; p are time independent variables and tf is the fi- Inlet Natural Gas
nal time. This system presents initial condition and point
conditions at time tS. Fig. 1. Cryogenic heat exchangers and high-pressure separator system.
M. Rodrı́guez, M.S. Diaz / Applied Thermal Engineering 27 (2007) 1182–1190 1185
Hot stream
at Ts0
E-1
Cold stream
at Tt0
Tube side Pressure profile along the heat exchanger has been calcu-
dT ti vt ht Asup lated at each grid point assuming steady state conditions
¼ i ðT ti T ti1 Þ þ ðT s T ti Þ ð3Þ through the Bell-Delaware method [1], which takes into
dt Dz qti C pt At L i
account exchanger geometry, fluid type and velocity.
Shell side The exchanger configuration and design parameters are
dT si vsi hs Asup reported in Table 2. Algebraic equations for pressure drop
¼ ðT s T si1 Þ þ ðT t T si Þ ð4Þ include:
dt Dz i q si C p s A s L i
The model includes algebraic equations that incorporate P spi P si ¼ DP si ð11Þ
the functionality of the density, the compressibility factor DP si ¼ ðA DP ci þ B DP wi Þ RL þ C DP ci ð12Þ
!
and the velocity with temperature at each grid point i qVi V 2maxi
DP ci ¼ ðK a þ N c K f i Þ ð13Þ
MW P 2
qj;i ¼ ð5Þ
zj;i R T j;i _ 2i
ð2 þ 0:6 N cw Þ mt
Fj DP wi ¼ ð14Þ
vj;i ¼ ð6Þ qVi
qj;i Aj
B C D E
zj;i ¼ aj þ bj T j;i ð7Þ K fi ¼ A þ þ ð15Þ
Rei Re2i Re3i Re4i
where j refers either to shell or tube side, and aj and bj are q V maxi Din
Rei ¼ Vi ð16Þ
constants that have been determined through rigorous stea- l
dy state process simulations [6,7] based on SRK equation
with A, B, C, D, E corresponding to Bell-Delaware method
of state [12] predictions.
and Ka, Nc and Ncw are calculated as function of heat ex-
changer geometry.
4.1.2. Heat exchanger with phase change
Algebraic equations also include rigorous thermody-
The model of an exchanger with phase change consists
namic predictions. The main algebraic equations for each
of two parts: the submodel of the two-phase flow and the
grid point i are
submodel of the single phase flow. For tube side fluid
(residual gas), a single phase flow is considered, represented Internal energy:
by sets of equations (3), (5), (6) and (7). For shell side fluid
Ei ¼ M V;i H i þ M L;i hi ð17Þ
(natural gas), partial condensation takes place and a two-
phase flow model has been formulated. Basic assumptions Equilibrium ratio for component j (Ki,j):
are that vapour and liquid are in thermodynamic equilib-
rium, but they may have different velocities; the flow is /Li;j
one-dimensional, i.e., the vapour and the liquid each have K i;j ¼ ð18Þ
/Vi;j
an average cross-sectional velocity and the void fraction is
used to describe the ratio of cross-sectional area occupied y i;j ¼ K i;j xi;j ð19Þ
by the vapour to the total cross-sectional area. Mass bal-
Summation equations:
ances for both the liquid and vapour phase have been for-
X X
mulated, where mVL,i is the interfacial mole transport rate y i;j xi;j ¼ 0 ð20Þ
from vapour to liquid phase. Having performed the spatial j j
discretisation, the following equations constitute the
model: Vapour (Hi) and liquid enthalpy (hi) calculation:
Vapour phase
dM V;i
¼ V i1 V i mVL;i ð8Þ Table 2
dt Heat exchanger configurations and design parameters
Liquid phase Shell internal diameter (m) 0.928
dM L;i Tube outside diameter, D0 (m) 0.019
¼ Li1 Li þ mVL;i ð9Þ Tube pitch, PT (m) 0.0254
dt Array n (triangular)
Since thermodynamic equilibrium between phases is as- Number of tubes, NT 990
sumed at any instant, only one energy balance for the mix- Number of tube pass, N Tp 1
Number of shell pass, N Ts 1
ture is required, where E refers to internal energy Baffle spacing, LB (m) 0.6096
Shell length, Ls (m) 12.192
dEi
¼ Li1 hi1 þ V i1 H i1 Li hi V i H i þ Qti Bundle-to-shell diametral clearance, Db (m) 0.0695
dt Thickness of baffle, tb (m) 0.005
ð10Þ Baffle cut (%) 40
M. Rodrı́guez, M.S. Diaz / Applied Thermal Engineering 27 (2007) 1182–1190 1187
H i ¼ H ideal
i DH i ð21Þ Vapour molar holdup (MV):
X
nc
qV VolV
H ideal
i ¼ H ideal
i;j ðT i Þy i;j ð22Þ MV ¼ ð36Þ
j¼1 P molV
hi ¼ hideal
i Dhi ð23Þ Total molar holdup (M):
X
nc
hideal ¼ hideal M ¼ MV þ ML ð37Þ
i i;j ðT i Þxi;j ð24Þ
j¼1 Liquid flowrate (L):
sffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
where DHi and Dhi correspond to residual enthalpies. These ðP t P s Þ þ gqL ðht þ rÞ
functions, together with fugacity coefficients and compress- L ¼ Cvx ð38Þ
qL =qw
ibility factors for both liquid and vapour phases are calcu-
lated with SRK equation of state [12]:
4.3. Optimisation problem
Residual enthalpies:
L (Kmol/min)
and it can be achieved in about twelve minutes, from an ini- 0.75
tial temperature of 212 K (Fig. 3). Profiles for optimisation 65.315 0.70
variables are presented in Figs. 4 and 5; it can be noted that 0.65
the lower required temperature in the high-pressure separa- 65.310 0.60
tion tank renders a consequent decrease in the residual gas 0.55
bypass (G), from an initial value of 77.5 kmole/min to 65.305 0.50
73.2 kmole/min, as now an increased cooling charge is 0.45
required in the first cryogenic heat exchanger (Fig. 4). It 65.300 0.40
can also be seen that the residual gas outlet temperature 0 5 10 15 20 25 30
from the cryogenic heat exchangers remains within speci- time (min)
fied bounds along the transient (303 and 306 K). Fig. 5
Fig. 5. Optimal profile for liquid stream in high-pressure separation tank
shows the associated liquid flowrate stream increase in (L) and liquid height in the horizontal tank (ht).
the high-pressure separation tank. Temperature spatial
212.0
211.9
211.8
Ts (K)
211.7
211.6
211.5
211.4
0 5 10 15 20 25 30
time (min)
Fig. 6. Temperature profile for first heat exchanger, shell side fluid (Ts).
Fig. 3. Optimal temperature profile for high-pressure separation tank
(Ts).
58.5
58.2
83 307
57.9
82 G
81 306 57.6
Tout
80 57.3
Ps (bar)
79 305
57.0
G (Kmol/min)
78
304 56.7
Tout (K)
77
76 56.4
303
75 56.1
74 302 55.8
73
55.5
72 301
71 0 6
2 5
70 300 11.5 4
tim 21 3
e (m ls
cel
0 5 10 15 20 25 30 30.5 2
in) 40 1
time (min)
Fig. 4. Optimal profile for residual gas bypass flowrate (G, optimisation Fig. 7. Optimal pressure profile for shell side fluid in second cryogenic
variable) and residual gas outlet temperature (Tout). heat exchanger (two-phase flow).
M. Rodrı́guez, M.S. Diaz / Applied Thermal Engineering 27 (2007) 1182–1190 1189
25.0 V aa
z¼
V b RT ðV þ bÞ
20.0
(Kmol/min)
where
X
L
15.0
aa ¼ xj z1j
10.0 xj ¼ xj aj aj
X
5.0 z1j ¼ xk ð1 k j;k Þ
k
X
0.0
6 b¼ bj
5 40
4 30.5 j
cel 3 21
ls 11.5 )
2 2
(min
RT cj
1 0 time bj ¼ 0:08664
P cj
Fig. 8. Optimal liquid flowrate in second cryogenic heat exchanger (two- !0:5
phase flow).
0:42747R2 T 2cj
aj ¼
P cj
" 0:5 #
and temporal profiles in the first cryogenic heat exchanger, T
shell side fluid, are shown in Fig. 6, where a spatial discret- aj ¼ 1 þ mj 1
T cj
isation of eight cells has been considered. The second heat
exchanger behaviour is presented in Figs. 7 and 8, taking mj ¼ 0:48 þ 1:574xj 0:176x2j
into account six cells in the spatially discretised model. Fugacity coefficient for component j in each phase at each
Optimal pressure profile in the two-phase flow is shown stage ð/Vi;j ; /Li;j Þ
in Fig. 7, for condensing natural gas. Finally, condensing
fluid flowrate is plotted in Fig. 8; it must be noted that bj
ln /j ¼ ðz 1Þ lnðz BÞ
liquid fraction in the outlet stream of the cryogenic heat b
exchanger is in agreement with current plant data, A 2aj aj z1j bj B
ln 1 þ
31 kmole/min, which corresponds to a condensed fraction B aa b z
of 28%.
Residual enthalpy for each phase (DHi, Dhi)
6. Conclusions DH 1 B X 1 þ mj
¼ 1 ln 1 þ xj z1j
RT bRT z j
aj
A rigorous dynamic optimisation model has been pre-
sented for cryogenic heat exchangers and high-pressure where
separator from a natural gas processing plant. The
dynamic models for the second heat exchanger, where nat- aaP
A¼
ural gas partial condensation takes place, have required R2 T 2
special effort. Optimal profiles have been obtained for con- bP
B¼
trol and state variables through the solution of a rigorous RT
dynamic model of process units in the plant. The optimisa-
Phase densities at each stage (qV, qL)
tion DAE problem has been solved with a simultaneous
approach that discretises both control and state variables P
q¼
and solves a large scale NLP, with advanced mathematical zRT
programming techniques. This strategy has allowed the
inclusion of path constraints, as residual gas outlet temper- References
ature, in the transient model. The inclusion of rigorous
thermodynamic models within a simultaneous approach [1] K.J. Bell, Delware method for shell side design, Petro/Chem Eng. 1
is also a challenging issue due to the high nonlinearity that (1960) 26–40.
is added to the problem by these thermodynamic equa- [2] L.T. Biegler, A. Cervantes, A. Waechter, Advances in simultaneous
tions. Model resolution provides optimal temporal and strategies for dynamic process optimization, Chem. Eng. Sci. 57
(2002) 575–593.
spatial profiles and a great deal of information describing [3] A. Cervantes, L.T. Biegler, Large-scale DAE optimization using
the two-phase flow and fluid separation in the cryogenic simultaneous nonlinear programming formulations, AIChE J. 44
sector of a large scale plant. (1998) 1038–1050.
1190 M. Rodrı́guez, M.S. Diaz / Applied Thermal Engineering 27 (2007) 1182–1190
[4] A. Cervantes, A. Waechter, R. Tutuncu, L.T. Biegler, A reduced [9] C. Lakshmanan, O. Potter, Dynamic simulation of a countercurrent
space interior point strategy for optimization of differential algebraic heat exchanger modeling-start-up and frequency response, Int.
systems, Comput. Chem. Eng. 24 (2000) 39–51. Commun. Heat Mass Transfer 21 (1994) 421–434.
[5] D. Correa, J. Marchetti, Dynamic simulation of shell-and-tube heat [10] A. Raghunathan, M.S. Diaz, L.T. Biegler, An MPEC formulation for
exchangers, Heat Transfer Eng. 8 (1987) 50–59. dynamic optimization of distillation operations, Comput. Chem. Eng.
[6] M.S. Diaz, A. Serrani, R. de Beistegui, E. Brignole, An MINLP 28 (2004) 2037–2052.
Strategy for the Debottlenecking problem in an Ethane Extraction [11] F.E. Romie, Transient response of the counterflow heat exchanger, J.
Plant, Comput. Chem. Eng. 19s (1995) 175–178. Heat Transfer 106 (1984) 620–626.
[7] M.S. Diaz, A. Serrani, A. Bandoni, E. Brignole, Automatic design [12] G. Soave, Equilibrium constants for a modified Redlich–Kwong
and optimization of natural gas plants, Ind. Eng. Chem. Res. 36 equation of state, Chem. Eng. Sci. 27 (1972) 1197–1203.
(1997) 715–724. [13] J. Yin, M. Jensen, Analytic model for transient heat exchanger
[8] M.S. Diaz, S. Tonelli, A. Bandoni, L.T. Biegler, Dynamic optimiza- response, Int. J. Heat Mass Transfer 46 (2003) 3255–3264.
tion for switching between steady states in cryogenic plants, Found. [14] D. Zinemanas, D. Hasson, E. Kehat, Simulation of heat exchangers
Comput. Aided Process Oper. 4 (2003) 601–604. with change of phase, Comput. Chem. Eng. 8 (1984) 367–375.