Dynamic Modeling and Optimization of LargeScale Cryogenic Processes

  • Slides: 50
Download presentation
Dynamic Modeling and Optimization of Large-Scale Cryogenic Processes Maria Soledad Diaz Planta Piloto de

Dynamic Modeling and Optimization of Large-Scale Cryogenic Processes Maria Soledad Diaz Planta Piloto de Ingeniería Química Universidad Nacional del Sur -CONICET Bahía Blanca, ARGENTINA

Outline Ø Objective Ø Natural Gas Processing Plants Ø Methodology Ø Mathematical Models Ø

Outline Ø Objective Ø Natural Gas Processing Plants Ø Methodology Ø Mathematical Models Ø Discussion of Results Ø Conclusions and Current Work 2

Objective Ø Dynamic optimization model for natural gas processing plant units • • •

Objective Ø Dynamic optimization model for natural gas processing plant units • • • Dynamic energy and mass balances Phase equilibrium calculations with cubic equation of state Hydraulic correlations Phase change in countercurrent heat exchanger Carbon dioxide precipitation in column Boiler dynamic optimization for controllers parameters Ø Simultaneous dynamic optimization approach • Discretization of state and control variables • Resolution of large-scale Nonlinear Programming problem Ø Analysis of main variables temporal and spatial profiles 3

Natural Gas Processing Plants Ø Provide ethane as raw material for olefin plants (ethylene)

Natural Gas Processing Plants Ø Provide ethane as raw material for olefin plants (ethylene) and petrochemical Ø Technology: Turboexpansion Ø High pressure Ø Cryogenic conditions 4

NATURAL GAS PLANT D E H Y D R A T I O N

NATURAL GAS PLANT D E H Y D R A T I O N Ethane To Ethylene Plant Ethane Treatment CO 2 TRAIN A TRAIN B C 2 C 3 C 4 Propane Compression/ Recompression D E H Y D R A T I O N TRAIN C Separation Butane Fractionation Gasoline To Recompression TRAIN A C 3 C 4 TRAIN B Pipelines Absorption Plant 5

Natural gas composition 6

Natural gas composition 6

Cryogenic Sector Turboexpander Demethanizer Cryogenic Heat Exchangers High Pressure Separator to deethanizer 7 column

Cryogenic Sector Turboexpander Demethanizer Cryogenic Heat Exchangers High Pressure Separator to deethanizer 7 column

Previous Work Ø Operating conditions optimization in natural gas processing plants (NLP) (Diaz, Serrani,

Previous Work Ø Operating conditions optimization in natural gas processing plants (NLP) (Diaz, Serrani, Be Deistegui, Brignole, 1995) Ø Automatic design and debottlenecking of ethane extraction plants (MINLP) (Diaz, Serrani, Bandoni Brignole, 1997) Ø Thermodynamic model effect on the design and optimization of natural gas plants (NLP) (Diaz, Zabaloy, Brignole, 1999) Ø Flexibility of natural gas processing plants - Dual mode operation (Bilevel NLP) (Diaz, Bandoni, Brignole, 2002) 8

Dynamic Optimization Problem General Formulation min (z(tf), y(tf), u(tf), tf , p) z(t), y(t),

Dynamic Optimization Problem General Formulation min (z(tf), y(tf), u(tf), tf , p) z(t), y(t), u(t), tf , p st F(dz(t)/dt , (z(t), y(t), u(t), p, t)=0 G(z(t) , y(t), u(t), p, t) = 0 z. O = z(0) z(t) [zl, zu] u(t) [ul, uu] t, time z, differential variables y, algebraic variables y(t) [xl, xu] , p [pl, pu] , tf, final time u, control variables p, time independent parameters 9

Dynamic Optimization Strategy Simultaneous Approach Cervantes, Biegler (1998) Nonlinear DAE optimization problem Discretization of

Dynamic Optimization Strategy Simultaneous Approach Cervantes, Biegler (1998) Nonlinear DAE optimization problem Discretization of Control and State variables Collocation on finite elements Large-Scale Nonlinear Programming Problem (NLP) Interior Point Algorithm Biegler, Cervantes, Waechter (2002) 10

Simultaneous Dynamic Optimization Ø Discretization of differential equations (DAEs) and state Ø Ø Ø

Simultaneous Dynamic Optimization Ø Discretization of differential equations (DAEs) and state Ø Ø Ø and control variables Large-scale nonlinear problem Profile constraints handled directly Direct incorporation of equipment design variables DAE model solved only once Converges for unstable systems 11

Nonlinear Programming Problem Application of Barrier method As m è 0, x*(m) èx* 12

Nonlinear Programming Problem Application of Barrier method As m è 0, x*(m) èx* 12

Cryogenic Heat Exchangers and HP Separator To Recompression Rodriguez, Bandoni, Diaz (2004) Residual Gas

Cryogenic Heat Exchangers and HP Separator To Recompression Rodriguez, Bandoni, Diaz (2004) Residual Gas V To Turboexpander ht Phase Change Horizontal High Pressure Separator To Demethanizing Column Ts 2_i = 322 K Natural Gas 13

HE Model (no Phase Change) Energy Balances: Partial Differential Equations System Tube side Shell

HE Model (no Phase Change) Energy Balances: Partial Differential Equations System Tube side Shell side Spatial Discretization: Finite Differences ODE System 14

HE Model (no Phase Change) Energy Balance at cell i Tube side Shell side

HE Model (no Phase Change) Energy Balance at cell i Tube side Shell side Multicell model 15

Algebraic Equations (no Phase Change) To Recompression Residual Gas G i = 1, …,

Algebraic Equations (no Phase Change) To Recompression Residual Gas G i = 1, …, N (cells) j = tube or shell side HE model DAE System Natural Gas 16

HE Model (Partial Phase Change on Shell Side) Energy Balance at cell i Rodriguez,

HE Model (Partial Phase Change on Shell Side) Energy Balance at cell i Rodriguez, Bandoni, Diaz (2005) Algebraic Equations at cell i 17

HE Model (Partial Phase Change on Shell Side) Compressibility factor Residual enthalpies Soave-Redlich-Kwong Eo.

HE Model (Partial Phase Change on Shell Side) Compressibility factor Residual enthalpies Soave-Redlich-Kwong Eo. S Fugacity coefficients 18

HE Model (Partial Phase Change on Shell Side) Bell-Delaware method Pressure drop Pi 19

HE Model (Partial Phase Change on Shell Side) Bell-Delaware method Pressure drop Pi 19

High Pressure Separator Horizontal tank 20

High Pressure Separator Horizontal tank 20

Turboexpander Ø Feed: vapor from High Pressure Separator Ø Polytropic expansion (η = 1.

Turboexpander Ø Feed: vapor from High Pressure Separator Ø Polytropic expansion (η = 1. 26, natural gas) Ø Assumption: Static mass and energy balances Ø Thermodynamic predictions: Soave-Redlich-Kwong Ø Algebraic equations: Same as Flash Ø Outlet partially condensed stream: to Demethanizing column 21

Demethanizing Column Diaz, Tonelli, Bandoni, Biegler (2003) Differential Equations at stage i (1 ≤

Demethanizing Column Diaz, Tonelli, Bandoni, Biegler (2003) Differential Equations at stage i (1 ≤ i ≤ N) j=1, …, ncomp N = 8; ncomp = 10 22

Demethanizing Column Algebraic Equations Compressibility factor ( ) Residual enthalpies ( Hi, hi) Fugacity

Demethanizing Column Algebraic Equations Compressibility factor ( ) Residual enthalpies ( Hi, hi) Fugacity coefficients ( SRK ) 23

Demethanizing Column Algebraic Equations Vapor volume Vapor and liquid holdup Component holdup Internal energy

Demethanizing Column Algebraic Equations Vapor volume Vapor and liquid holdup Component holdup Internal energy holdup 24

Demethanizing Column Liquid holdup and hydraulic correlations Pressure drop 25

Demethanizing Column Liquid holdup and hydraulic correlations Pressure drop 25

Demethanizing Column Carbon dioxide solubility constraints Phase Equilibrium Assumption No hydrocarbon in solid phase

Demethanizing Column Carbon dioxide solubility constraints Phase Equilibrium Assumption No hydrocarbon in solid phase To avoid CO 2 precipitation But from VLE calculations at each stage 26

Demethanizing Column Carbon dioxide solubility constraints Solid phase Vapor phase 27

Demethanizing Column Carbon dioxide solubility constraints Solid phase Vapor phase 27

Demethanizing Column: Phase Existence Raghunathan, Diaz, Biegler (2004) Gibbs Free Energy minimization at stage

Demethanizing Column: Phase Existence Raghunathan, Diaz, Biegler (2004) Gibbs Free Energy minimization at stage i Karush Kuhn Tucker conditions Raghunathan, Biegler (2003) MPECs as additional constraints IPOPT-C under AMPL 28

Demethanizing Column: Phase Existence Relaxed Equilibrium Conditions 29

Demethanizing Column: Phase Existence Relaxed Equilibrium Conditions 29

Demethanizing Column: Phase Existence Liquid Holdup and Hydraulic correlations 30

Demethanizing Column: Phase Existence Liquid Holdup and Hydraulic correlations 30

Optimization Problem: HEs + HPS T h t L G Tout Alg. Eqns =

Optimization Problem: HEs + HPS T h t L G Tout Alg. Eqns = 403 Differ. Eqns = 37 (10+8 cells in HEs) 31

Numerical Results: HEs + HPS Optimization variables: G, L 20 elements 2 collocation points

Numerical Results: HEs + HPS Optimization variables: G, L 20 elements 2 collocation points 18274 disc. variables 18 iter. (3 barrier problems) 32

Numerical Results: HEs + HPS Optimization variables: G, L 33

Numerical Results: HEs + HPS Optimization variables: G, L 33

Numerical Results: HEs + HPS Temp. profile, tubes side Temp. profile, shell side (no

Numerical Results: HEs + HPS Temp. profile, tubes side Temp. profile, shell side (no phase change) 34

Numerical Results: HEs + HPS Pressure profile, shell side Condensed fraction, shell side 35

Numerical Results: HEs + HPS Pressure profile, shell side Condensed fraction, shell side 35

Optimization Problem: Demethanizing Column Alg. Eqns = 385 Differ. Eqns = 97 36

Optimization Problem: Demethanizing Column Alg. Eqns = 385 Differ. Eqns = 97 36

Numerical Results: Demethanizer Feed A: Low CO 2 content (0. 65%) Optimization variable: PTOP

Numerical Results: Demethanizer Feed A: Low CO 2 content (0. 65%) Optimization variable: PTOP 20 finite elements 2 collocation points 21357 discretized variables 40 iter. (3 barrier problems) ss = 80. 9 % 37

Numerical Results: Demethanizer Feed B: High CO 2 content (2%) Optimization variable: PTOP 20

Numerical Results: Demethanizer Feed B: High CO 2 content (2%) Optimization variable: PTOP 20 finite elements 2 collocation points 43 iter. (3 barrier problems) ss = 74. 5 % 38

Numerical Results: Demethanizer Feed B (high CO 2 content) No solubility constraints Optimization variable:

Numerical Results: Demethanizer Feed B (high CO 2 content) No solubility constraints Optimization variable: PTOP 20 finite elements 2 collocation points 59 iter. (4 barrier problems) ss = 76. 6 % 39

Numerical Results: Demethanizer Feed A Optimization variable: Reboiler Heat Duty (QR) 20 finite elements

Numerical Results: Demethanizer Feed A Optimization variable: Reboiler Heat Duty (QR) 20 finite elements 2 collocation points 57 iter. (5 barrier problems) ss = 77. 8 % (PTOP=19 bar) Active constraint: Methane mole fraction in bottoms 40

Numerical Results: Demethanizer Start Up MPECs Optimization variable: Three time periods Ideal Gas, Ideal

Numerical Results: Demethanizer Start Up MPECs Optimization variable: Three time periods Ideal Gas, Ideal solution Ethane Recovery PTOP, QR Solved in AMPL with IPOPT-C (Raghunathan, Biegler, 2003) Time (min) 41

Numerical Results: Demethanizer Start Up MPECs PTOP, QR 3 rd time period 17944 discretized

Numerical Results: Demethanizer Start Up MPECs PTOP, QR 3 rd time period 17944 discretized variables 576 complementarity constraints Reboiler Heat Duty (MJ/min) Optimization variable: 97 iterations Time (min) 42

Boiler Dynamic Optimization Dynamic optimization model to determine controller parameters Rodriguez, Bandoni, Diaz (2005

Boiler Dynamic Optimization Dynamic optimization model to determine controller parameters Rodriguez, Bandoni, Diaz (2005 b) Boiler Combustion chamber Risers Superheater Steam drum Gas path PI Controller (Liquid level in drum) Manipulated: Feed water flowrate 43

Boiler Dynamic Optimization DAE Optimization model Ø Differential equations • Momentum and energy balances

Boiler Dynamic Optimization DAE Optimization model Ø Differential equations • Momentum and energy balances in risers and superheater • Mass and energy balances in drum • Integral part of controller and valve equation Ø Algebraic equations • Friction loss • Mixture properties • Vapor holdup in drum • Gas – temperature distribution equations in furnace, risers ans superheaters (6 eqns. ) • Air / fuel ratio • Drum geometric relations (5 eqns. ) • Steam tables correlations for saturated and high pressure steam density, pressure and enthalpy 44

Boiler Dynamic Optimization DAE Optimization model Ø Optimization variables • PI controller parameters Ø

Boiler Dynamic Optimization DAE Optimization model Ø Optimization variables • PI controller parameters Ø Step change in high pressure steam demand Ø Additional PI controllers (current work) • Outlet steam pressure (fuel gas flowrate) • Superheated steam temperature (air excess) 45

Conclusions Ø Rigorous dynamic optimization models for cryogenic train in Natural Gas Processing plant

Conclusions Ø Rigorous dynamic optimization models for cryogenic train in Natural Gas Processing plant within a simultaneous approach Ø Thermodynamic models with cubic equation of state Ø Carbon dioxide solubility addressed in both liquid and vapor phases as path constraints, at each column stage Ø Phase detection through the addition of MPECs for Gibbs free energy minimization Ø Boiler dynamic model for controller parameters Ø Simultaneous approach provides efficient framework for the formulation and resolution of DAE optimization problems for large -scale real plants 46

References Ø Biegler, L. T. , A. Cervantes, A. Waechter, “Advances in Simultaneous Ø

References Ø Biegler, L. T. , A. Cervantes, A. Waechter, “Advances in Simultaneous Ø Ø Ø Strategies for Dynamic Process Optimization, ” Chem. Eng. Sci. , 575 -593, 2002 Cervantes, A. , L. T. Biegler, “Large-Scale DAE Optimization using Simultaneous Nonlinear Programming Formulations”, AICh. E Journal, 44, 1038, 1998 Diaz, S. , A. Serrani, R. de Beistegui, E. Brignole, "A MINLP Strategy for the Debottlenecking problem in an Ethane Extraction Plant"; Computers and Chemical Engineering, 19 s, 175 -178, 1995 Diaz, S. , A. Serrani, A. Bandoni, E. A. Brignole, “Automatic Design and Optimization of Natural Gas Plants", Industrial and Engineering Chemistry Research, 36, 2715 -2724, 1997 S. Diaz, M. Zabaloy, E. A. Brignole, “Thermodynamic Model Effect on the Design And Optimization of Natural Gas Plants”, Proceedings 78 th Gas Processors Association Annual Convention, 38 -45, March 1999, Nashville, Tennessee, USA Diaz, S. , A. Bandoni, E. A. Brignole “Flexibility study on a dual mode natural gas plant in operation”, Chemical Engineering Communications, 189, 5, 623641, 2002 47

References Ø Diaz, S. Tonelli, A. Bandoni, L. T. Biegler, “Dynamic optimization for Ø

References Ø Diaz, S. Tonelli, A. Bandoni, L. T. Biegler, “Dynamic optimization for Ø Ø Ø switching between steady states in cryogenic plants”, Foundations of Computer Aided Process Operations, 4, 601 -604, 2003 Diaz, S. , A. Raghunathan , L. Biegler, “Dynamic Optimization of a Cryogenic Distillation Column Using Complementarity Constraints”, 449 d, AICh. E Annual Meeting, San Francisco, Nov. 16 -19, 2003. Advances in Optimization Raghunathan, A. , M. S. Diaz, L. T. Biegler, “An MPEC Formulation for Dynamic Optimization of Distillation Operations”, Computers and Chemical Engineering, 28, 2037 -2052, 2004 M. Rodríguez, J. A. Bandoni, M. S. Diaz, “Optimal dynamic responses of a heat exchanger/separator tank system with phase change”, submitted to Energy Conversion and Management, 2004 Rodríguez, M. , J. A. Bandoni, M. S. Diaz, “Dynamic Modelling and Optimisation of Large-Scale Cryogenic Separation Processes”, ICh. EAP-7, The Seventh Italian Conference on Chemical and Process Engineering, 15 - 18 May 2005 a Giardini Naxos, Italy Rodríguez, M. , J. A. Bandoni, M. S. Diaz, “Boiler Controller Design Using Dynamic Optimisation”, PRES 05, 8 th Conference on Process Integration, Modelling and Optimisation for Energy Saving and Pollution Reduction, 15 48 18 May 2005 b Giardini Naxos, Italy

Appendix: Soave Redlich Kwong Equation of State Compressibility factor for a mixture Soave modification

Appendix: Soave Redlich Kwong Equation of State Compressibility factor for a mixture Soave modification (Temperature dependence) 49

Appendix: Soave Redlich Kwong Equation of State Fugacity Coeff. for component j in mixture

Appendix: Soave Redlich Kwong Equation of State Fugacity Coeff. for component j in mixture Residual enthalpy in mixture 50