vinyl acetate

159
UNIVERSITY OF CALGARY A Study in Plantwide Control of a Vinyl Acetate Monomer Process Design by Don Grant Olsen A THESlS SUBMITTED TO THE FACULTY OF GRADUATE STUDIES IN PARTIAL FULFILMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER OF ENGINEERING DEPARTMENT OF CHEMICAL AND PETROLEUM ENGINEERING CALGARY, ALBERTA MAY, 200 1 O Don Grant Olsen, 200 1

Upload: hanndle

Post on 28-Nov-2015

132 views

Category:

Documents


4 download

DESCRIPTION

Vinyl AcetateVinyl AcetateVinyl AcetateVinyl AcetateVinyl AcetateVinyl AcetateVinyl Acetate

TRANSCRIPT

Page 1: Vinyl Acetate

UNIVERSITY OF CALGARY

A Study in Plantwide Control of a Vinyl Acetate Monomer Process Design

by

Don Grant Olsen

A THESl S

SUBMITTED TO THE FACULTY OF GRADUATE STUDIES

IN PARTIAL FULFILMENT OF THE REQUIREMENTS FOR THE

DEGREE OF MASTER OF ENGINEERING

DEPARTMENT OF CHEMICAL AND PETROLEUM ENGINEERING

CALGARY, ALBERTA

MAY, 200 1

O Don Grant Olsen, 200 1

Page 2: Vinyl Acetate

National Library 1+1 ,c,, Biiotheque nationaje du Canada

Acquisitions and Acquisitions et Bibliographic Services services bibliiraphiques 395 W.lingoan Street 395. rue Wellington OaawaON K1AON4 OttawaON K 1 A W CPMda Canada

The author has granted a non- exclusive licence allowing the National L~brary of Canada to reproduce, loan, distrr'bute or sell copies of this thesis in microform, paper or electronic formats.

The author retains ownership of the copyright in this thesis. Neither the thesis nor substantial extracts fiom it may be printed or otherwise reproduced without the author's permission.

L'auteur a accorde une licence non exclusive permettant a la Biblioth@ue nationale du Canada de reproduire, praer, dhibuer ou vendre des copies de cette these sous la forme de rnicrofiche/film, de reproduction sur papier on sur format electronique .

L'auteur conserve la propriete du droit d'auteur qui protege cette these. Ni la these ni des extraits substantiels de celle-ci ne doivent etre imprimes ou autrement reproduits sans son autorisation.

Page 3: Vinyl Acetate

Abstract

Dynamic simulation of a Vinyl Acetate Monomer process Design has been suc-

cessfblly used to test alternative plantwide control strategies. The alternatives included the

implementation of a new reboiler level control strategy, a static feedforward ratio control

scheme and a linear model predictive controller on the azeotropic distillation column. The

results showed the new level control scheme to minimize fluctuation in the process capac-

ities as well as ensure a constant temperature and flowrate of feed f?om the vapourizer to

the packed bed reactor. Feed disturbance rejection of the two azeotropic distillation col-

umn composition control loops proved more effective using a reflux to feed mass flow

ratio than controlling without this ratio. The performance of a linear model predictive con-

troller proved unsatisfactory due to the large mismatch in controller step size and sample

time of the water composition aaalyser.

Further in depth anaIysis into the azeotropic distillation column identified a high

degree of non-linearity. Both steady-state and dynamic analysis specifically focused on

this column revealed input multiplicity (two or more input values produce the same output

value) behaviour when the two composition loops were in open loop. The vinyl acetate

monomer composition profile break through was concluded to be the cause of the non-lin-

earity. Tight temperature control using the vapour boilup was found to be the key require-

ment to avoid process upset caused by high vinyl acetate monomer concentration in the

bottoms stream of the column. As a result, closed loop behaviour was found to remove the

effects of the input multiplicity.

iii

Page 4: Vinyl Acetate

Preface

The scope of the project has involved four main aspects. First, provide a

representative base design, control strategy and dynamic simulation of a vinyl acetate

monomer process design. Second, complete an in depth analysis in both steady state and

dynamics of the azeotropic distillation column. Third, complete a plantwide

implementation of alternative control strategies for the process using classical and more

advanced techniques. Finally, implement and test a custom linear model predictive

controller with-in the h e w o r k of the pracess. This thesis has been organized into 6

chapters. Chapter 1 provides a general introduction highlighting the significance of the

study. The remaining chapters provide details of the process design and the results and

conclusions fiom simulation test work. The following publications are based on this

thesis:

van der Lee, J.H., D.G. Olsen, B.R.Young d W . Y . Svrcek (200 1) An Integrated,

Real Time Computing Environment for Advanced Process Control Development.,

Chemical Engineering Education, in Press.

Olsen, D.G., B.R. Young and W.Y. Svrcek (200 1) A Study in Advanced Control Appli-

cation to a Viiyl Acetate Monomer Process Design., Devel. Chem. Eng. & Mineral

Pmcessing, in Press.

These are also listed in Appendix C.

Page 5: Vinyl Acetate

Acknowledgements

I would like to thank the followingpeoplejbr their kind support and guidance in this work:

Dr. Brent Young for his patience and assistance over the entire course of this thesis

development. The enthusiasm in the area of study plus the flexibility allowed to me during

this tenure is very much appreciated.

Dr. William Svrcek for his advice and constructive criticism in this vast area of process

control and dynamics.

Dr. Mark Broussard and Dr. Jeff Pieper for honouring the request to complement my

examination committee.

James Van der Lee who spent many hours debating the many intricate details of controller

design and program implementation that made for a very enjoyable learning experience.

Hyprotech Ltd. for their financial and technical support for this study.

CeIanese Canada for their assistance in understanding the more practical aspects of the

Vinyl Acetate Monomer process.

My family and fiends who have been so understanding and supportive in this struggle with

the many demands involved in completing this thesis.

Finally, I would like to thank my wife for providing me with the balance in my life as well

as the support and love during this work. Clearly my success in this adventure could not

have been attained without her.

Page 6: Vinyl Acetate

Dedica tioo

TO MY PARENTS

GORDON and LORNA OLSEN

Page 7: Vinyl Acetate

Table of Contents . .

Approval Page ...................................................................................................... 11 ... .............................................................................................................................. Abstract 111

Preface .............................................................................................................................. iv ............................................................................................................. Acknowledgements v

Dedication ........................................................................................................................ vi . . Table of Contents ........................................................................................................... vll

.................................................................................................................. List of Figures ix List of Tables ................... .. ......................... ... ....................................... xi

1.0 Introduction .........,....,.............................................m.w.............o........N....w...o....... .l ............................................................................................. 1 -1 Background 1

..................................................................................... 1.2 Research Objectives 6

...................... 2.0 Process Design and Base Plantwide Control Configuration 8 2.1 Reaction Kinetics ....................................................................................... 8 . . .................................................................................... 2.2 Process Descnphon 10

........................................................................ 2.3 Overall Control Objectives 17 ............................................... 2.4 Base Plantwide Control Strategy Design 18

................................................................................................ 2.5 Conclusions 23

3.0 Model Development .....,...,.O...*O...O.O..... ................................................. 24 ....................................................... 3.1 Thermodynamic Model Development 24

........................................................... 3.2 Mathematical Model Development 28 3.2.1 Conservation and Hold-up Equations ......................................... 29

................................... 3.2.1.1 Distillation Column Modelling 30 .................. 3.2.1.2 Packed Bed Plug Flow Reactor Modelling 31

.................................................................... 3.2.2 Integration Strate -34 ................................. 3.3 Kinetic Reaction ActiveXaControl Development 36

3.4 Model Assumptions ................................................................................... 37 .................................... ......................................................... 3.5 Conclusions ... 38

4.0 Azeotropic Distillation Column Steady State and Dynamic Analysis . ............ 40 4.1 Steady State Analysis ................................................................................. 40

4.1.1 Stage Temperature Control Selection and Vinyl Acetate Monomer .................................................................... Composition Profile 40

....................................................................... 4.1.2 Input Multiplicity -43

vii

Page 8: Vinyl Acetate

............... 4.1.3 Relative Gain Array and Niederlinski lndex Analysis 48 4.1.4 Steady State Analysis Summary ................................................. 54

4.2 Dynamic Analysis .................................................................................... 3 5 ....................... 4.2.1 Selection of Composition Control Loop Pairing -55

4.2.2 Tuning ........................................................................................ -58 4.3 Conclusions .............................. ... ........................................................ 59

................................. 5.0 Plantwide Control Design and PerCornance .............dl .................................... ............ 5.1 Specific Control Requirements and Tests .. 61

5.2 Noise. Dead Tiw and Sampling Time Effects ........................ .. ............ 62 ........................................................... 5 -3 Base Control Strategy Peflonnance 64

................................................................... 5.4 Alternative Control Strategies 70 5.4.1 New Reboiler Level Control Design ..................... .. ................ 70 5.4.2 Feed Forward Model Predictive Controller ................................ 73

5.4.2.1 Implementation ............................................................ 74 .......................... . 5.42.2 Dynamic Matrix Controller Tuning .. 76

5.4.2.3 Results ......................................................................... 78 ............................................ 5.4.3 Static Feed Forward Ratio Control -81

................................................................................................ 5 -5 Conclusions 86

6.0 Conclusions and Recommendations. . ~ ~ ~ " " m ~ ~ m o m m ~ ~ ~ ~ ~ ~ ~ ~ ~ . ~ ~ ~ H ~ . ~ o ~ * ~ m " " ~ m a ~ * " w m a 1 ~ m ~ ~ ~ . ~ 87 ................................................................................................ 6.1 Conclusions 87

........................................ 6.1 . 1 Azeotmpic Distillation Column Tests 87 6.1.2 Plantwide Tests .................................... ... .............................. 88

................................................. 6.2 Recommendations .............................. .. -89

7.0 References ....................................................................... " H ~ ~ ~ ~ n m ~ . ~ o ~ ~ ~ ~ a m ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 91

7.0 Appendix A: Process and Equipment Rating Data ...,.w....O................... 99

8.0 Appendix B: Dynamic mat^ ControUer Algorithm ..........,.. ". ...U....w....... 109

9.0 Appendix C: Journal Papers ..........*w.....m...o.oo.oom~~....~m.~***.wo..w***ee*a*w** 0.120

10.0 Appendix D: Internet Website References ..........III...l..ww....na..l.........H...... 144

viii

Page 9: Vinyl Acetate

List of Figures

Figure 2.1

Figure 2.2

Figure 23

Figure 3.1

Figure 3.2

Figure 4.1

Figure 4.2

Figure 4 3

Figure 4.4

Figure 4.5

Figure 4.6

Figure 4.7

Figure 4.8

Figure 4.9

Vinyl Acetate Monomer Process Design Block Flow Diagram ................ 12

Vinyl Acetate Monomer Process Design Flowsheet Diagram .................. 13

Base Plantwide Control Strategy (Luyben et al., 1999) ............................ 19

............................................................ Distillation Column Stage Model ..29

................................................. Hold-up Model GraphicaI Representation 33

Azeotropic Distillation Column Base Control Strategy. ........................... 41

Steady State Tray Temperature Sensitivity to Changes in Reboiler Duty in ...... ............ Open Loop. ........... ...... ................ m...wo........o......... ...-.......... .... -42

VAM Steady State Stage Composition Profiles for a +/- 5 OC Step Change in the Stage 14 Operating Point of 99 0C..,.,.,,.,....,.................w".....0w...43

Open Loop Steady State Behaviour of Bottoms Stream Water and VAM Mole Fraction and Stage 14 Temperature for the Azeotropic Distillation

Open Loop Inverse Response of Bottoms H20 Composition to a 200 kghr Step Increase in Reflux Mass Flow Rate. .....m...o.oo..o...ooonoooonooooamommomoo*oooeoo46

Non-linear Open Loop Response - Small Step Change in Reflux Flow (+/- 0.009%) Starting at the Stage 14 Temperature Operating Point of 99 OC.47

Non-linear Open Loop Response - Mediwn Size Step Change in Reflux Flow (+I- 0.9%) Starting at the Stage 14 Temperatwe Operating Point of 99

Closed Loop Steady State Behaviour of Bottoms Stream Water and VAM Mole Fraction and Stage 14 Temperature for the Azeotropic Distillation

Base Pairing for Azeotropic Distillation Column Control Loops in .................. Response to a 40% Feed Flow Drop for 5 Minutes. .......... .."..56

Page 10: Vinyl Acetate

Figure 4.10

Figure 5.1

Figure 5.2

Figure 2 3

Figure 5.4

Figure 5.5

Figure 5.6

Figure 5.7

Figure 5.8

Figure 5.9

Figure 5.10

Figure 5.11

Figure 5.12

Figure 5.13

Reverse Pairing for Azeotropic Distillation Column Control Loops in .................. Response to a 40% Feed Flow Drop for 5 Minutes. .... "..........57 Step Test of H20 Composition in Azeotropic Distillation Column Bottoms ................... . from 0.093 to 0.18 Mole Fraction Base PI Control Strategy 66

5 Minute Shut-off of Azeotropic Distillation Column Feed Pump Disturbance . Base Control Strategy. .................... n......wm..m................w.. 67

VAM Production Rate Decrease Ramp (100 Minutes) with a 250 Minute .................... .... Failure of H20 Analyser . Base Control Strategy. ......,.., 69

New Reboiler Level Control Strategy. ...................................................... 72

Step Test of H2O Composition in Azeotropic Distillation Column Bottoms ............ . from 0.093 to 0.18 Mole Fraction New Level Control Strategy. 33

High Level MPC Design Showing Relation Between Manipulated and Controlled Variables. ............................... ....... ....... ........ .................. ,..,....76 Dynamic Matrix Step Response Models. .................................................. 77

Step Test of H20 Composition in Azeotropic Distillation Column Bottoms fiom 0.093 to 0.18 Mole Fraction - Feedforward MPC Control Strategy. 79

5 Minute Shut-off of Azeotropic Distillation Column Feed Pump .................. . Disturbance Feedforward MfC Control Strategy. ................ 80

........................................... PFI) for Static Feedforward Control Scheme. 82

Step Test of H20 Composition in Azeotropic Distillation Column Bottoms from 0.093 to 0.18 Mole Fraction - Static FeedForward Ratio Control Strategy. ..................,..........w...................................U......nu......... ............. 83

5 Minute Shut-off of Azeotropic Distillation Column Feed Pump Disturbance - Static FeedForward Ratio Control Strategy .................... ....a4 VAM Production Rate Decrease Ramp (100 Minutes) with a 250 Minute .... . Failure of H20 Analyser Static Feedforward Ratio Control Strategy 85

Page 11: Vinyl Acetate
Page 12: Vinyl Acetate

1.0 Introduction

The chemical industry plays a significant role in the economies of almost every

country world wide and the lives of its citizens. Such industries are diverse in their

manufacturing goals ranging fiom the production of pharmaceutical to agricultural to

plastic products. These industries provide an infirsion of capital and employment in local

communities via the production of key chemical components making up common

household and industrial products. Without the presence of such an industry our lives

would be devoid of many necessities and conveniences that we take for granted. Given the

significance of the chemical industry, it is imperative to expand the knowledge and

understanding of how to build and operate a chemical production facility in a safe and

economical manner for benefit society as a whole.

1.1 Background

The complexity of chemical processes provides a unique field of study (Kothare et

al. 2000) and the operators of such industries are faced with the challenge of meeting

several key objectives. First and foremost, the requirement of every chemical manufacturer

is to operate their process safely with minimal impact on the environment (Perkins and

Walsh, 1996). Economic viability is of next importance and is constrained by these

imposed safety and environmental requirements. Return on investment is critical in the

Page 13: Vinyl Acetate

decision whether a grass roots operation is built or whether an existing facility continues

operate.

One of the keys to economic survival of a chemical process is to base the design on

a well established set of control system objectives (Svrcek et al., 2000). From these

objectives, a set of controlled variables should be selected to maintain operation as close to

the optimum steady state performance after transients caused by disturbances or

operational parameter changes have decayed pisher et al., 1988). In order to best develop

a design to meet these needs, a joint effort involving both design engineers and control

engineers is required (Svrcek et aI., 2000). Without such a collaboration the process design

could be too difficult to control (e.g. Ross et al., 2001) or have a control system that is too

complex for the necessary process requirements. A balance between design and operability

issues is a crucial consideration in the success of a chemical process.

Another critical component in the successll operation of a chemical process is the

development of process understanding (Svrcek et al., 2000). Through the understanding of

the process dynamics and interactions a more clear picture of the plant controllability can

be obtained. It is important for operators of chemical piants to analyse operating data in

order to maintain and improve their understanding of how the actual plant hctions.

Present research is fast developing in the area of plantwide design, operation and

control as it is identified as an important area for improving the performance of existing or

grassroots processes (McAvoy, 1999, Svrcek et al., 2000). The benefits of these studies

include improved understanding of the process dynamics and response, the identification

of bottlenecks (Mahoney, 1994) and the identification of non-linear behaviour (Ross et al.,

Page 14: Vinyl Acetate

2001) each potentially leading to a simplification in design and control configuration.

Without performing a plantwide dynamic study it is difficult for the engineer to fully

understand the complex behaviour of the plantwide design possibly leading to suboptimal

control system, process and safety systems design (Vogel, 1992). This analysis is a key

item for manufacturers to use in achieving their gods of optimizing the dynamic behaviour

and performance of the over-all plantwide control configuration.

As a first step ia optimization of the control configuration, the base control platform

(DCS, transmitters, sensors, final control elements and communication network) must be

evaluated and reconfigured or upgraded to provide the most accurate and robust

performance (Anderson et al., 1 994, Hugo, 2000). Significant improvements can be

attained with this base control upgrade alone with estimates accounting for up to 15% of

benefits (Marlin et al., 1987) for a control upgrade.

An additional method effective in meeting the present operational demands is the

use of Advanced Process Control (APC). Over the last 20 years, APC techniques have

played a significant role in realizing economic benefits by reducing costs and increasing

product quality. These types of control range from relatively simple ratio and cascade

control schemes to more complex model predictive control (MPC) and artificial

intelligence control techniques (Fisher, D.G., 199 1, Seborg, 1994). Estimates as high as

60% of the benefits from control upgrades can be derived fiom APC when implemented as

an extension to a base regulatory control upgrade (Marlin et al., 1987). In addition, specific

case studies have shown that savings of 2 - 6% in annual operating cost and 1% increase in

revenue can be achieved (Anderson et al., 1994). As a result, there is significant incentive

Page 15: Vinyl Acetate

for manufacturers to implement advanced control projects (in conjunction with an upgrade

of the control system hardware and software) to help improve their economic position in

the market place.

A key tool that aids in the plantwide controllability study is the use of dynamic

simulation to model rigorously the physical behaviour of the chemical process (Tyreus,

1992). With the advances in computer computational speed and software development

many of the traditional barriers to its use are now minimized (Longwell, 1993). Through

the use of these rigorous fist principles based modelling tools, fidl studies of the dynamic

behaviour and the control implications can be addressed in a virtual environment. As a

resuit, impacts on the actual processes are minimized or avoided allowing the testing of

extreme deviations fiom the normal operational parameters. The literature has many good

reviews of the benefits of the use of dynamic simulation (Campos and Rodrigues 1993,

Vogel, 1992, Longwell, 1993, Mahoney, 1994, van der Wal et al., 1996/1997, Luyben et

al., 1997).

A particular process that could possibly benefit h m plant-wide controllability

studies and the use of APC technologies is the Vinyl Acetate Monomer (VAM) pn>cess.

The production of VAM is predominantly carried out by the gas phase catalytic reaction of

ethylene with acetic acid and oxygen. A second side reaction also occurs that produces

additional by-products. These key reactions are given as follows:

Page 16: Vinyl Acetate

This process plays a significant role in everyday life as it provides the feed stock for

common products in use such as adhesives, textiles and paints made fiom polyvinyl acetate

as well as in footwear and wiring made fiom ethylenevinyl acetate. The demand for the feed

stock is strong with latest projections showing growth of 3.2%/year through to the year

2010 in order to supply the needs of the fibres and plastics industries (Anon., 2000). Despite

the strong growth in demand for the product, manufacturers are under pressure to produce

as efficiently as possible due to the high cost for acetic acid and ethylene feed stocks

reducing the margins to be gained fiom high demand (Anon., 2000, ChemExpo Website,

2000). As a result, new investment in grassroots plants are not expected in the short to

medium term and focus on de-bottlenecking and operational improvements will dominate

the engineering mandate (Anon., ChemEjqzo Website, 2000). Therefore there is significant

incentive for operators of VAM production facilities to implement plantwide control to

help meet this demand for efficiency and a well controlled processing facility.

One limitation to properly understanding the behaviour of the VAM process is

detailed process and design information of the production facility. To help researchers and

industrial practitioners alike better understand the impacts of control upgrades on the vinyl

acetate process, there is a need in open literature for detailed process design information.

In order- to meet this need, Luyben and Tyreus (1998) presented details of a proposed

industrial design for a VAM process giving the research community a large integrated

chemical process to study. Their work included the overall mass and energy balance plus a

Page 17: Vinyl Acetate

proposed regulatory control strategy. TMODS, Dupont's in-house dynamic simulator, was

used to illustrate the effectiveness of their proposed control scheme at meeting defined

control requirements and process objectives. Their work provides the basis for this research

given the lack of data in open literature.

1.2 Research Objectives

The general research objective of this thesis has been to study the plantwide

dynamics and control behaviour of a VAM process plant design. Specific focus of this

research has been to investigate the controllability of the VAM process as given in Luyben

and Tyreus (1998) and provide alternatives to their plantwide control strategy. Details of

key unit operations are investigated to the extent that they impact on the plantwide

behaviour and control performance. The specific aims are as follows:

i) to derive a detailed understanding of the non-linear dynamic behaviour of the key

unit operation in the VAM plant, namely the azeotmpic distillation column.

ii) to establish a bench mark plantwide control performance level given the control

strategy outlined in Luyben et al., (1999).

iii) to establish and test alternative control strategies in an effort to provide better

control performance.

iv) to implement a linear model predictive controller with-in the h e w o r k of the

VAM process.

Page 18: Vinyl Acetate

The thesis continues with four chapters each ptesenting an aspect of the objectives

listed above. Chapter 2 presents the details of the reaction kinetics, the process design and

the plantwide control strategy selected as the base case for performance comparison.

Chapter 3 provides details of the dynamic model used in this study built using the

commercially available first principles based dynamic simulator H Y S Y S ~ ~ . Details of the

themodynamic model and the reaction rate extensions are also presented. A detailed steady

state and dynamic analysis of the azeotropic distillation column is presented in Chapter 4

providing insight into the non-linear behaviour of this key unit operation. The performance

of the plantwide simulation comparing the base control strategy and several alternative

strategies are given in Chapter 5. Finally, the thesis provides conclusions and

recommendations for fiture work.

Page 19: Vinyl Acetate

2.0 Process Design and Base Plantwide Control

Configuration

As discussed in Chapter 1, Vinyl Acetate Monomer (VAM) is used extensively in

the production of common household and industrial goods. Due to the proprietaq nature of

the industrial producers of VAM, very little design and operational information is available

in open Literature to facilitate a dynamic control study. To meet the need for detailed

process design information, Luyben and Tyreus (1 998) proposed an industrial design for

the VAM process giving the research community an integrated chemical process to study.

This chapter presents an oveniew of their design starting with a discussion of the reaction

kinetics followed by a schematic illustration of the plant along with the key unit operation

rating and nominal process parameters. In addition, the overall control objectives are

presented followed by a description of the proposed plantwide control strategy given in

Luyben et al., (1999). This control strategy is to be used as the base case performance to

which comparisons of alternative strategies are to be made.

2.1 Reaction Kinetics

The vinyl aetate monomer process involves the gas phase catalyzed reaction of

ethylene, acetic acid and oxygen. A precious metal catalyst such as metallic palladium or

mixtures of noble metals or alloys of the metals are commonly used (Anon., 1967).

Alumina or silica can be used as a support impregnated with the precious metal catalyst and

Page 20: Vinyl Acetate

contained in long tubes of a packed bed reactor to provide the necessaqr activation for the

reaction. The selectivity of the reaction is very good with literature values ranging fiom 91

- 94% (Anon., 1967). This main product selectivity is affected by the production of by-

products such as a small quantity of ethyl acetate (Celanese, 2000) and a larger amount of

C02. For the purposes of this study and as given in Luyben and Tyreus, (1998), only the

by-product reaction for the production of C02 is considered in the development and

modelling of the reaction kinetics because the formation of ethyl acetate is small (Anon.,

1967). The basic chemical reactions that take place are given as follows:

These reactions are both highly exothermic requiring close temperature control of

the gas phase packed bed reactor. Both have been studied extensively (Nakamura and

Yasui, 1970, Samanos et al., 1971). Luyben and Tyreus (1998) have taken the space time

data fiom Samanos et al., (197 1) and produced the following complex rate expressions:

Page 21: Vinyl Acetate

A / R2 = ( 1 + 0.76po( 1 + 0 . 6 8 ~ w ) )

Here, R1 and R2 are the reaction rates of equations (2.1) and (2.2) in moles VAM

prociuced/min./g of catalyst and moles ethylene consumed/rnin./g of catalyst, respectively.

The temperature T is in kelvin and po, pe, pa and pw are the partial pressures of oxygen,

ethylene, acetic acid and water in psia.

These kinetic rate expressions have been implemented in a plantwide dynamic

model to ensure accuracy in yield and conversion when compared to the base design in the

original data references (Luyben and Tyreus, 1998). Details of the implementation are

given in chapter 3.

2.2 Process Description

The process design used in this study focuses on the central production units and

exciudes the feed storage and product purification stages. To provide an overall view of the

process design Figure 2.1 shows a block flow diagram that highlights the major process

sections and recycle streams. The design itself represents the classic engineering case study

as discussed in Douglas (1988) involving a feed mix area, a reaction section, a liquid

vapour separation section, a gas reactants recovery section (absorber and C02 removal), a

liquid reactants recovery section (azeotropic distillation column), both a gas and a liquid

recycle stream and finally both purge and product streams. Figure 2.2 provides the entire

Page 22: Vinyl Acetate

process flowsheet schematic showing the individual unit operations, flow lines and control

valves.

Note, there are 26 degrees of fieedom in the process design each represented by the

valves given in the diagram. To maximize conversion, the gas recycle flow is to be

maintained at as high a vaIue as possible (Fisher et al., 1988). To do this the valves on the

gas exit streams of the vapourizer, separator and absorber are either left filly open or are

completely removed to save the cost of the valve (Luyben et al., 1999). In addition, to

simplify the reactor control scheme only a single duty stream was applied effectively

removing the need for the pressure control valve. These actions reduce the control degrees

of fkedom to 22 for the entire plant.

As can be seen in Figures 2.1 and 2.2, there are 7 major pieces of equipment: a

vapourizer, a gas phase packed bed reactor, a heat exchanger, a vapour liquid separator, a

compressor, an absorber column and an azeotropic distillation column. Also of particular

interest is the gas and liquid recycle loops with a secondary liquid recycle loop to the

absorber column. The purpose of the wash acid is to remove VAM, water and acetic acid

that has carried over into the gas recycle stream exiting from the vapoudliquid separator. It

is critical fiom both an economic and operational point of view that losses of these

components are minimized through this absorption process.

Page 23: Vinyl Acetate
Page 24: Vinyl Acetate
Page 25: Vinyl Acetate

The azeotropic distillation column vapow overhead consists of a VAM/water

mixture with a small amount of acetic acid and non-condensible components. This vapour

stream is cooled to 40 C where an immiscible mixture between a water dominant phase and

VAM dominate phase fonns. A separate decanter operation is used to provide the split

between the two liquid phases. The aqueous phase is sent for fiuther treatment to meet

environmental restrictions whereas, the VAM product stream is refined in M e r

downstream processing units.

Several of the key operational parameters for each unit are listed in Table 2.1. Also

Table 2.2 lists some of the key equipment data for the unit operations. The reader is referred

to Appendix A for a more detailed listing of the process stream information and rating

information.

Page 26: Vinyl Acetate

Table 2.1: Key Process Unit Operational Parameters.

Unit Operation

Vapourizer

Packed Bed Reactor

VapoudLiquid Separator

Compressor

Heat Exchanger

Absorber

Azeotropic Distillation Column

mole% Water in Bottoms Stream 9.3

Parameter

Exit Temperature

Inlet Temperature

Outlet Temperature

Exit Temperature

Compression Ratio

Outlet Temperature

Cold Side Met Temperature

Cold Side Outlet Temperature

Hot Side Inlet Temperature

Hot Side Outlet Temperature

Top Temperature

mole% C02 in Top Stream

mole% Acetic Acid in Top Stream

mole% VAM in Top Stream

Bottoms Temperature

mole% C02 in Bottoms Stream

mole% A. Acid in Bottoms Stream

mole% VAM in Bottoms Stream

Top Temperature

Bottoms Temperature

mole% A. Acid in Bottoms Stream

Value

118.2 OC

147.4 OC

158.9 OC

35.5 OC

1.8

80.2 OC

39.7 O C

87.0 OC

158.9 OC

126.9 OC

39.7 OC

1.1

0.1

0.2

53.2 OC

0.03

58.9

26.1

82.8 OC

136.5 OC

90.7

Page 27: Vinyl Acetate

Table 22: Key Process Unit Rating Loformation.

Unit Operation

Vapourizer

Reactor

VapouriLiquid Separator

Heat Exchanger

Absorber

Azeotropic Distillation Column

Parameter

Volume, m3

LmeI,%

Total Reaction Volume, m3

Catalyst Bulk Density, kg/ m3

Volume, m3

Level,%

Overall UA, kJ/C-hr

Ideal Stages

Stage Liquid Volume, m3

Value

17.0

49.9

6.1

500.0

15.0

50.2

2.85e4

8

- 0.30

Pump Around Flow, Actual m3/h

Sump Volume, m3

Sump Level, m3

Ideal Stages

Stage Liquid Volume, m3

Decanter Volume, m3

Decanter Level,%

Reboiler Volume, m3

Reboiler Level,%

55.5

8.0

49.5

21

- 0.17

10.0

50.0

12.0

43.2

Page 28: Vinyl Acetate

2.3 Overall Control Objectives

To establish a basis for understanding the controllability of the VAM process, a

clear statement of the overall control objectives should be derived. From this understanding

the foundation for establishing more specific control requirements can be made and used

effectively in testing the performance of the base and proposed control strategies. The

overall control objectives for the plant are as follows:

Safely produaeVAM in an economical manaer.

. . - . MtIllrmze impacts on the environment.

Maximize yield ONAM.

* Minimize losses of feed materials.

Control chemical inventories.

. . . . m e operating costs.

It is apparent that these overall objectives are quite generic and can apply to most

production facilities. However, they lay the foundation for derivation of a more refined set

of objectives appropriate for the VAM process. Fortunately, step 1 of Luyben et al's.,

(1999) procedure outlined the key objectives for the plant. These objectives are listed here

to provide a clear understanding of the approach used in the plantwide control designs

illustrated in this and later chapters. These specific control objectives are:

To be able to set the production dVAM while minimizing yield losses to carbon diox-

ide production.

Oxygen concentration in the gas recycle loop must rpmain outside the explosivity

Page 29: Vinyl Acetate

range for ethylene.

Absorber must recover as much of the VAM, water and acetic acid fiom the gas recy-

cle loop to prevent losses to the C02 removal system.

Minimize losses of acetic acid to the overhead of the azeotropic distillation column.

Minimize VAM concentration in the bottoms stream of the azeotropic distillation col-

umn to below 100 ppm.

Provide control during production turndown-

For the purpose of this study, focus has been on the last three objectives mentioned

above as they directly affect the azeotropic distillation column. The remaining objectives

have been assumed to be handled by the base plantwide control strategy even though it

must be noted that the meeting of all objectives may not be possible given the complexity

of the process.

2.4 Base Plantwide Control Strategy Design

The process control strategy for the VAM design proposed and tested by Luyben et

al., (1 999) has been used to establish a base level for plantwide control performance. These

authors base their control strategy upon their own plantwide control design procedure

involving a well defined 9 step procedure. The details of the 9 step procedure will not be

discussed here and the reader is referred to the original reference (Luyben et al., 1999) for

more details. However, the proposed decentralized design is shown in detail in Figure 2.3

Page 30: Vinyl Acetate
Page 31: Vinyl Acetate

showing the paring selection between the control valves and the controlled variables (Table

2.3).

Three sets of control loops are of particular interest and worth noting. The fmt is

the level control of the azeotropic distillation column reboiler level with acetic acid feed

flow. The justification for using this pairing is based on the reasoning that the reboiler level

is an indication of the acetic acid inventory in the process and a good pairing with the acetic

acid feedflow. As a result of this pairing selection, the vapourizer level has to be controlled

with steam flow via the vapourization rate. A second set of control loops worth noting is

the 2 composition loops of the azeotropic distillation colwnn. From a practical control

objective standpoint the two key components to control are the VAM in the bottoms stream

and the Acetic Acid in the top product streams. It is critical to ensure the VAM in the

bottom Acetic Acid recycle is maintained below 100 ppm as VAM tends to polymerize in

the upstream unit operations through liquid recycle causing operational difficulties and in

extreme cases shut-down. The Acetic Acid losses to the product stream must be minimized

to maintain low operating costs. However, in Luyben et al's., (1999) plantwide process

control design analysis it was determined that the H 2 0 component mass balance was not

being regulated. As a result, composition control of the HZ0 in the bottom stream was

adopted in favour of an Acetic Acid controller at the top of the column. Due to the fast

dynamics of the vapour boilup from the reboiler, the reboiler duty was paired with VAM

composition in the bottoms stream. However, to provide fast measurement response, the

VAM composition has been inferred using a tray temperature. Finally, the H20

Page 32: Vinyl Acetate

composition has been paired with the reflux flow to provide the necessary control to

regulate the H20 inventory. A summary of the pairings are as follows:

y 1 (control variable) = H20 composition in azeotropic distillation column bottorns.(2.5)

ul (manipulated variable) = Reflux mass flow rate. (2.6)

y2 (control variable) = Azeotropic stage temperature to infer VAM composition in

azeotropic distillation column bottoms. (2-7)

u2 (control variable) = Reboiler duty. (2-8)

The third set of control loops of interest are for the packed bed reactor outlet

temperature and the oxygen concentration control in the feed to the reactor. Due to the tight

safety constraints for oxygen concentration in the gas loop, the use of oxygen feedflow has

been excluded as a method of setting production rate. As a result, the reactor outlet

temperature is used to control production rate given that the kinetics of the reaction are

directly proportional to temperature.

Page 33: Vinyl Acetate

I Reactor Feed Temperature I Trim Heater Duty I

Table 2.3: Controlled and Manipulated Variable Pairings for the Base Plantwide Control Strategy.

I Reactor Outlet Temperature I Reactor Cooling Duty I

1

Controlled Variable

Oxygen Concentration In feed to Reactor

I Separator Feed Temperature

Manipulated Variable

Oxygen Feed Flow

I Separator Cooler ~ u t y I 1 Separator ~ e v e l I Separator Liquid Flow I I Absorber Sump Level I Sump ~ i ~ u i d Flow

I Absorber Pump Around Flow I Absorber Pump Around Flow

I Wash Acid Flow I Wash Acid Flow I

Absorber Pump Around Temperature

Ethane Concentration in Gas Recycle

C02 Concentration in Gas Recycle

Gas Recycle Pressure

Decanter Temperature "

Azeotropic Distillation Column Pressure

Decanter VAM Layer Level

Decanter Aqueous Layer Level

Stage Temperature

Water Composition Bottoms Stream

I Wash Acid Temperature I Wash Acid Cooler Duty I

Absorber Cooler Duty

Purge Flow

C02 Removal Feed Flow

Ethylene Feed Flow Rate

Condenser Duty

Decanter Vent Flow

VAM Product Flow

Aqueous Product Flow

Reboiler Duty

Reflux Flow &

I Reboiler Level I Acetic Acid Feed Flow 1 Total Acetic Acid Feed Flow to Vapour- I irm

Acetic Acid Recycle Flow

Page 34: Vinyl Acetate

The remaining control loops are used to regulate the capacity of the process,

chemical inventories and energy management. Each loop contains the conventional

proportional controller or proportional integral controller. This proposed plantwide control

strategy represents tbe base case to be used in the comparison with alternative strategies to

be presented in chapter 5.

2.5 Conclusions

In this chapter, the details of the VAM process design used in this study were

presented. The reaction kinetics selected in the design involved the two complex kinetic

rate expressions given in equations 2.3 and 2.4. Only the production of CO2 as a by-product

has been included in the study as ethyl acetate is reported to be produced in only small

quantity. The overall process flow schematic was presented showing the 7 major pieces of

equipment and recycle streams used in producing VAM. Finally, the base piantwide control

strategy (Luyben et al., 1999) to be used in the comparison of alternative strategies has been

presented along with a discussion of the 3 critical control loops.

Page 35: Vinyl Acetate

3.0 Model Development

The results of this study are derived from using a rigorous first principles based

dynamic simulation. The kinetic reactions, phase equilibrium thermodynamics, custom

controller calculations and the process unit operations are each developed with-in

commercially availabie software products. This approach has allowed rapid development

of a detailed and comprehensive plantwide dynamic simulation.

3.1 Thermodynamic Model Development

One of the key aspects in the simulation of the vinyl acetate monomer (VAM)

process is the development of an appropriate thermodynamic model to best represent the

complex non-ideal vapour-tiquid-liquid equilibrium (VLLE) behaviour. In this study

several activity coefficient models such as NRTL (Non-Random Two Liquid) (Renon and

Prausnitz, 1968), UNIQUAC (Universal Quasi Chemical) (Abrams and Prausnitz, 1975),

Van Laar (Null, 1970) and Wilson (Wilson, 1964) were evaluated for their ability to model

the VAM/Water/Acetic Acid ternary mixture. Each model parameters were fitted using

data available and compared on the basis of phase consistency and composition relative to

data given in Luyben and Tyreus, (1998). The thennodynamic model found to best match

the VLLE behaviour given in Luyben and Tyreus, (1998) was the UNlQUAC equation

(Abrams and Prausnitz, 1975). This equation is the foundation for establishing the overall

Page 36: Vinyl Acetate

phase equilibrium as it provides liquid phase activity coefficients that account for the non-

ideal liquid behaviour (Equation 3.1).

where:

yi = Activity coefficient of component i.

xi = Mole fraction of component i.

n = Total number of components.

Page 37: Vinyl Acetate

Z = 1 0.0 (Co-ordination number).

aij = Binary non-temperature dependent energy parameter (caVgmole).

bij = Binary temperature dependent energy parameter (caVgmole).

q, = van der Waals area parameter.

ri = van der Waals volume parameter.

For this study only the temperature independent binary parameters (a01 were used.

The UNIFAC LLE estimation method (Fredenslund et d., 1975, Magnussen et al., 198 1,

Reid et al., 1 987)) available with-in the thermodynamic basis environment (HYSYS.Hant

Simulation Basis, 1998), was used to derive the VAM/Water binary interaction parameters

due to the Iack of quality experimental LLE data for these two components. The remaining

interaction parameters were taken fiom low-pressure data given in the DECHEMA data

series (Gmehling and Onken, 1975). All non-condensable component liquid phase

fugacities were derived using the default H Y S Y S ~ ~ Henry's Law coefficients with the

exception of Ethane.

To overcome a small discrepancy in the process stream data of the original process

design (Luyben and Tyreus, 1998). Specifically, the feed to the azeotropic distillation

column given in the reference was shown to conbin no ethane despite the clear presence of

ethane (documented in the same reference) in the liquid that leaves the absorber and enters

Page 38: Vinyl Acetate

the azeotropic distillation column. A decision was made to assume no ethane would enter

the column with the liquid feed stream. Therefore, in order to reduce ethane's solubility in

the liquid phase the ethane/VAM and ethane/acetic acid Henry's coefficients were

estimated to be the same as ethane/water given in the simulator thermodynamic database.

This approach permitted better matching of the overall ethane balance and concentration in

the gas recycle and prevented complete purging of the ethane fiom the system.

Despite the low pressure at which the azeotmpic distiilation column operates (and

thereby arguably precluding the effects of component association in the vapour phase), it

was found that the Virial vapour fugacity model was the most accurate. The default

UNIQUAC Acetic Acidwater binary interaction parameters predict a false azeotrope

when the ideal vapour phase model was chosen. This poor prediction was found to manifest

itself in a moderately higher Acetic Acid concentration calculated in the product organic

and aqueous streams. However, due to the complexity of the second virial coefficient

estimation (Hayden and O'Come11, l975), the dynamic simulation time was very long for

typical test runs, 200 minutes versus 40 minutes for the ideal thermodynamic model on a

500 MHz PI11 workstation. Therefore, it was decided to stay with the ideal gas assumption

to maintain appropriate simulation speed required to facilitate this study. With this

assumption the equilibrium constant simplifies to the following expression:

Ki = Equilibrium constant for component i.

Page 39: Vinyl Acetate

yi = Activity coefficient of component i.

Psafi = Saturation pressure of component i (kPa).

P = Total system pressure &Pa).

Flash calculations are performed in a straight forward manner using equation 3.2.

The reader is referred to other references for details on soIving these phase equilibrium

flash calculations (Walas, 1985, Prausnitz et al., 1986).

3.2 Mathematical Model Development

The plantwide model used in this study was implemented using the first principles

based dynamic simulator H Y S Y S ~ from Hyprotech Ltd. This simulator uses fundamental

mass and energy balance equations predefined for each unit operation as well as a rigorous

hold-up model for those operations that have an accumulation term. Solution of these

material, energy and component balances are not considered at the same time as a special

integration strategy is employed to provide fast and robust solution at each integration time

step. Details of the basic consemation equations and the hold-up model for the distillation

column and the packed bed reactor are available in the user manual (HYSYS. Plant Dynamic

Modelling. 1998), however, the essential features are presented here as background

material. In addition, the integration strategy is presented to illustrate the different solver

interactions.

Page 40: Vinyl Acetate

3.2.1 Conservation and Hold-up Equations

Fundamental in the integration procedure of the dynamic calculation step is the

implementation of a rigorous hold-up model to account for accumufation. Closely

connected to the solution of this model are the basic conservation and physical relationships

that rigorously defke the dynamic and steady state behaviour of every item of process

equipment. The conservation relationships are the same as those used in steady state,

however, they include the accumulation tenn defined with respect to time. Several different

types of unit operations are used in this plantwide simulation modelling that make use of

the hold-up model. As examples, details of the conservation and hold-up model for the

packed bed plug flow reactor and the distillation column are presented below.

F

Stage n

L n Vn+l

Figure 3.1: Distillation Column Stage Model

Page 41: Vinyl Acetate

3.2.1.1 Distillation Column Modelling

The distillation column is solved in a distributed fashion by solving a series of

lumped parameter models represented by separation stages. Figure 3.1 shows a column

stage feed and product flows assuming no reaction. The overall material and component

differential balances are:

where:

= Total moles of material on tray n.

= Total moles of liquid on tray n.

= Total moles of vapour on tray n.

= Liquid mole fkaction of component i.

= Vapour fiaction of component i.

= Feed mole fiaction of component i.

= Total moles of Feed to tray n.

= Moles of vapour entering or leaving tray n.

= Moles of Liquid entering or leaving tray n.

Page 42: Vinyl Acetate

The energy is given as follows for the nth tray:

where:

h = specific molar enthalpy (J/mol).

More details on distillation column modelling can be found in the H Y S Y S ~ ~

manual (HYSYS.Plant Dynamic Modelling, 1998) and also in open literature (e.g. Luyben,

1990, Grassi U, 1992).

3.2.1.2 Packed Bed Plug Flow Reactor Modelling

The packed bed plug flow reactor also represents a distributed model that varies

spatially down the axis of the tube as well as in time. To account for these two integration

requirements, the reactor is divided into sections of equal length. Each section is then

assumed to be have spacial uniformity in all properties similar to a continuously stirred tank

reactor (CSTR). The overall material, component and energy balance equations are derived

in a similar manner to the distillation stage equations, but include a generation t e n due to

reaction and have only one feed and product stream. For the vapour gas phase reaction the

equations can be written as follows:

Page 43: Vinyl Acetate

where:

p = Stream density (kg/m3).

V = Reaction volume of section n (m3).

F = Volume flow rate (m3/hr).

M: = Total moles of vapour in section a.

Q = Heat added across process bounda~~ (J/hr).

Qr = Heat generated by reaction (Jlhr).

Ri = Reaction rate for component i (moleshr).

i, o = Input and output h m reactor section.

Further details on reactor modelling can be found in the H Y S Y S ~ ~ manual

(HYSYSSPlant Dynamic Modelling, 1998) and also in open literature (e.g. Franks, 1972).

in order to effectively account for the dynamic behaviour of material inventory

accumulated within each piece of equipment, a rigorous hold-up model is employed. The

goal of this hold-up model is to accurately predict the time response of contained material

and exit streams to changes in feed conditions and vessel heat load. Included with-in the

hold-up model are the Mdamental conservation, thermodynamic and chemical reaction

relations such as the equations given above. Figure 3.2 presents a schematic to show the

key relationships used in the model. The first step in the calculation is the hold-up

accumulation that is established by assuming a pseudo recycle stream. This stream is

calculated only when a rigorous thermodynamic flash calculation (Michelsen, 1982, Walas,

Page 44: Vinyl Acetate

1985) is performed and its flow value is distributed evenly across the number of time steps

specified by setting the frequency of the composition update (HYmS.Plant Dynamic

Modelling, 1998). Second, a non-equilibrium flash is used to account for non-ideal mixing

of the feed flows with the hold-up. This calculation employs a flash efficiency that by-

passes a certain proportion of the feed around the equilibrium flash to produce the effect of

non-ideal mixing. A third aspect is the implementation of chemical reactions that are

applied to the material accumulation volume. Finally, other calculations handled by the

hold-up model, but not used in this study include equipment heat loss and static head

contributions. These additional calculations are required for matching the simulation to

plant operating data, but have not been considered here because this study is based on a

virtual design, no plant operating data.

Recycle S tteam

Feed Products

Figure 32: Hold-up Model Graphical Representation

' r-+ I I

Recycle Split

-

Non Equilibrium Flash

- @

Flashed Products

)

Page 45: Vinyl Acetate

3.2.2 Integration Strategy

The hold-up model contains most of the fimdamental equations defining each unit

operation simulated. An important aspect of solving the equations is the strategy employed

in sequencing the integration procedure. To integrate all equations at each time step would

be too costly in terms of overall simulation speed, so a novel approach to sequencing the

procedure has been employed. Specifically, the following types of variables are integrated

at different times:

Pressures and flows.

Enthalpies.

Composition.

Material (pressure-flow) balances are solved at every time step using a simultaneous

solver to derive the pressure-flow network of the entire flowsheet. Energy and component

rigorous solution balances are solved less frequently, defaults of 2 and 10 integration steps

respectively. Over this period a local approximation is used for the energy and composition

variables as they do not tend to change as fast as pressure and flow variables. The energy

and component balances solver fbnctions in a modular sequential fashion for each piece of

equipment instead of simultaneously.

Of particular significance is the solution of pressure-flow balances for the entire

flowsheet. This partitioned equation fiamework contains the fundamental equations

defining the pressure-flow relations divided into two basic areas - resistance equations and

volume balance equations. The volume balance equations use simple manifestations of the

overall continuity equations for the volume of material contained with-in a vessel.

Page 46: Vinyl Acetate

However, the resistance equations relate flow and pressure and are a function of the type of

unit operation material flow. To illustrate a resistance equation, a simplified form of the

general valve equation is presented as follows:

Flow = k&~

where:

k = Conductance, representing the reciprocal of resistance to flow.

AP = fictional pressure drop without static head contributions, (kPa).

The different f o m of the resistance equations for the various pieces of equipment

used in this study are shown in Table 3.1. Simultaneous solution of the pressure-flow

equation matrix provides the necessary information for solving the hold-up model.

However, there is a reverse dependence of the pressure-flow solver on the hold-up model

as reaction and density data are needed by the pressure-flow solver. Precedence is given to

the pressure-flow solver as data fiom the previous time step of the hold-up model is used

along with simplified energy and flash models for time steps not at multiples of the rigorous

update fiequency. In summary, the key to solving the dynamic response of the sirnulation

is the sequencing of the interaction between the two solvers.

Page 47: Vinyl Acetate

36

Table 3.1: Resistance Equations For Selected Unit Operations.

3.3 Kinetic Reaction ~ c t i v e ~ ~ ~ Control Development

Unit Operations

Valve

Pump/Compressor

Heater/Cooler/Heat Exchanger

Distillation Column Tray Section Plate

Visual ~ a s i c ~ (VB) was used to provide a customized implementation of the

kinetic expression (equations 2.3 and 2.4) to provide an accurate calculation of the reaction

rate for primary VAM production and the secondary C02 by-product reaction. The

procedure makes use of the ~ i c r o s o f i ~ ActiveX automation capabilities incorporated

within H Y S Y S ~ which allow access to process and reaction rate data. In the VB computer

code, the reaction rate is calculated explicitly and transferred back into HYSYS to be

utilized in the packed bed reactor module. The process is repeated for each segment of the

reactor over the entire tube length. Specifically, total pressure, initial composition and fluid

temperature data are obtained first from HYSYS then the VB calculation code makes the

Resistance Texm

Cv Method Equation

Pressure-flow relation is defined by energy and efficiency.

Simplified Form of the General Valve Equation.

1 ) Francis Weir Equation for Liquid Flow fiom Tray. 2) Simplified Form of the General Valve Equation for Vapour Flow Through Plate.

Page 48: Vinyl Acetate

appropriate unit conversions and uses the reaction stoichiornetry to provide the segment

reaction rate. In addition to these reaction rate calculations, setup code is provided to

minimize reaction setup requirements and to provide a custom graphical interface to allow

easy manipulation of the catalyst density. The extensions themselves were previously

prepared by Hyprotech Ltd. and are available in the open literature (Anon., Hyprotech Ltd.

Website, 200 1 ) .

3.4 Model Assumptions

Certain assumptions have been made in the development of the reactor model in

order to simply the implementation of the entire plantwide model and to provide adequate

simulation speed. The assumptions are listed here along with a brief discussion for the

justification and implications. - Ideal Gas Phase Vapour Phase Fugacity - This model was found to have minimal

impact on accuracy and was selected to allow rapid simulation time as discussed in

section 3.1.

C02 Removal System assumed a Component Splitter - This assumption was the same

as given in Luyben and Tyreus (1998). Accuracy in simulation was not impacted as

the C02 removal unit operations were down stream of the VAM process.

Direct Duty Reactor Temperature Control - In order to control the reactor outlet tem-

perature the duty stream was manipulated directly avoiding the direct simulation of the

utility fluid. The justification for this approach was to simplify the simulation. Given

Page 49: Vinyl Acetate

the fast dynamics of the system illustrated in Luyben et al. (1999), this was approach

was taken and benchmarked against the results fiom this reference.

Reboiler Temperature Control Done by Direct Duty - The justification for this

approach was to simplie the simulation.

Valve Dynamics Assumed Instantaneous - No information was given for the design

(Luyben et al., 1999) relating to valve dynamics; therefore, this default setting was

selected for each valve.

Pressure Profile in Gas and Liquid Recycle - Luyben et al., (1999) assumed the entire

pressure drop of the recycle streams occurred in the packed bed reactor. The require-

ment of the pressure-flow solver of H Y S Y S ~ ~ is to have pressure differential for each

hold-up and between each pressure node. Therefore, a pressure differential was

assumed for heaters, coolers and the heat exchanger of approximately 50 kPa.

Reactor void fraction assumed to be 1 - Due to simulation speed considerations, the

reactor void volume was set to 1 and the overall reaction volume adjusted to match

results in Luyben and Tyreus, (1998).

3.5 Conclusions

In this Chapter, details of the plantwide model for the VAM process have been

presented. First the thermodynamic model was presented with the reasoning for selecting

the UNIFAC - Ideal liquid and vapour fugacity models. Estimation for the VAMMZO

binary interaction parameter was done using UNIFAC LLE. The remaining parameters

Page 50: Vinyl Acetate

were obtained fiom literature and the Hyprotech Ltd. thermodynamic data base.

Mathematical details of the distillation and packed bed plug flow reactor unit operations

conservation equations were presented. Also the H Y S Y S ~ integration strategy, its effect

on the hold-up model and its relation to the pressure-flow solver were presented. Next, the

implementation of the kinetic equations in ActiveX extensions with H Y S Y S ~ ~ was

presented. Finally, the assumptions used in building the models were listed.

Page 51: Vinyl Acetate

4.0 Azeotropic Distillation Column Steady State and

Dynamic Analysis

The azeotropic distillation column represents a complex and critical unit operation

in the vinyl acetate monomer (VAM) process design. Given its importance in maintaining

product purity and ensuring feed component recovery, a detailed steady state and dynamic

analysis was performed. This study established an understanding of the controllability of

the column in preparation for implementing alternative plantwide control strategies to be

covered in Chapter 5.

4.1 Steady State Analysis

4.1.1 Stage Temperature Control Selection and Vinyl Acetate Monomer

Composition Profile

To begin the steady state analysis, the optimal tray location for the temperature

sensor location was investigated for the base control strategy design as given in Figure 4.1

(Luyben et al., 1 999) with the composition pairings as defined in equations 2.5,2.6,2.7 and

2.8. The procedure involved open loop sensitivity testing (Fruehauf and Mahoney, 1993)

to isolate the tray location with the greatest temperature variation to changes in the paired

manipulated variable (reboiler duty). The other manipulated variable for the 2 x 2

composition loop (reflux flow) was held constant to ensure open loop behaviour. Figure 4.2

Page 52: Vinyl Acetate

. . . . - I

b * I 0

* I . a . a

a *

a a .

I .

a 4

* 1

a a

a * .

a Feed I ; n I a

a a a a

a

a a

a

a a

. . a

a a a

n............................: w

Figure 4.1. Azeotropic Distillation Column Base Control Strategy.

Vent

VAM Product

Aqueous Product

shows the results of the test. Stage 14 was selected as the location for the temperature

sensor used in all subsequent steady state and dynamic simulation.

Page 53: Vinyl Acetate

' Sekcted Sensor Locatkn--- 7n TOP, I I I I I I

Bottorr . - 0 2 4 6 8 10 12 14 16 18 20

Stage #

Figure 4.2. Steady State Tray Temperature Sensitivity to Changes in Reboiler Duty in Open Loop.

A fbrther steady state test completed was to investigate the VAM composition

profile sensitivity to a step change in stage 14 temperature setpoint. Figure 4.3 illustrates

the effects of varying this temperature variable from the operating point of 99 O C by +/- 5

OC. As can be seen in the diagram, the composition profile shifts dramatically on the trays

below the feed location. Of particular importance is the effect of the -5 O C step change on

the VAM concentration in the bottom stage where the concentration has risen to

approximately 0.05 mole fraction well above a maximum constraint of 100 ppm. The effeet

of temperature on the VAM composition profile is very pronounced and represents the

Page 54: Vinyl Acetate

Stage #

Figure 4.3. VAM Steady State Stage Composition Profiles for a +/- 5 OC Step Change in the Stage 14 Operating Point of 99 OC.

dominant factor in the control of the azeotropic distillation column and in meeting the

VAM concentration constraint in the bottoms stream.

4.1.2 Input Multiplicity

As shown in Figure 4.3, the VAM composition dominates the behaviour of the

azeotropic distillation column. This physical behaviour leads to a high degree of non-lin-

earity observed when both the reflux flow and the reboiler duty are in open loop. As an

illustration, Figure 4.4 shows the water composition control variable exhibiting a maxi-

Page 55: Vinyl Acetate

mum in concentration over a range of typical mass reflux flows resulting in a sign change

in the open loop gain (Equation 4.1).

This behaviour is more commonly known as input multiplicity and is characterized

by the existence of muItiple steady-state inputs for a fixed set of outputs (Koppel, 1982).

Input multiplicity is well documented for reactors (e.g. Koppel, 1982) and reactive distil-

lation (Sneesby, 1998); however, very little discussion in literature exists related to the

impacts on non-reactive distillation (Zheng et al., 1998). Fortunately, Jacobsen (1 993) pro-

vides a good discussion on the behaviour of distillation columns experiencing input multi-

plicity. Noted in this reference is the possible existence of a process gain sign change for

composition control variables in either one point or two point control configurations. Also

noted is the possibility of inverse response in the intermediate boiling component of mul-

ticomponent mixtures seen in the bottom stream.

Both of these behaviours are observed in the azeotropic distillation column as seen

in Figures 4.4 and 4.5. In particular, Figure 4.4 shows the open loop gain sign change. Fig-

ure 4.5 illustrates the inverse behaviour of the bottoms water composition due to a step

increase in reflux mass flow. It should be noted water is a middle boiler relative to acetic

acid and VAM.

Page 56: Vinyl Acetate

Reflux Mass Flow, kglhr x lo4 Reflux Mass Flow, k g h r x 10'

Figure 4.4. Open Loop Steady State Behaviour of Bottoms Stream Water and VAM Mole Fraction and Stage 14 Temperature for the Azeotropic Distillation Column.

The cause of the inverse behaviour is due to the transitionary behaviour brought

about by the breakthrough of VAM to the bottom of the column as shown in the steady-

state data of Figure 4.3. In addition, the breakthrough behaviow is also seen in the steady-

state data of Figure 4.4 where the VAM composition in the bottoms stream is shown to rise

dramatically after approximately 11000 kg/hr reflux flow. In a dynamic sense as shown in

Figure 4.5, with the increase in reflux down the column the response of the water compo-

sition initially rises. However, the VAM composition profile break eventually reaches the

bottom stream reversing the concentration gradient of the water.

Page 57: Vinyl Acetate

0.09 0 200 400 600 800 1000

Time, min.

Figure 4.5. Open Loop Inverse Response of Bottoms H20 Composition to a 200 kg/hr Step Increase in Reflux Mass Flow Rate.

Figure 4.4 also shows the effect of theVAM concentration on the behaviour of the

stage 14 temperature control variable. With dramatic changes in VAM concentration due

to composition profile shifts in the column, the temperature measured on stage 14 also

shifts and becomes constrained between an upper and lower bound of approximately 93

OC and 123 OC. This open loop behaviour is unstable as shown in Figures 4.6 and 4.7. Fig-

ure 4.6 shows the effect of making a very small step increase and decrease in the reflux

flow and the resulting movement of stage 14 temperature to the upper or lower bound.

Figure 4.7 shows the same effect for much a larger change in reflux flow with the only dif-

Page 58: Vinyl Acetate

ference being the time taken to reach the new steady state bounds (150 versus 6000 min-

utes). Once at either of these bounds the temperature gain approaches zero reducing

sensitivity and making temperature control very difficult. Therefore, tight temperature

control is required to ensure the process does not trend towards these upper and lower

bounds of temperature. These stable yet undesirable operating points are a result of the

VAM composition profile moving dramatically up or down the column resulting in a new

chemical phase equilibrium devoid of or dominantin VAM.

Time, min.

Figure 4.6. Non-linear Open Loop Response - Small Step Change in Reflwc Flow (+/- 0.009%) Starting at the Stage 14 Temperature Operating Point of 99 OC.

Page 59: Vinyl Acetate

0 50 100 I50 200. 250 300 350 400 450 500 Time, minutes

Figure 4.7. Non-linear Open Loop Response - Medium Size Step Change in Reflux Flow (+/- 0.9%) Starting at the Stage 14Temperature Operating Point of 99 OC.

4.1.3 Relative Gain Array and Niedertinski Index Analysis

Common steady state techniques used in establishing the best pairing of manipu-

lated variables with controlled variables are of the relative gain array (RGA) (Bristol,

1966) and the Neiderlhski index (NI) (Neideriinski, 1971). These techniques are easy to

apply as they rely only on the open and closed loop steady state gains of each pairing and

their cross pairings. In this study the pairings were as in equations 2.5, 2.6, 2.7 and 2.8.

The reverse pairings are as follows:

Page 60: Vinyl Acetate

yl (control variable) = Azeotropic stage temperature to infer VAM composition in

azeotropic distillation column bottoms. (4-2)

ul (manipulated variable) = Reflux mass flow rate. (4.3)

y2 (control variable) = HZ0 composition in azeotmpic distillation column bottoms(4.4)

u2 (control variable) = Reboiler duty. (4-5)

The RGA and NI values for these pairings were calculated and compared.

Equations 4.6,4.7 and 4.8 define the calculation of the steady state gains, the first element

of the RGA and the M, respectively.

where:

k,.,. = Open or closed loop steady state gain between variable i and j.

Page 61: Vinyl Acetate

ci = Controlled variable i.

rn = Manipulated variable(s) held constant.

c = Controlled variable(s) held constant.

= Relative gain between controlled variable i and manipulated variable j.

= Determinant of the steady state gain matrix.

kii = Diagonal elements of steady state gain matrix.

To obtain the steady state gains, calculations were made using step changes in the

reflux flow and the reboiler duty in an appropriate direction to ensure the VAM profile did

not break through to the column bottom. Therefore, only a step decrease in reflux fol-

lowed by a step increase in reboiler duty were perfonned to obtain the RGA and M val-

ues. These tests were taken because it was concluded that low VAM concentration results

were indicative of the true column performance under normal operating conditions. The

high frequency response was key to the behaviour of the column and was best represented

by making steady state step tests that ensure the concentration of VAM stays at a mini-

mum.

The results for the base pairing showing the RGA for the first element and NI val-

ues for different step sizes in reflux flow are given in Table 4.1. Three different magni-

tudes of reflux flow steps have been tested to better illustrate the temperature effects

discussed in section 4.1.2 above. The results of the reverse pairing are also presented in a

table to fiuther highlight the effats of this non-linearity Fable 4.2).

Page 62: Vinyl Acetate

Of particular interest inTable 4.1 is the large negative RGA fmt element value for

all three reflwc step sizes. This pairing represents a poor choice as the system will be

unstable if one of the loops are opened and the rest closed (Luyben, 1990, Svrcek et al.,

2000). This effect would take place for the azeotropic distillation column when the tern-

perature control loop was opened and the water composition control loop remained closed.

lo this situation, the required controller action of the water composition control loop

switches fiom direct acting to reverse acting (as indicated in the low VAM concentration

portion of Figure 4.3). With this switch in required controller dynamics the composition

controller is unable to apply the proper corrective action, resulting in saturation of the

valve. Dynamic simulation for this controller arrangement confirmed this unstable behav-

iour.

Table 4.1. Base Control Pairing Open Loop Gain K11 element, Relative Gain Array (first element) and Neiderlinski Index for Various Magnitudes in Step Reflux Flow.

Step Reflux Flow Kl 1

-863 kgfhr 2.05

-239.4 kghr 2.01

- 1 022.3 kglhr 1.57

RC A (first element) NI

-3.67 -0.3 9

-3.37 0.65

-2.87 4.50

The implication of this finding is that this pairing is not recommended based on a

steady state analysis due to the open loop instability that results. However, closed loop

steady state tests showed that the paring would be beneficial (Figure 4.8). As can seen

in the figure, controller action is direct acting in complete contrast to the low VAM con-

centration part of Figure 4.3 where a reverse acting relationship exists. However, in M e r

Page 63: Vinyl Acetate

Reflux Mass Flow, kglhr x Reflux Mass Flow, kgfirx 10.

Figure 4.8. Closed Loop Steady State Behaviour of Bottoms Stream Water and VAM Mole Fraction and Stage 14 Temperature for the Azeotropic Distillation Column

contrasting these figures, it is apparent that the non-linearity of the input multiplicity has

been removed resulting in a linear relation between H20 composition and reflux. This lin-

earization coupled with the fast dynamics of the vapour boilup to control stage 14 temper-

ature provides the key to satisfactory control. With such a short time delay between the

reboiler and the tray temperature, very tight temperature control can be achieved essen-

tially adjusting the VAM composition profile and removing the adverse effects of input

multiplicity. In addition, a closed loop dynamic simulation shows the pairing to be capable

at handling control requirements (section 4.2). This effect is key in stable c l o d loop

operation and was not achieved with the reverse pairing.

Page 64: Vinyl Acetate

Due to the temperature change effects brought about by the rapid change in VAM

concentration, the NI changes sign depending on the reflux flow step change size. The

dominating effect can be seen in t&e K11 values of the reverse LwV pairing in Table 4.2 as

this value essentiaily represents the cross pairing K21 for the idonnation in Table 4.1. In

Table 4.2 it is clearly seen that the open loop gain is not constant and is a fhction of the

step size of reflux flow. In addition, the magnitude of the gain dominates the calculation of

the NI resulting in a reversal in sign. Again the problem is caused by the rapid removal of

VAM fiom tray 14 where the temperature is being measured. Regardless of the step size in

reflux flow, the upper bound temperature of 123 OC is reached (Figure 4.6 and 4.7). This

effect leads to two interesting results. The first is, as mentioned, that the open loop gain

K11 value is not constant for a given step change. Second, regardless of the size of the step

in reflux the same temperature change results whether in open loop or in closed loop lead-

ing to an RGA first element value close to 1. Therefore, &om these results it is clear that

the steady state RGA analysis is not indicative of the high level of coupling that has been

observed for the reverse pairing using dynamic simulation (section 4.2).

Table 4.2. Reverse Control Pairing Open Loop Gain K11 element, Relative Gain Amy (first element) a . Neiderlinski Index for Various Magnitudes in Step Reflux Flow.

Step Reflux Flow K11 -863 k& -29.95

-239.4 k @ l ~ - 10.80

- 1 022.3 kgthr -2.53

RCA (first ekment) NI

Page 65: Vinyl Acetate

With a negative NI the conclusion is that the system pairing will be unstable and

will not be integral controllable (Luyben, 1990, Marlin, 1995)- However, with the switch

in sign of the NI it is difficult to conclude whether the base pairing or the reverse pairing

will be unstable. Therefore, a test of both pairings for integral stability was performed in

dynamics by setting the controller gain to le-15 and then checking for instability. The

results only showed slight drift in both systems leading to the conclusion that the systems

are integral stable.

4.1.4 Steady State Analysis Summary

Steady state analysis has shown the VAM composition profile to dominate the

controllability behaviour of the azeotropic distillation column. The non-linearity of the

column has been characterized by the presence of input multiplicity brought about by the

shifting of the VAM composition profile break within the column when the dual

composition control loops are open. The net effect on the RGA and NI analysis was to

produce difficult results to interpret and make definitive conclusions as to the best selection

of the control loop pairing. However, the analysis still proved very informative leading to

the connection between the non-linearity of the open loop behaviour to the behaviour of the

VAM composition profile with-in the column. In addition, the mechanism of how the water

composition control imp works in the presence of a negative RGA first element was shown

to be related to the linearized behaviour of the composition loop when closed. Thus strong

support for the base pairing was drawn fiom the results. The final decision and justification

was determined by dynamic simulation.

Page 66: Vinyl Acetate

Dynamic Analysis

Given the non-linear process behaviow and the failure of the RGA and M analysis

to help identie the best composition control strategy, dynamic simulation has been used.

In this section different arrangements of the 2 x 2 composition control loop for the

azeotropic distillation column have been evaluated. Selection of the best pairing can then

be made.

4.2.1 Selection of Composition Control Loop Pairing

There are three potential options proposed for the 2 x 2 composition control loop

pairing for the azeotropic distillation coiumn. They are the base control configuration as

given in Figure 4.1 using mass flow for the reflux (Lw). The reverse pairing for the LwV

configuration and the base pairing with reflux flow replaced with distillate flow Dw.

Based on the obsewations presented in the previous two sections, it has been concluded

that the base pairing is the recommended approach. The major justification is the tight

temperature (VAM bottoms composition) control afforded by pairing the reboiler duty to a

tray temperature. This action has shown to be robust (Figure 4.9) at ensuring the VAM

composition profile does not drift up or down the column thus avoiding the non-linearity

effects observed during open loop testing.

The reverse pairing has been rejected as an option due to the high degree of inter-

action observed in the dynamic simulation between the two control loops. Due to this high

degree of interaction, it was impossible to control the VAM profile and prevent it h m

Page 67: Vinyl Acetate

0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 Time, min.

"0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 Time, min.

Figure 4.9. Base Pairing for Azeotropic Distillation Column Control Loops in Response to a 40% Feed Flow Drop for 5 Minutes.

shifting and causing the bottoms stream VAM 100 ppm constraints (Figure 4.10) to go off

specification.

The use of distillate mass flow (Dw) as the manipulated variable in replace of

reflw (Lw) has also been rejected in favour of the base contrcl strategy for three reasons.

First, since distillate flow is linked to the reflux flow via the dynamics of the condenser

level it would be subject to the same input multiplicity as seen in the base pairing and

would provide no advantage. Second, inclusion of the condenser level dynamic behaviour

directly into the control behaviour of the water composition loop was found to produce

Page 68: Vinyl Acetate

f ime, min. 1 ime, min.

9:-

8 C 0 - 7 - - 0

t rr 6 - 0 - r" = - 5 4 - - - - z 3 - a E 0 2 - U

1

0 .

Figure 4.10. Reverse Pairing for Azeotropic Distillation Column Control Loops in Response to a 40% Feed Flow Drop for 5 Minutes.

additional overshoot during set point changes. The cause is attributed to the indirect rela-

tionship that arises between Dw and the water composition in the column bottoms via the

additional capacitance of the condenser holdup. This approach adds an additional lag ulti-

mately slowing the response of liquid reflux flow down the column to the reboiler dative

to direct Lw control. Third, since the product streams go directly to product purification

stages immediately following recovery, maintaining level averaging control is desirable

for this application.

0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0

- - 1

-

Even though the base pairing is shown to be unstable with the temperature loop

open and composition loop closed (as indicated with a negative RGA first element), con-

-

,

P A M I Constraint

'C

Page 69: Vinyl Acetate

straints could be implemented on the reboiler duty manipulated variable. This action

would ensure that the temperature loop provides adequate boil-up preventing VAM con-

centrations being too high in the bottoms stream. In addition to being a useful approach

during normal operation, a reboiler duty minimum constraint would be useful during start-

up and shut-down to prevent VAM contamination in the acetic acid recycle and prevent

stabilization of the column at an inappropriate operating condition (Bisowamo and Tade,

2000).

4.2.2 Tuning

Tuning parameters for the proportionalhtegral (PI) controller tuning parameters

were set to ensure best performance and where possible the loop was simplified by using a

proportional only controller. Therefore, all capacity variables such as level and pressure

were controlled using proportional control with the gain set to 2. The goal of this approach

was to implement averaging control to allow flow smoothing to downstream units and

better inventory maintenance in cases of high or low loads (Shinksey, 1996). The key

control loops were tuned using an approach adapted from the Auto Tuning Variation

technique (Astrom and Hagglund, 1984). The method is based on a relay feedback

technique incorporating by default a relay with hysteresis to reduce the influence of

measurement noise in derivation of the parameters. PID controller parameters are obtained

by selecting a gain margin at a specified phase angle. The parameters used for key control

loops are given in Table 4.3.

Page 70: Vinyl Acetate

Table 43: Key Control Loop Parameters.

4.3 Conclusions

Control Loop

H20 I . Bottoms-Reflux

Stage 14 Temperature-Reboiler Duty

Reactor Outlet Temperature-Reactor Cooling Duty

Gas Recycle Oxygen Concentration-Oxygen Feed Flow

This chapter presented the redts of a detailed steady state and dynamic analysis

of the control loop pairings possible in tbe azeotropic distillation column. Steady state

results showed the system to exhibit input multiplicity characterized by a change in the

sign of a steady state gain as well as inverse behaviour of the middle boiler component,

water. The operating point for the tray temperature sensor was selected to be stage 14 with

a value of 99 OC. The VAM composition profile changes was detennined to be the cause of

the non-hear behaviour.

The original base pairing as given in (Luyben et al., 1999) has been detennined to

be the best pairing selection based on steady state and dynamic analysis. The steady state

results showed that despite a large negative RGA and associated open loop instability, the

closed loop performance proved to be most stable in meeting control objectives. Luyben et

Kc

0.6

5 -3

0.1

2.9

Ti (min.)

34.8

1 -4

0.4

0.1

Page 71: Vinyl Acetate

al. (1999) did not provide this type of analysis, justifwg the pairing based on the premise

of pairing vapour flow dynamics to stage temperature control. The reverse pairing proved

to be coupled and very difficult to control. Due to the need for averaging level control the

use of distillate mass flow was not chosen. A reboiler duty constraint was identified as a

simple means for preventing the VAM bottoms composition constraint of 100 ppm going

off specification.

Page 72: Vinyl Acetate

5.0 Plantwide Control Design and Performance

The use of dynamic simulation to investigate plantwide control performance is

important for understanding the practical limitations of proposed designs, identifjhg

complex interactions and testing proposed control strategies. In this chapter, the plantwide

performance of the base control strategy is compared and contrasted with alternative

strategies. The alternatives control strategies include a new reboiler level control scheme,

a static feedforward ratio control scheme and decentralized application of a model

predictive controller.

5.1 Specific Control Requirements and Tests

From the overall control objectives stated in Chapter 2, several specific control

requirements become apparent for proper operation of the process. These specific control

requirements are listed below and have been adapted k r n Luyben et al, (1998).

Provide set point tracking of key process variables (reactor outlet temperature, azeo-

tropic distillation column bottoms water composition, carbon dioxide and ethane con-

centration in the gas recycle stream).

Provide rejection of a disturbance due to a 5 minute shut-off of the azeotropic distilla-

tion column feed pump.

Provide control during production turndown.

Provide control when feed ethane impurity in ethylene feed is at 0.3 mole%.

Page 73: Vinyl Acetate

Provide control with an HZ0 analyzer sample time of 5 minutes and demonstrate con-

trollability under the influence of process noise.

Provide control during a 250 minute composition analyzer failure.

Provide stable inventory control.

Given these specific control requirements, testing of the base and alternative plant-

wide control strategies was necessary. Therefore, several of the above mentioned control

requirements were used for comparison of the base strategy with alternative strategies.

Specifically three of these control requirements have been used in the performance

comparison and are as follows:

1. Set point tracking of the azeotropic distillation column bottoms water composition

fiom 0.093 to 0.18 mole fkaction.

2. Disturbance ~ject ion of a 5 minute shut-off of the azeotropic distillation column col-

umn feed pumps.

3. Controllability stress test for a 250 minute H20 composition analyzer failure during a

100 minute production turndown ramp.

5.2 Noise, Dead Time and Sampling Time Effects

To best represent the effectiveness of different control strategies, the effects cf

common process disturbances and dynamics have been included. To begin with, process

noise of 1% of the process variable range has been added to process and indicator vari-

ables throughout the simulation. This effect was simply incorporated via an advanced

Page 74: Vinyl Acetate

option available within the simulator controller operation ( H Y S Y S ~ 2.3 Release Notes,

2000). Internally, a gaussian distributed white noise component is added directly to the

measured signal at the end of each integration step.

In addition to applying noise to process signals, the effects of filtering were also

incorporated. Again the option to apply filtering was available within the controller

operation and is based on a first order filter model. A filter time constant of 10 s was used

for each variable. This value represents a conservative level of filtering as it approximately

corresponds to a weighted contribution of 5% of the current sensor reading and 95% fiom

the previous sensor reading. Once the noise and filter have been applied to the original

measured signal, the controller action is calculated using the modified signal to provide a

more realistic representation of an actual plant environment.

In addition to noise and filter implementation, a sample time plus a dead time of 5

minutes (Leegwater, 1992) was added to the azeotropic distillation column bottoms stream

water composition control variable. This action represented the behaviour of a Gas Chro-

matograph (GC) analyzer that would possibly be used to provide the water composition

measurement on-line. A vaiue of 5 minutes was selected as the sample time possible for a

chromatograph that could be dedicated to this quality measwement (Leegwater, 1992,

Conoerse, 1999). Implementation was done using a sample time option available within

the controller operation and the dead time was installed using a transfer hc t ion

(UYSYS. Plant Dynamic Modelling, 1 998),:

Page 75: Vinyl Acetate

where:

Gd = Delay transfer hc t ion in the Laplace Domain.

K = Delay gain.

to =Delay(s).

s = Laplace operator.

The results of the simulation tests incorporate these effects to better represent the

complex dynamic behaviour required for tbe plantwide controi performance comparison

for alternative schemes.

5.3 Base Control Strategy Performance

The base control strategy as given in Luyben et al., (1998) was tested using the

three scenarios given in section 5.1. Qualitatively, the results proved satisfactory at meet-

ing control objectives and stabilizing the process. For example Figure 5.1 shows the abil-

ity of the composition controller to track the set point change fiom 0.093 to 0.18 mole

hction H20 in the azeotropic distillation column bottoms. However, the response is

underdamped resulting in an overshoot of the setpoint. The cause of this overshoot was

attributed partially to the somewhat aggressive composition and temperature controller

parameters and partially to the effects of feedflow variation to the column. However, both

aspects are intimately linked together through the reboiler level control. The behaviour of

Page 76: Vinyl Acetate

the reboiler level is characterized by an initial increase brought about by the correspond-

ing decrease in reflux flow necessary to move the H20 composition up to the new setpoint

(Figure 4.8). This appears opposite to what intuitively one would expect; however, the

result illustrates the dominant effect of the reboiler duty on the behaviour of the column.

Therefore, with less reflw and hence less liquid flow down the column a lower reboiler

duty was required to maintain stage 14 temperature. With a lower reboiler duty, less boilup

was produced resulting in an increase in level. As the level increased, the acetic acid feed

flow decreased forcing a larger value for the acetic acid recycle. Through the interaction

of the reboiler level and the acetic acid feed flow rate, the feed flow to the azeotropic dis-

tillation column began to fluctuate. Through the increase or decrease in azeotropic distilla-

tion column feed flow, additional change in the water composition was observed due to

changing liquid flow in the column.

Two other important observations related to the temperature control on stage 14

and the VAM composition were noted. Despite the noisy signal of the stage 14 tempera-

ture, excellent setpoint tracking was attained. Through this tight temperature control, the

VAM composition in the column bottoms stream remained below the specified 100 ppm

constraint, only reaching a maximum of -1 0 ppm.

Page 77: Vinyl Acetate

0.05 0 0 5 10 15 20 25

Time, hr

a 30 = 0 5 10 15 20 25

Time, hr

g lost - Stage 14 Temperature

Time, hr

I 0 5 10 15 20 25

Time, hr

Figure 5.1: Step Test of H 2 0 Composition in Azeotropic Distillation Column Bottoms fiom 0.093 to 0.18 Mole Fraction - Base PI Control Strategy.

Figure 5.2 shows the results of the major disturbance involving the shut-off of the

azeotropic distillation column feed pump for 5 minutes. Due to the short duration of the

disturbance, the capacity controls were not significantly affected. However, composition

and temperature effects were significant. Despite the large initial variation in these vari-

ables, the process was brought under control and stabilized at the appropriate set points

Page 78: Vinyl Acetate

after the pump was restarted. H20 composition response took approximately 7 hours to

reach steady state whereas the stage 14 temperature took only 1 hour. Note, the concentra-

tion of VAM only reached a maximum value of 40 pprn in the bottoms stream remaining

below the 100 ppm limit. Again this result is attributed to the fast temperature control

response loop dynamics.

0.05 0 5 10

Time, hr

s

Time, hr

0 5 10 0 5 10 Time, hr Time, hr

Figure 53: 5 Minute Shut-off of Azeotropic Distillation Column Feed Pump Disturbance - Base Control Strategy.

Page 79: Vinyl Acetate

The third test involved the analyzer failure during a production turndown ramp of

100 minutes. The responses are shown in Figure 5.3. Production turndown was achieved

by reducing the packed bed reactor outlet temperature. A ramp from 158OC to 138 OC was

used to reduce the reactor production by approximately 10%. At 50 minutes into the ramp

the H20 analyzer was failed. In this scenario, it was assumed that the analyzer was not

taken out of service; therefore, the last measured value remained as the process variable

input to the composition controller. The results clearly show a large decrease in H20 com-

position occurs during the time of analyzer failure. Two phenomenon caused this decrease

to occur. The first and most significant was the drop in water composition in the feed flow

due to the decrease in reactor production. The second was the constant error calculated in

the controller due to the fixed process variable resulting in a constant increase in reflux

flow (direct acting controller). Fortunately, the rate of change of the H20 composition was

slow enough over the 250 minutes of the analyzer failure to not cause a process shut-

down. Once the analyzer was started the system was able to recover. Maximum VAV

composition reported in the column bottoms stream was -10 ppm, again, well within the

bottoms specification.

It is worth noting that the system would be more stable if the analyzer was taken

out of s e ~ c e or put into manual effectively eliminating the second cause noted above. In

this scenario, the reflux rate would be fixed and the column would be run in a common

one point composition control arrangement. This action would prevent the continual

change in reflux rate brought about by a false controller error reading. Dynamic simula-

Page 80: Vinyl Acetate

tion c o n f i e d this behaviour and showed the process to be stable for a 5 minute azeotro-

pic feed pump loss test scenario as given in Figure 5.2.

0.05 0 5 10 15 20 25

c - Time, hr

Time, hr

Reactor Outlet

f 120

80' I 0 5 10 15 20 25

Time, hr

B~P---I - Column Feed Flow

LL Acetic Acid Feed Flow

S I

0 5 10 15 20 25 Time, hr

Figure 5.3: VAM Production Rate Decrease Ramp (100 Minutes) with a 250 Minute Failure of H 2 0 Analyser - Base Control Strategy.

Page 81: Vinyl Acetate

5.4 Alternative Control Strategies

The goal of control studies is to not only analyse the performance of existing

schemes, but also to investigate ways of improving them. Therefore, in this section

alternative control strategies are presented and compared to the performance of the base

control scheme. Again, the three schemes mentioned previously will be evaluated. These

include a change to the reboiler level control, the implementation of a linear model

predictive controller and finally implementation of a static feedforward ratio scheme.

5.4.1 New Reboiler Level Control Design

The first change to the base case control scheme was to change the reboiler level

control for the azeotropic distillation column. In the original scheme (Luyben et al., 1998),

the acetic acid feed flow was paired with the reboiler level control (Figure 2.3). This

approach was used as the reboiler level was an indication of the acetic acid inventory in the

process, Ieading to the conclusion that acetic acid feedflow should be paired with the

reboiler level. To prevent instability or "snowballing" (Luyben., 1993, Tyreus and Luyben,

1993) of the liquid recycle flows that could be caused by disturbance or sensor e m r

(Svrcek et al., 2000), the recycle streams were put on flow control. In the base case, the

following liquid recycle streams were placed on direct flow controI: i) absorber wash acid

and ii) total feed acetic acid feed flow to the vapourizer (Figure 2.3). Changes in the reboiler

level were controlled via the change in feed flow rate of acetic acid. With this approach, the

vapourizer level was paired directly to heat input thus controlling the vapourization rate or

feed rate to the reactor.

Page 82: Vinyl Acetate

A possible negative impact of this level control strategy is the adverse effect on the

flow rate and temperature of the vapourizer vapour flow. From an operational point of

view, it has been stated (Celanese, 2000) that it is key to maintain a constant temperature

for the vapour leaving the vapourizer to ensure sufficient acetic acid saturation of the

ethylene. Variations in acetic acid quantity could possibly result in operational problems of

the packed bed reactor reducing overall conversion. Given this possibility, it is proposed to

change the reboiler control strategy to allow direct temperature control of the vapourizer

gas stream. In this scenario the acetic acid feed flow controls the vapourizer level directly

and the azeotropic distillation column bottom flow controls the reboiler level (Figure 5.4).

The effects of "snowballing" the liquid recycle flow is still eliminated due to the pairing of

acetic acid flow with vapourizer level that will keep ciisturban=es and analyzer error in

check as the acetic acid flow will simply be adjusted accordingly. Pairing of reboiler level

with bottoms flow will result in rejection of any fluctuations in level and pass the flow rate

changes onto the vapourizer level control.

To test the new configuration, a step test of H20 bottoms composition fkom 0.093

to 0.18 mole fiaction was performed. The results shown in Figure 5.5 verify stable capacity

control. In addition, both the vapourizer temperature and level were controlled at their

setpoitns. As a direct result, the flow rate of the overhead gas stream feeding the reactor

remained constant and was maintained at a constant temperature.

Page 83: Vinyl Acetate
Page 84: Vinyl Acetate

0.05 0 5 10 15 20 25

Time, hr.

I Vapourizer I

' I Reboiler

Time, hr.

0

Stage 14 Temperature

Time, hr.

b 3 / Column Feed Flow 1 s

Time, hr. Figure 5.5: Step Test of H20 Composition in Azeotropic Distillation Column

Bottoms from 0.093 to 0.18 Mole Fraction - New Level Control Strategy.

5.4.2 Feed Forward Model Predictive Controller

The application of a model predictive controller (MPC) was investigated. Details of

the implementation and the tuning of the controller are presented along with the

performance of the controller when compared to those of the base case.

Page 85: Vinyl Acetate

5,4,2.1 Implementation

The MPC algorithm used in this study is the well-known Dynamic Matrix

Controller (DMC) foxmulation (Cutler and Ramaker, 1979). For each sampling time, the

full prediction horizon is calculated as follows:

Where Ypast accounts for the effects of past moves in the manipulated variable, A

is the dynamic matrix of step coefficients, AU is the future moves of manipulated variables

and b accounts for model error. To account for measured disturbance variables a

feedforward component YFF can be applied to the truncated step response model under the

approximation of constant future disturbances (Cutler and Ramaker, 1979, Fisher, 199 1,

Hokanson and Gerstle, 1992). Therefore, the full prediction horizon can be calculated as

follows:

The step response models were easily obtained by introducing positive changes in

the manipulated variables. Given this information, fbture AU moves are calculated using

standard least squares to find the minimum error fiom setpoint with only the first move

Page 86: Vinyl Acetate

actualiy being implemented. The resulting optimal control law used in this study is as

foilows (Maurath et al., 1988):

where:

Q = Control variable weighting matrix.

f = Move suppression factor.

I = Identity mahix.

E = Ysp - Ypast -b.

To avoid the problem of open loop non-line= behaviour as outlined in section 4.1.2,

a partial closed loop approach was used in identification. This approach takes advantage of

the linearizing effect of having the temperature control loop closed as shown in Figure 4.8.

As a result, the first manipulated variable of the 2 x 2 MPC is the reflux flow setpoint and

the second is the stage 14 temperature controller set point. Figure 5.6 shows these

controlled, manipulated and disturbance variables selected in the design of the DMC

controller. The step response models are shown in Figure 5.7.

The DMC controller calculations were implemented in a custom computer program

that also linked H Y S Y S ~ ~ with ~ x c e l ~ and atl lab^^ (van der Lee et al., 2001). h e to

the lack of feedforward DMC capabilities within the present version of H Y S Y S ~

disturbance variables could not be included directly into the simulation of the DMC

controller. Therefore, a Visual Basic for Applications (VBA) program witb-in ~ x c e l ~

Page 87: Vinyl Acetate

was developed to provide the calculated control moves as defined in Equations 5.4 and 5.5.

Details of the program coding structure are given in van der Lee et al., (200 1 ) and the actual

controller algorithm is given in Appendix B.

-01 Fwd Fbw Dbtutbance

Figure 5.6: High Level MPC Design Showing Relation Between Manipulated and Controlled Variables.

U1 Rellux Fkrr Ccnrdhr 0 P *

U2 Ternpar&we Conlrdkr SP

5.4.2.2 Dynamic Matrix Controller Tuning

The aggressive settings of the base PI stage 14 temperature controller given in Table

4.3, were detuned to provide a more critically damped response. This action was necessary

0

in obtaining an adequate step response model to allow stable performance of the controller.

- yZ Stage 14 Tempwaiure

Azeotro pic Distillation Column

Using an underdamped step response model for the temperature control loop proved to be

unsatisfactory due to the aggressive performance of the controller resulting in an oscillatory

step response. In addition, the time constant differeace between the two control loops were

more than an order of magnitude (1 0 s versus 60 minutes).

Page 88: Vinyl Acetate

-1.5 I -1.5 I 1 0 50 loo 0 50 100

Time, min. Time, min.

Figure 5.7: Dynamic Matix Step Response Models.

Table 5.1 shows the detuaed controller parameters used for the DMC

implementation. A 30-second step size was selected based on the time constant of this

detuned temperature loop. Also the step response model was selected to be 200 due to the

lengthy settling time of the composition loop and due to the practicality of using a larger

number of coefficients. Tuning of the DMC controller involved selecting appropriate

control (U) and prediction (P) horizons. The simple method by Maurath et al., 1988 was

used where a control horizon of 1 was selected and the prediction horizon adjusted as a

tuning parameter. The tuning tests involved step tests of the water composition set point

1

0.5

11

0.5 A1 1 -

E 0

-0.5

-1

-1.5 J -1 -5 0 50 100 0 50 100

Time, min. Time, min.

- -1

Page 89: Vinyl Acetate

and incorporated a measurement value without sample or deadtime. A value of P = 100 was

found to provide best results for the step test. Finally the weighting and move suppression

matrix were set to the identity matrix to provide equal weighting to each control variable

and conservative movements in the controller actions.

Table 5.1: Detuned Temperature Controller Parameters.

5.4.2.3 Results

Control Loop

El20 In Bottoms-Reflux

The performance of the DMC controller is shown in Figures 5.8. and 5.9. Perfor-

mance of the controller proved qualitatively unacceptable for a set point change in water

composition and acceptable for a 5 minute feed flow disturbance. The results showed poor

response for both a set point change and a feed disturbance relative to the other two strate-

gies shown previously. Most disappointing was the extremely Large overshoot of the 100

ppm VAM concentration specification in the bottom of the azeotmpic distillation column

as shown in Figure 5.8. This situation was severe enough to cause operational problems

and even shutdown. In Figure 5.9 the feed disturbance rejection performance was satisfac-

tory, but exhibits a large dip in the stage 14 temperature resulting in the possibility of the

VAM concentation to rise above the 100 ppm specification in the event of a larger feed-

flow upset. However, in this test the ~naxhumVAM composition was only 20 ppm.

Kc

0.5

Ti (min.)

200.0

Page 90: Vinyl Acetate

0 5 10 15 20 0 5 10 15 20

Time, hr Time, hr 1.5

I

0 5 10 15 20

Time, hr 10 15

Time, hr Figure 5.8: Step Test of H20 Composition in Azeotropic Distillation Column

Bottoms from 0.093 to 0.18 Mole Fraction - Feedforward MPC Control Strategy.

The cause of this poor performance is due to the difference in sample time of the

water composition controller relative to the controller sample time (5 minutes vs. 30 s). In

Figure 5.8 it can be seen that the temperature response is too aggressive given the delay in

water composition measurement. As a result, with the sustained nature of the temperatwe

drop, the VAM composition profile was able to break through to the bottom stream. It

should be noted that in section 5.4.2.2, the controller tuning tests showed good results for

the H20 composition set point change under the assumption that no sample time nor dead

Page 91: Vinyl Acetate

Time, hr

Time, hr

I 0 5 10

Time, hr 4

cn - a

3 B 0 m

& 2 cn cn m = 1

0 5 10

Time, hr

Figure 5.9: 5 Minute Shut-off of Azeotropic Distillation Column Feed Pump Distwbance - Feedforward MPC Control Strategy .

time was present in the water composition measurement. This result leads to the conclu-

sion that an inferred water composition measurement using such techniques as Kalman

Filters, Neural Networks or other 'soft sensors' could allow adequate performance of the

DMC controller for 2x2 composition control (Quek et al., 2000). In addition, a constrained

DMC controller could be implemented with a stage 14 temperature constraint in an effort

to prevent theVAM tower bottoms composition rising above its specification.

Page 92: Vinyl Acetate

Static Feed Forward Ratio Control

The final alternative control strategy tested involved the utilization of reflux mass

flow to azeotropic distillation column feed mass flow static feed forward ratio controller.

The implementation was static as dynamic effects such as lag between feedflow changes

and reflux flow were not accounted for explicitly in the calculation. Figure 5. f 0 shows the

control scheme used in the static feedforward ratio controller to calculate the appropriate

reflux flow rate set point.

Tests completed were the same as for the base case given in section 5.3. Figure

5.11 shows the results for the same set point change in H20 composition in the bottom of

the azeotropic distillation column. Comparing the results with Figure 5.1 shows very little

difference in the performance of the base case and the feedforward ratio controller

scheme. This result at first appears incorrect given the obvious effects on feed flow rate

via the changing reboiler level and reflux flow. However, as discussed in Chapter 4.0, the

vapour dynamics dominate the behaviour of the column providing very good control. In

this test, the H20 composition controller reduces the reflux flow due to the direct telation-

ship between reflux flow and HZ0 mole fiaction (Figure 4.8). However, as the reflux

decreases the temperature on stage 14 k e a s e s forcing the reboiler duty to be decreased.

As a result, less boilup occurs resulting in the desired effect of increasing the bottoms

HZ0 composition. In conclusion, this change in reboiler duty dominates the behaviour of

the column in this particular test and masks the effects of the feedforward ratio controll

Page 93: Vinyl Acetate

Condenser

b

i ............ ........... * - - - . - -

8

8

e 8

a

8 Feed 8 8

Vent Stream

VAM Stream

Aqueous Stream

Figure 5.10: PFD for Static Feedforward Control Scheme.

due to changes in feedflow. Maximum bottoms VAM composition for this test was - 10

Page 94: Vinyl Acetate

Time, hr Time, hr

C1O5 - 2 100 Q)

aa C

t ' Column Feed Flow

Acetic Aci Feed Flow ' X 4

? /- '-\-/ - rc

- Stage 14 Temperature .

teS.

- -

0 5 10 15 20 25 0 5 10 15 20 25

Time, hr Time, hr

90 - 5 10 15 20 25 0 5 10 15 20 25

Figure 5.11: Step Test of H 2 0 Composition in Azeotropic Distillation Column Bottoms fiom 0.093 to 0.18 Mole Fraction - Static FeedForward Ratio Control Strategy.

In Figure 5.12, results are shown for a 5 minute shut-off of the azeotropic distilla-

tion column feed pumps. Improved results are shown for the test in comparison to the base

control scheme (Figure 5.2). In particular, both the changes in the H20 composition and

stage 14 temperature variables deviate less from their set points and are stabilized more

quickly. VAM composition reached a maximum of - 30 ppm. As a result, it can be con-

Page 95: Vinyl Acetate

0 5 10

Time, hr

60m

o -110t 1 Stage 14 2 3 I Temperature

t 901

I I 0 5 10

Time, hr

0 5 10 0 5 10

Time, hr Time, hr

Figure 5.12: 5 Minute Shut-off of Azeotropic Distillation Column Feed Pump Disturbance - Static FeedForward Ratio Control Strategy

duded that L/F feedforward ratio controller scheme has proved to be well suited for this

type of feed disturbance. Through the use at a static UF ratio, the composition controller

was required to make less aggressive reflux flow adjustments.

Ln Figure 5.13 shows the results for the same analyzer failure test as discussed in

section 5.3. The ratio scheme proved effective at reducing the drift in composition when

compared to the base case (Figure 5.3). The reduced production d V A M in the reactor not

Page 96: Vinyl Acetate

t 0 - u 0.1 - 0

E 0.09 - Q) - p 0.08 - Actual PV

0 5 10 15 20 25 Time, hr

- E e

Time, hr

Reactor Outlet

2 140 a u

t

80 0 5 10 15 20 25

Time, hr

Acetic Acid Feed Flow 21 -, 4u ---* /--- = "'I

0 5 10 15 20 25 Time, hr

Figure 5.13: VAM Production Rate Decrease Ramp (100 Minutes) with a 250 Minute Failure of H20 Analyser - Static Feedforward Ratio Control Strategy

only reduced the water content of the Liquid stream, but also reduced the feed flow. There-

fore with a decreasing feedflow the reflux to feed flow ratio produced a smaller

reflux flow. As a result, the water composition dropped by only 25% of the total H20

composition drop of the base case and the maximum VAM composition reached was only

- 30 ppm. Therefore, the ratio control scheme proved more effective at mitigating the ana-

lyzer failure test than the base control strategy.

Page 97: Vinyl Acetate

5.5 Conclusions

The simulation results of three plantwide control strategies have been presented

and compared to the performance of the base control strategy. The base case provided ade-

quate control for the three specific disturbances: i) Set point change in H20 composition,

ii) 5 minute feed pump shut-off and iii) 250 minute analyzer failure during a production

turndown test. An alternative reboiler level control scheme was tested and proved effec-

tive at meeting the need for constant vapourizer product gas temperature and flow rate.

A custom feedforward DMC controller was implemented within the framework of

the base decentralized design to control the 2 composition control variables of the azeotro-

pic distillation column. Results were poor due to the large difference between the H20

composition analyzer sample time and the DMC controller step size. Tests excluding the

effects of analyzer sample time showed stable response for the DMC controller. As a

result, it was concluded that options for an inferred composition analyzer should be inves-

tigated in fiture studies.

A static feedforward ratio control scheme was implemented on the azeotropic dis-

tillation column to maintain constant reflux to feed flow ratio. The results showed excel-

lent disturbance rejection for feedflow changes. This simple feedforward ratio control

scheme should be implemented as part of the azeotropic distillation base case control

scheme.

Page 98: Vinyl Acetate

6.0 Conclusions and Recommendations

6.1 Coaclusions

The purpose of this study was to investigate the control performance of a vinyl

acetate monomer WAM) process plant. To accomplish this goal, a rigorous dynamic

simulation of the process was developed using commercially available software. The

following conclusions can be drawn from simulation tests of the process and proposed

control strategies:

6.1.1 Azeotropic Distillation Column Tests

Both steady-state and dynamic tests of the azeotropic distillation column were

successfully performed to identifj. key control aspects of the column. The column was

found to exhibit a high degree of non-linearity when both the water composition and stage

temperature control loops were in open loop mode. This non-linearity has been identified

as input multiplicity. SpecificalIy, the existence of more than one steady-state reflux flow

input for a fixed water composition output was observed. It was concluded that the cause

of the non-linearity was the effect of the VAM composition profile shifting within the

column. Other characteristics of the non-linearity included an open loop process gain sign

change in the water composition variable. Also an inverse behaviour of the water middle

boiler as measured in the column bottoms stream was observed.

A steady state analysis was performed using the relative gain array and the

Niederlinski index steady-state techniques to identify the most appropriate dual

Page 99: Vinyl Acetate

composition control pairings. The use of these techniques failed to identify the best pairing

due to the high-degree of non-linearity observed. However, the analysis proved effective at

identifjr the characteristics of this behaviour.

In order to select the best variable pairing, dynamic simulation of the azeotropic

distillation column was required. This testing proved effective at identifling the base

control strategy as the most effective approach for dual composition control of the column.

It was also shown that the reverse pairing of the water composition and stage temperature

control variables with reflux and reboiler duty were highly coupled and could not provide

adequate and safe control. Specifically it was concluded that use of reflux flow to control

stage temperature was ineffective for controlling the VAM composition profile (thus not

meeting bottoms VAM specification).

6.1.2 Plantwide Tests

The results of three successful plantwide control strategies implementation were

compared to the performance of the base case plantwide control strategy. The fvst

alternative involved a change to the reboiler level control strategy. Justification for the

change was to provide more stable temperature control of the vapourizer to ensure adequate

flow of acetic acid to the reactor and to minimize process flow oscillation of te recycle loop.

The results showed this alternative control scheme to be effective at meeting these goals

through the direct manipulation of the acetic acid feed flow in controlling the level.

The second alternative represented the first time (to the author's knowledge) a

model predictive controller (MPC) has been incorporated into the fbmework of the VAM

plantwide control strategy. The custom controller implemented was the dynamic matrix

Page 100: Vinyl Acetate

control @MC) algorithm with a feed flow disturbance contribution. It was implemented on

the dual composition control loops of the azeotropic distillation column. The DMC failed

to meet the control objective by allowing violation of the VAM constraint of 100 ppm in

the column bottoms. The cause was attributed to the large difference between the sample

time of the water composition controller and the sample time of the controller. DMC

simulation results show that by assuming a continuous water composition measurement the

MPC controller would be effective at meeting the process control requirements.

The final alternative control strategy was the implementation of static feedforward

ratio to the water composition control loop of the azeotropic distillation column. A ratio of

reflux to column feed mass flow was selected and implemented into the calculation of the

reflux flow controller setpoint. Results showed the new control scheme to be the most

effective at improving the performance for feedflow disturbances.

6.2 Recommendations

Several recommendations are apparent based on the conclusions of this study. They

are as follows:

It is recommended that the to use new level control strategy be implemented to reduce

delay in reboiler level control and to maintain constant vapourizer gas temperature and

flow rate.

It is recommended that the L/F ratio static feedforward be implemented in the water

composition control loop to aid in minimizing feedflow disturbance.

Page 101: Vinyl Acetate

Due to the large mismatch in water composition sample time and the MPC controller

sample time, it is recommended that alternative water composition analysis methods

be determined that allow for a continuous signal, In the absence of a direct measure-

ment, an inferential water composition sensor should be sought. - Investigation of additional ratios such as reflux to distillate and vapour boil-up to feed

flow is recommended for hther testing as part of improvements to the azeotropic dis-

tillation column control. In addition, incorporation of a dynamic foward component

with-in the ratio control scheme to better account for effects of tower dynamics should

be investigated. - Start-up and shut-down scenarios play significant roles in the proper operation of the

chemical processes. Further study to investigate operational constraints to quantify

issues related to input multiplicity dwing start-up and shut down is recommended. - Study the implementation and performance of other common controller arrangements

such as internal model control (IMC), gain scheduling and feedforward control. - Investigate the applicabiiity of valve dynamics (stickiness, deadband, rate of change)

on overall plant performance.

Page 102: Vinyl Acetate

7.0 References

Anonymous (1 967) Make Vinyl Acetate h m Ethylene, Hydrocarbon Processing, 46(4),

pp. 146 - 149.

Anonymous (2000), Chemical Week August 16, pp. 46.

Abrams, D.S. and J.M. Prausnitz ( 1 975) Statistical Thennodynamics of Liquid Mirhcres: A

New fipression for the Excess Gibbs Energy of Partly or Completely Miscible

Systems. AIChE Journal, 2 1, pp. 1 16 - 128.

Anderson, J., T. Back , J. van Loon and M. King (1994) Getting the most fiom Advanced

Process Control. Chemical Engineering, March, pp. 78 - 89.

Astrom, KJ. and T. Hagglund (1984) Automatic Tuning of Simple Regulators with

Specifications of Phase and Amplitude Margins., Automatics, Vol. 20, No. 5, pp.

645 - 651.

Bisowarno, B.H. and M.O. Tade (2000) Dynamic Simulation of Startup in Ethyl tert-Butyl

Ether Reactive Distillation with Input Multiplicity. Ind. Eng-Chem. Rex, 39, pp.

1950 - 1954.

Bristol, E.H. (1966) O n a new Measure of Interactions for Multivariable Process Control.,

LEEE Trans. Auto. Con., AC-11: 133.

Conoerse, J.G. (1999) Section 6 Real-Time Analytical Composition Measurements - Discrete Sampling. In: McMillan (ed.) Process/lndustrial Instruments and Controb

Handbook - 5th Edition, McGraw-Hill, New York, USA.

Page 103: Vinyl Acetate

Cutler, C.R and B.L. Ramaker (1979) Dynamic matrix Control: A Computer Control

Algorithm, AlChE Meeting, Houston, Tx.

Celanese (2000), Personal Communication, Fort Saskatchewan, Alberta, Canada.

Douglas, J.M. (1 988) Conceptual Design of Chemical Processes. McGraw Hil, New York,

USA.

Campos, M.C.M.M. and P.S.B. Rodrigues (1993) Practical control strategy eliminates

FCCU compressor surge problems. Oil and Gas Journal, Jan. 1 1, pp. 29 - 32.

ChemExpo Website (2000) www.chemexpo.com/aews/profi1eO0082 I . c h , August 2 1.

Fisher, D.G. (1991) Process Control: An O v e ~ e w and Personal Perspective. The

Canadian Journal of Chemical Engineering, Vol. 69, Febmary, pp. 5 - 24.

Fisher, W.R., M.F. Doherty and J.M. Douglas (1988) The Interface between Design and

Control- 3. Selecting a Set of Controlled Variables. Ind. Eng. Chem. Res., 27, pp.

611 -615.

Franks, G.E. (1972) Modelling and Simulation in Chemical Engineering, John Wiley &

Sons, New York, USA.

Fredenslund, A., RL. Jones, J.M. Prausnitz (1975) Group Contribution Estimations of

Activity Coefficients in Non-Ideal Liquid Mixtures., AiChE Journal, 21, pp. 1086

- 1098.

Fruehauf, P.S. and D.P. Mahoney (1993) Distillation column control design using steady

state models: Usefirlness and limitations. ISA Transactions 32, pp. 157 - 175.

Gmehling, J. and U. Onken (1977) Vapour-Liquid Equilibrium Data Collection. Vol. 1 ,

DECHEMA, Frankfiut.

Page 104: Vinyl Acetate

Grassi 11, V.G. (1 992) Rigorous Modelling and Conventional Simulation. In: W.L. Luyben

(ed.) Practical Distillation Control, Van Nostrand Reinhold, New York, pp. 29 - 47.

Hayden, J.G. and J.P. O'Connell (1975) A Generalized Method for Predicting Second

Virial Coefficients. Ind. Eng. Chem. Process Des. Dev. 14, pp. 209 - 2 1 6.

Hokanson, D.A. and J.G. Gerstle (1992) Dynamic Matrix Control Multivariable

Controllers. In. W.L. Luyben (ed.) Practical Distillation Control, Van Nostrand

Reinhold, New York, pp. 248 - 27 1

Hugo, A. (2000) Limitations of model predictive controllers. Hydrocarbon Processing,

Januacy, pp. 83 - 88.

Hyprotech Ltd. Website (2001) www.hyprotech.com/ole/defaultasp?menuchoic~su2,

Unit Operation & Reaction Extensions.

HYSYS. Plant Simulation Basis (1 998), Hyprotech, Calgary, Canada.

HYSYS..Plant Dynamic Modelling (1 998), Hyprotech, Calgary, Canada.

HYSYS 2.3 Release Notes (2000), December 7, Hyprotech Ltd., Calgary, Canada.

Jacobsen, E.W. (1993) Input Multiplicity and Right Half Plane Zeros in Binary Distillation.

Proceedings European Control Conference, Groningen, Holland, pp. 66 1 - 666.

Koppel, L.B. (1982) Input Multiplicities in Nonlinear Multivariable Control Systems.

AiChE Journal, Vol. 28, No. 6, pp. 935 - 945.

Kothare, M.V., R. Shinnar, I. Rhard and M. Morari (2000) On Defining the Partial Control

Problem: Concepts and Examples., AlChE Journal, December, Vol. 46, No. 12.

Page 105: Vinyl Acetate

Leegwater, H. (1992) Industrial Experience with Double Quality Control. In: W.L. Luyben

(ed.) Practical Distillation Control, Van Nostrand Reinhold, New York, pp. 33 1 - 350.

tongwell, E.J. (1993) Dynamic Modelling for Process Control and Operability,

Proceedings of the 1993 ISA International Conference, ISA Research Triangle

Park, North Carolina, USA.

Luyben, W .L. (1 990) Process Modelling, Simulation and Control for the Chemical

Engineer - Second Edition., McGraw-Hill, Inc., New York.

Luyben, W.L. (1 993) Dynamics and Control of Recycle Streams. 3. Alternative Process

Designs in a Ternary System. Ind. Eng. Chem. Res. 32, pp. 1 142 - I 153.

Luyben, M.L. and B.D. Tyreus (1998) An industrial design/control study for the vinyl

acetate monomer process Computers Chem. Engng. Vol. 22, No. 7-8, pp. 867 - 877.

Luyben, M.L., B.D. Tyreus and W.L. Luyben (1 997) Plantwide Control Design Procedure.

MChE Journal, December, Vol. 43, No. 12.

Luyben, W .L., B .D. Tyreus and M.L. Luyben (1 999) Plantwide Process Control. McGraw

Hill, New York, USA.

Magnussen, T., P. Rasmussen and A. Fredenslund (1981) UNIFAC Parameter Table for

Prediction of Liquid-Liquid Equilibria., Ind. Eng. Chem. Process Des. Dev., 20, pp.

33 1 - 339.

Mahoney D.P. ( 1 994) HYSYS An integrated system for process engineering and control.

Hydrocarbon Asia, NOV/DEC, pp. 72 - 82.

Page 106: Vinyl Acetate

Marlin, T.E. (1995) Process Control - Designing Processes and Control Systems for

Dynamic Performance. McGraw-Hill, Inc., New York.

Marlin T.E., G.W. Barton, M.L. Brisk and J.D. Perkins (1987) The Application of

Advanced Control Techniques to Industrial Systems - Opportunities and Bene*.

The Warren Centre for Advanced Engineering, Advanced Process Control Project

Report, The University of Sydney.

Maurath, P-R, D.A. Mellichamp and D.E. Seborg (1 988) Predictive Controller Design for

Single-InputlSingle-Output (SISO) Systems., Ind. Eng. Chem. Res., 27, pp. 956 - 963.

McAvoy T J. (1999) Synthesis of Plantwide Control Systems Using Optimization. h d .

Eng. Chem. Res., 38, pp. 2984 - 2994.

Michelsen, M.L. (1982) The Isothermal Flash Problem. Part I. Stability, Fluid Phase

Equilibria, 9, pp. 1 - 19.

Michelsen, M.L. (1982) The Isothermal Flash Problem. Part II. Phase Split Calculation,

Fluid Phase Equilibria, 9, pp. 21 - 40.

Nakamura, S. and T. Yasui (1970) The Mechanism of the Palladium-Cataiysed Synthesis

of Vinyl Acetate from Ethylene in a Heterogeneous Gas Reaction. Journal of

Catalysis, 17. pp. 366 - 374.

Niederlinski, A. (1971) A Heuristic Approach to the Design of Linear Multivariable

Interacting Control Systems., Autornatica, 7: 69 1.

Page 107: Vinyl Acetate

Null, H.R (1970) Phase Equilibrium in Process Design., J o b Wiley & Sons, New York,

USA.

Perkins, J.D. and S.P.K. Walsh (1996) Optimization as a Tool For Design/Control

Integration. Computers Chem. Engng. Vol. 20, No. 4, pp. 3 15 - 323. Prausnitz, J.M., RN. Lichtenthder and E.G. Azevedo (1986) Molecular T7zermodynarnics

of Fhid Phase Equilibria - 2nd Edition. McGraw HillBook Company, New YO&,

USA.

Reid, C.R, J.M. Prausnitz and B.E. Poling (1 987) 17re Properties of Gases and Liquids -

4th Edition. McGraw-Hill Book Company, New York, USA.

Renon, H. and J.M. Prausnitz (1968) Local Compositions in Thermodynamics Excess

Functions for liquid Mixtures. MChE Journal, 14, pp. 1 3 5 - 144.

Riggs, B.R. (1999) Chemical Process Control. Ferret Publishing Lubbock, Texas, USA.

Ross, R., J.D. P e r k . , E.N. Pistikopoulos, G.L.M. Koot and J.M.G. van Schijndel(200 1)

Optimal design and control of a high-purity industrial distillation system.

Computers and Chemical Engineering 25, pp. 14 1 - 1 50.

Quek, C.J., R. Balasubramanian and G.P. Rangaiah (2000) Consider using 'soft analysers'

to improve SRU control - Researchers use neural networks and regression methods

to build models that accurately predict H2S and SO2 in tail gas., Hydrocarbon

Processing, January, pp. 10 1 - 106.

Sarnanos, B., P. Boutry and R. Montarnal (1971) The Mechanism of Vinyl Acetate

Formation by Gas-Phase Catalytic Ethylene Acetoxidation. Journal of Catalysis,

23, pp. 19 - 30.

Page 108: Vinyl Acetate

Seborg, D.E. ( 1 994) A perspective on advanced strategies for process control., Modelling,

Idennijication and Control, Vol. 15, No. 3, pp. 1 79 - 189.

Shinskey, F.G. (1 996) Process Control Systems - Application, Design and Tuning - Fourth

Edition. McGraw Hill, New York, USA.

Sneesby, M.G. (1998) Simulation and Control of Reactive Distillation, Doctor of

Philosophy Thesis, Curtin University of Technology, .

Svrcek, W.Y., D.P. Mahoney and B.R. Young (2000) A Real-Time Approach To Process

Control., John Wiley & Sons, Ltd., New York, USA.

Tyreus, B.D. (1992) Object-Oriented Simulation. In: W.L. Luyben (ed.) Practical

Distillation Control, Van Nostrand Reinhold, New York, pp. 72 - 85.

Tyreus, B.D. and W.L. Luyben (1993) Dynamics and Control of Recycle Streams. 4.

Ternary Systems with One or Two Recycle Streams., Ind. Eng. Chem. Res., pp.

1154 - 1162.

van der Lee, J.H., D.G. Olsen, B R Young and W.Y. Svrcek (2001) An Integrated, Real

Time Computing Environment for Advanced Process Control Development., in

Press, Chemical Engineering Education, (Appendix C) .

van der Wal, G., C.P. Haelsig and D. Schulte (1996/1996) Minimizing Investment with

Dynamic Simulation. Petroleum Technology Quarterly, Winter: 69 - 75.

Vogel, E.F. (1992) Plantwide Process Control Simulation. In: W.L. Luyben (ed.) Practical

DistiIlation Control, Van Nostrand Reinhold, New York, pp. 86 - 95.

Page 109: Vinyl Acetate

Walas, S .M. ( 1985) Phase Equilibrium in Chemical Engineering. Butterworth-Heiemann,

Boston, USA.

Wilson, G.M. ( 1 964) Vapour-Liquid Equilibrium XI: New Expression for the Excess Free

Energy of Mixing. J. Am. Chem. Soc., 86, pp. 127 - 130.

Zheng, A., V. Grassi and G, Meski (1998) On Control of Distillation Columns with Input

Multiplicity., Ind. Eng. Chem. Res. 37, pp. 1836 - 1840.

Page 110: Vinyl Acetate

99

7.0 Appendix A: Process and Equipment Rating Data

Table 7.1: Feed Stream Process Data.

Acetic Acid

30.0

149.6

824.7

0.0

0.0

0.0

0.0

0.0

0.0

1 .O

Temperature, C

Pressure, psia

Flow, molehin.

02, mole fiaction

C02

C2H4

C2H6

VAM

H20

Ethylene

30.0

149.6

878.4

0.0

0.0

.999

.001

0.0

0.0

0 2

30.0

150.0

5 16.1

1 -0

0.0

0.0

0.0

0.0

0.0

Acetic Acid 0.0 0.0

Page 111: Vinyl Acetate

Table 7.2: Vaporizer Process Data.

0.008

0.1 15

I

I320

Acetic Acid

0.008

0.1 15

Page 112: Vinyl Acetate

Table 7.3: Reactor Process Data.

0.055

Acetic Acid 0.1 11 0.070

Page 113: Vinyl Acetate

Table 7.4: Separator Process Data.

Liquid Out

35.5 Temperature, C

Feed

35.5

Pressure, psia

Flow, rnole/min.

02, mole fraction

C02

C2H4

C2H6

VAM

H20

Acetic Acid

Vapour Out

35.5

69.9

1.879e4

0.049

0.0 10

0.55 1

0.220

0.045

0.055

0.070

69.9

1 -606e4

0.058

0.01 1

0.644

0.257

0.020

0.007

0.003

69.9

2736

0.000

0.000

0.003

0.000

0.195

0.340

0.462

Page 114: Vinyl Acetate

Table 7.5: Absorber Process Data.

Temperature, O C

Pressure, psia

Flow, mole/rnin.

02, mole fraction

C02

C2H4

C2H6

VAM

H20

Acetic Acid

Liquid Out

53.2

144.4

1110

0.000

0.000

0.009

0.000

0.261

0.142

0.588 J

Wash Acid Feed

42-0

128.0

740.0

0.000

0.000

0.000

0.000

1 PPm

0.093

0.907

Vapour Out

39.7

128.0

1.569e4

0.059

0.01 1

0.659

0.264

0.002

0.00 1

0.005

Page 115: Vinyl Acetate

Table 7.6: Azeotropic Distillation Column Process Data.

Temperature, O C

Pressure, psia

Flow, mole/min.

02, mole fi-action

C02

C2H4

C2H6

VAM

H20

Acetic Acid

Feed

40-6

26.7

3847

0.000

0.000

0.004

0.000

0.2 14

0.283

0.498

VAM Product

40.0

14.7

874.5

0.000

0.000

0.007

0.000

0.933

0.057

0.003

Aqueous Product

40.0

14.7

846.7

0.000

0.000

0.000

0.000

0.004

0.993

0.002

Bottoms

136.5

30.0

2111

0.000

0.000

0.000

0.000

1 PPm

0.093

0.907

Page 116: Vinyl Acetate

Table 7.7: Purge Stream Process Data.

Temperature, O C

Pressure, psia

Flow, mole/min.

02, mole fiaction

C02

C2H4

C2H6

VAM

H20

Acetic Acid

Vent

40-0

14.7

15.9

0.010

0.032

0.666

0.006

0.228

0.059

0.000

C02 Purgc

41.4

128.0

68.4

0.000

1 -000

0.000

0.000

0.000

0.000

0.000

PW2e

39.7

128.0

3.5

0.060

0.000

0.666

0267

0.002

0.00 1

0.005

Page 117: Vinyl Acetate

Table 7.8: Vaporizer and Reactor Equipment Rating Data.

Vaporizer Total Volume = I 7 m3.

Vaporizer Working Volume = 8.5 m3.

Vaporizer Duty = 1.25eS k c a h .

Reactor Void Volume= 6.075 m3.

Catalyst Density = 500 kg/m3.

Reactor Duty = 2.508~6 kcal/h.

Reactor Delta P = 36 psi.

Page 118: Vinyl Acetate

Table 7.9: FEHE, Separator and Absorber Equipment Rating Data.

FEHE Duty = S.2e5 kcal/h.

FEHE Overall UA = 2.845e4 kl/C/h.

FEHE Hot Outlet Temperature = 126.9 C

Separator Volume = 1 5 m3.

Separator Working Volume = 7.5 m3.

Separator Cooler Duty = 2.67e6 kcal/h.

Compressor Power = 590 k W

Absorber Sump Volume = 8 m3.

Absorber Sump Working Volume = 4 m3.

Number of Theoretical Stages = 8.

Approximate Stage Liquid Volume = 0.30 m3.

Pump Around Flow = 55.5 Actual m3/h.

Pump Around Cooler Duty = 6.466e4 kcal/h.

Pump Around Draw Stage = 8.

Pump Around Return Stage = 6

Wash Acid Cooler Duty = 9.808e4 kcaVh

Page 119: Vinyl Acetate

Table 7.10: Azeotropic Distillation Column Equipment Rating Data. --

Number of Theoretical Stages = 2 1.

Feed Stage = 5.

Approximate Stage Liquid Volume = 0.1 7 m3.

Reboiler Duty = 2.67e6 kcal/h

Condenser Duty = 2.38e4 kcam.

Reboiler Volume = 12 m3.

Reboiler Working Volume = 5 m3.

Decanter Volume = 10 m3.

Decanter Working Volume = 5 m3.

Decanter Aqueous Volume = 0.4 m3.

Page 120: Vinyl Acetate

8.0 Appendix B: Dynamic Matrix Controller

Algorithm

Page 121: Vinyl Acetate

' Program to link Hysys with Excel via the PDT. OLE calls are ' made using Matlab add-in to Excel. option Explicit ' Early Binding Public HyApp As HYSY S.Application Public SimCase As SimulationCase Public dt As HYSYS.DataTable DT Transfer Variables

Public Rtags As Variant Public Rvalues As Variant Public Runits(2) As String Public PV(2) As Double Public Wtags As Variant Public Wvalues(1) As Double Public Wunits(1) As String ' Special Flags Public dtValid As Boolean Public simCaseVaiid As Boolean Public hyAppValid As Boolean Public i As Integer 'Integrator Public Integrator As Integrator Public integratorvalid As Boolean 'Conversion fiom Text Box Public Y 1 SP As Double Public Y2SP As Double

'Horizon Variables Public U As Integer ' Control horizon Public P As Integer ' Prediction horizon Public M As Integer ' Model horizon

' Excel Init Public xisheet As Excel. Worksheet

' Variables used in Registering of Interface Public notify event 1 As Eventsink Public eventSinkCount1 As Integer

Sub Main0 On Emor GoTo mainerror ' Initialization Init ' Binding to datatable BindDataTable

Page 122: Vinyl Acetate

Form.Show ' For some reason modal does not work in Excel97 VBA (Does in 2000)

Exit Sub maine nor:

MsgBox "Error in Main " & Err-Description Cleanup

End Sub

Sub Init0 On Error GoTo InitError

' Regular Initialization Set HyApp = CreateObject("HY SYS.ApplicationW) HyApp-Visible = True hyAppValid = True Set SimCase = GetObject("D:\U Of

C\Thesis\FinalTests\Feedfofward\FinalalFFFFnoise2 .hscl') 'Set SimCase = HyApp.ActiveDocwnent SimCase.Visible = True simCaseValid = True Set xlSheet = Sheets(Sheet1 ") i=O Y 1 SP = 0,093 Y2SP = 99#

Set Integrator = SimCase.Solver.1ntegrator integratorvalid = True

' Matlab Initialization mlevalstring "M = 200" ' Model horizon mlevalstring "U = 1 " ' Control horizon mlevalstring "P = 100" ' Prediction horizon

mlputmatrix "A 1 1 ", Range("akl350:akl449") ' Building A Matrix mlputmatrix "A 12", Range("& 1 459:akl558") ' Unfortunately these have to set

manually for SS mlputmatrix "A2 1 ", Range("& 1 567:ak1666") mlputrnaeix "A22", Range("akl676:akl77SW) mlevalstring "A=[(Al I), (A12);(A21), (A22))"

mlputmatrix "Am1 1 ", Range("aklO4:ib203") ' used to build Am matrix when P horizon < M horizon

mlputmahix "Am1 2", Range("ak3 1 1 :ib4 10") ' unfortunately these have to be set manually (still to investigate options)

rnlputmatrix "Am2 1 ", Range("ak5 1 9:ib6 18 ")

Page 123: Vinyl Acetate

mlputmatrix "Am22 ", Range("ak726 :ib825 ") mlevalstring "Amy 1 =[(Am 1 1 ), (Am 12)] "

mlevalstrhg "Amy2=[(Am2 1 ), (Am22)IW

mlputmatix "Bm 1 1 ", Range(11ak934:ib 1 033 ") ' used to build feedforward prediction matrix

mlputmatrix "Bm2 1 ", Range(llak 1 14 1 :ib 1240") rnlevalstring "Bmy 1 =[(Bm 1 1 ), (zeros(size(E3m 11 ))) 1 "

mlevalstring "Bmy2=[(Bm2 1 ), (zeros(size(E3m2 1 )))I l1

mlputmatrk "Y 1 actpast", Range("m2:m20 1 ") ' y 1 (H20 mole frac) past values mlputmatrix "Y2actpast1', Range("n2:n20l1') ' y2 (Stage 14 deg C) past values

KMPCCalc Calculate KMPC only once

Exit Sub InitError:

MsgBox "Error initializing " & Err.Description End Sub

Sub KMPCCalcO On Emor GoTo KMPCerror

mlevalstring l1 Wsize=PM ' mlevalstring " lamsize=U" mlputmatrix "lam", Range("f2 :D ") mlputmatrix " w" , Range("f5 :f6")

rnlevalstring "W = [(w(l)*eye(Wsize)) (O*eye(Wsize)); (OLeye(Wsize)) (w(2)*eye(Wsize))] "

mlevalstring "Larnbda=[(lam(l) *eye(lamsize)) (O*eye(lamsize)); (O*eye(lamsize)) (lam(2) * eye(lamsize))] "

mlevalstring l' KMPC=inv(A' * W * A+Lambda)* A W 'Controller gain matrix

Exit Sub KMPCerror :

MsgBox "Error in KMPC Calc" & Err.Description

End Sub

Sub BindDatrrTabteO On Error GoTo BindError

Page 124: Vinyl Acetate

Dim result As Boolean ' Bind datatable to object Set dt = SimCase.DataTables.Item(0) ' Bind object to EBSink class Set notifyeventl = New EventSiok register instance with datatable

result = dt .AddNotitify Event Sink("LBSink, notifyevent 1 ) ' Enable Data Transfer dtValid = True dt. StartTmsfer

Rtags = dt.ReadTags Wtags = dt.WriteTags

' for unit conversion - not working yet Wunits(0) = "" Wunits(1) = ""

Exit Sub B indError :

MsgBox "Error in Binding DataTable " & Err-Description Cleanup

End Sub

Sub GetPVO On Error GoTo GetPVError

' Get PV's fkom datatable Rvalues = dt. GetValues(Rtags) ' Pass PV to Excel xlSheet.Range("B4") = Rvalues(0) ' read latest y 1 = h20 frac xlSheet.Range("B5") = Rvalues(1) ' read latest y2 = stage 14 temp xlS heet .Range("B6") = Rvalues(2) ' read latest FeedFlow value

Exit Sub GetPVError:

MsgBox "Error in GetPVError " 8r Err.Description Cleanup

End Sub

Sub Calcso On Error GoTo CalcsError

'MPC Calculations Cells(2 1,2) = "Transferring"

Page 125: Vinyl Acetate

'controller actions calculated by least squares mlevalstring "ufuture=KMPC*E"

Updating Output

Cells(2 1,2) = "Idle" ' get calculated OP's from Excel into array WvaLues(0) = xlSheet.Range("b9") ' write FIC 100 SP - ie. U 1 value Wvalues(1) = xlSheet.Range("bl0") ' write TIC1 00 OP - ie. u2 value

Exit Sub CalcsError:

MsgBox "Error in Calcs " & Err.Description Cleanup

End Sub

Sub WriteOPO On Error GoTo WriteOPerror

Pass calculated OP's to datatable dt.SetValues Wtags, Wvalues, Wunits

Exit Sub WriteOPerror:

MsgBox "Error in WriteOP" & Err.Description Cleanup

End Sub

Sub YPredictedO On Emr GoTo YPredictederror

mlputrnatrix "delupastl ", Range("02:oZO 1 ") mlputmatrix "delupast2 ", Range("p2:p20 1 ")

Page 126: Vinyl Acetate

mlevalstring "delupast = [delupast 1 ; delupast2Iw

mlputmatrix "yl sp", Cells(l4,5) ' scaled value mlputmatrix "y2spW, Cells(l5,S) ' scaled value mlputmatrix "yoal ", Cells(4,3) 'the latest y 1 scaled value rnlputmatrix "yoa2", Cells(S,3) 'the latest y2 scaled value

mlevalstring "Y 1 acti=Y 1 actpast" mlevalstring "Y 1 actpast(2:M)=Y 1 acti(1 :M- 1 )" 'shifts history of past y 1 values mlevalstring "Y 1 actpast(1 )= yoa 1" mlevalstring "y 1 plast=Y 1 actpast(M)"

rnlevalstring "Y2acti=Y2actpastW mlevalstring "Y2actpast(2:M)=Y2acti(l :M-I)" 'shifts history of past y2 values mlevalstring "Y2actpast(l)= yo&" mlevalstring "y2plast=Y2actpast(M)"

mlevalstring "Y 1 plast=y 1 plast*ones(size(Y 1 actpast( 1 :P)))" ' creating proper past y vector of size P

mlevalstring "Y2plast=y2plast*ones(size(Y 1 actpast(1 :P)))"

mlevalstring "Yp 1 =Amy 1 *delupast+Bmy l *deld 1 past+Y 1 plastl' ' feedforward contribution

rnlevalstring "Yp2=Amy2*delupast+Bmy2*deld 1 past+Y2pIast1' mlevalstring "Ypi 1 =Yp 1 " ' shifts prediction matrix1 mlevalstring "Ypi2=Yp2" ' shifts prediction matrix2

mlevalstring "Ypil(1 :P-l)=Ypl(2:P)" ' using Ypi to store predicted values mlevalstring "Ypi 1 (P)=Yp 1 (P)" ' Yp is used to store calculated Ypo mlevalstring "YpiZ(1 :P- l)=Yp2(2:P)" mlevalstring "Ypi2(P)=Yp2(P)"

mlevalstring "bl=(yoal-Ypl(l))*ones(size(Y1actpast(l :P)))" mlevalstring "b2=(yoa2-Yp2( 1 ))*ones(size(Y 1 actpst(1 :P)))" mlevalstring "Ypcl = Ypi l+bl " mlevalstring "Ypc2 = Ypi2+b2" mlevalstring "Ypc = ppcl;Ypc2]"

Exit Sub YPredictederror :

MsgBox "Error in YPredicted " & Err.Description End Sub

Sub ErrorCalcO

Page 127: Vinyl Acetate

On Error GoTo ErrorCalcerror

mlevalstrhg "Y 1 sp=y 1 sp*ones(size(Y 1 actpast(1 :P)))" mlevalstring "Y2sp==2sp*ones(size(Y I actpast(1 :P)))" mlevalstring "Ysp=F 1 sp;Y2sp J " mlevalstring "E=Ysp-Ypc" ' Applied err b on every future yi

Exit Sub ErrotCalcerror:

MsgBox "Error in ErrorCalc sub " & Ea.Description End Sub

Sub CIampOutputs() On Error GoTo ClampOPerror

mlputmatrix "prevul ", Cells(9,5) ' U1 - FIC 100 SP kg/h scaled mlputmatrix "prevu2", Cells(lO,5) ' U2 - n C 100 SP C scaled

mlevalstring "newu 1 = prevu 1 +ufirture( 1 )" mlevalstring "newu2 = prev3+ufirture(2)" '???is this hard code necessary???

mlgetrnatrix "new1 ", "g2" 'to be able to clamp output matlabrequest mlgetmatrix "newu2", "g6" 'to be able to clamp output matlabrequest

If (Cells(2,7) > 1 #) Then mlevalstring "new1 =I .Ow

End If

If (Cells(2, 7) < 0#) Then mlevalstring "newu 1 +.Ow

End If

If (Cells(6, 7) > 1 #) Then mlevalstring "newu2=l .Ow

End I f

If (Cells(6, 7) < O#) Then mlevalsaing "newu2=0.0"

End If

mlevalstring "ufbture(l)= newu 1 - prevu 1 " ' Update latest U

Page 128: Vinyl Acetate

117 mlevalstring "ufuture(2)= newu2 - prevu2" I???? is this hard code necessary???

Exit Sub ClampOPenor :

MsgBox "Error in ClarnpOP Sub " & Err.Description End Sub

Sub UpdateDeUPastO On Error GoTo UpdatedelUpastemor

mlevalstring "delupasti 1 =delupastl " 'need to update delupast here. mlevalseing "delupast 1 (1 :M- 1 )=delupasti 1 (2:M)" mlevalstring "delupast 1 (M)=ufbture(l)" mlevalstring "deIupasti2~elupast2'' mlevalstring "delupast2(1 :M- 1 )=delupasti2(2 :M)" mlevaIstring "delupast2(M)=Ufuture(2)" ' ????is this hard code necessary???

Exit Sub Updatedelupasterror:

MsgBox "Error in UpdatedelUpast Sub " & Err.Description End Sub

Sub UpdatingOutputO On Error GoTo UpdatingOutputenor

' Updating output mlgetrnatrix "Y 1 actpast", "m2" matlabrequest mlgetrnatrix "Y2actpast", "n2" matlabrequest

mlgetmatrix "y 1 plast", 32" ' update y 1 (-m) matlabrequest mlgetmatrix "y2plast", 96" ' update y2(-m) matlabrequest

mlgetmatrix "ufbture", "q2" matlabrequest ' not needed for getmatrix when reference to matlab automation server is

set.

'mlevalstring "Y=A*ufutwe+YpcW ' Back check prediction vector 'mlevalstring "Y 1 = Y(l :P)" 'mlevalstring "Y2 = Y(P+1:2*P)" 'mlgetmatrix "Y 1 ", "3" 'matlabrequest

Page 129: Vinyl Acetate

'mlgetmatrix "Y2", "v2" 'matlabrequest

mlgetmatrix "ylsp", '32" matlabrequest mlgetmatrix "y2spW, '36" matlabrequest

mlgetmatrix "newu 1 ", "e9" ' This is SP for FIC 1 00 - paired with y 1. Scaled matlabrequest mlgetmatrix "newu2", "el 0" ' This is SP for TIC100 - paired with y2. Scaled matlabrequest

mlgetmatrix "delupast 1 ", "02" matlabrequest mlgetrnatrix "delupast2", "p2" matlabrequest

mlgetmatrix "dl ", "s2" ' update feedflow disturbance variables matlabrequest mlgetmatrix "deld 1 past 1 ", "t2'" matlabrequest

Exit Sub UpdatingOutputerror :

MsgBox "Error in UpdatingOutputerror sub " & Err.Description End Sub

Sub Cleanup0 On Error GoTo CleanupError

If integratorvalid = True Then Set Integrator = Nothing

End If

If dtValid = True Then Clean up code for Notify Event

Dim result As Boolean result = dt.RemoveNotify EventSink(noti@event 1) Set notifyevent1 = Nothing

dt. EndTransfer Set dt = Nothing

End I f

Page 130: Vinyl Acetate

I f simCaseVaiid = True Then SirnCase.Close Set SimCase = Nothing

End I f

I f hyAppValid = True Then HyApp.Quit Set HyApp =Nothing

End I f

End ' Terminates Everything

Exit Sub CleanupError:

MsgBox "Error in Quit " & Err.Description End Sub

' Dispatch Interface Methods Implementation Dim instanceNarne As Variant

Private Sub Class_IoitializeO

' Add Initialization Events here if Needed. End Sub

Public Function AdviseEventO

i = i + l xlSheet.Range("b22") = i I f i = 60 Then ' time step is 30 s ie. 60 steps since integrator step 0.5 s

GetPV Calcs WriteOP i = O

End If End Function

Page 131: Vinyl Acetate

9.0 Appendix C : Journal Papers

1. van der Lee, J.H., D.G. Olsen, B.R.Young andW.Y. Svrcek (2001) An Integrated,

Real Time Computing Environment for Advanced Process Control Development.,

Chemical Engineering Education, in Press.

2. Olsen, D.G., B.R. Young and W.Y. Svrcek (2001) A Study in Advanced Control Appli-

cation to an Azeotropic Distillation Column within a Vinyl Acetate Monomer Process

Design., Datel. Chern. Eng. 65 Mineral Pmcessing, in Press.

Page 132: Vinyl Acetate

classroom

AN INTEGRATED, REAL-TIME COMPUTING ENVIRONMENT

For Advanced Process Control Development

JAMES H. VAN DER LEE, DONALD G. OLSEN, BRENT R YOUNG, WILLUM Y. SVRCEK University of Calgary Calgary, Albetta, Canado 72N IN4

T oday's process control field is such that control tech- niques that were considered advanced even ten to @ # VI] twenty years ago arc now bccoming ~ornmonplace."~ Figure L S0-m communi'cation pathways.

Model predictive control 0 in all it's incarnations is a cxample4oday there well over No thousand MPC and other APC technologies even in senior. advanced under-

con troll^ =@ to be in -ration i n d ~ ~ d l y - ~ ' h p i t e graduate process control technical clktives. rg.. as Avo- ws abundance of MPC tcehnolog% however. commcf~ial cated by Edgar!"' Even some exul lentgnduatc courses simulation sohare packages have been slow to incorporate me finbends and s r a r slcpr of APC*ul kav- MPCdgor ih- Even when included. h a l g o r i t h ing those students who wish to enter the field of process con- are prescribed and the software does not allow fo r ool devoid of pmctial uper iencc ~ t h MPC and ~ p c cwomhmion of the algaithm(s) by users such as process dghthmnr. engineers. lhis can be attributed to tbe fact tbat there arc

This paper presents a simulation eavironmcnt, composed -Y MPC 4 it would lage hveIopment of-di,y avpi*bk '.&-a =fiw= ma, tbpt

jncorpmrc but eve. if allows for quick and easy development of custom APC it would not be particularly useful for the testing of a new schema a vide wiuy of c*~vel,, algorithm. moveis the implementation M e n dedbcd above and al- -

?his lhnitation must be .occptcd unkss you decide to pro- 10, m, d d d e @ l u t e d gradmte mdeDt .a i3- Y w own sirnulate Y m o m P m and con- oppmunity to study and implement APC rcbcmes of vary- trol algorithm. using a programming language such as C++ or V~sual Basic (VBA). This approach is time-consuming. however, and is typically attempted only by process cngi- ntcrs with prior experience in such an exercise.

This lack of both ihe flexibility of commercial packages and the experience or education r e q u i d to build one's own simulator and control algorithm can cause process engineers to steer clear of MPC, even though it may provide the solu- tion they are looking for and despite it's relative abundance and growing acceptance in a number of industries. This bar- ricr to understanding and implementation also exists for many other related advanced pro- control (APC) technologies that arc not as widespread as MPC.

From an educational perspective, this barrier to impkmen- tation has also largely prevented the facile inclusion of MPC

o Copydght ChE Dividon

J I I l n r v w , d w L . r i s . & U & n e ~ ( e ~ h - I . n d P b m b u m - a t I r s - d - . ) I b m h t r B S ~ ~ s s s ) & t d # m i c r l ~ l i a n ~ ~ d & ~ w . ) r ~ s # - sea&knaesandhe~n&dpredeliveandrdd.pil#.mins.bsorp- -plurC. O # , W m k a p . n - l & e ~ t e s b d s r V h ~ u d p . l ~ -8 tm-d- ty .nd~Wm- rr#ht+pmM&~UdhCa@ary. ~ ~ n i s B S h ~ r r r g h + s r - i n $ h m n m e ~ a f ~ ~ M d ~ ~ k a r s g a n ~ ~ Q w I 1 d ~ C h a ~ d a ~ ~ ~ p I l D c r s s e & N m t Y o u r g i s A s s @ 8 & ~ d ~ . n d ~ B W ~ r t Y l s t m m d y d ~ rnnorivrdhkkE(14Mw)ndhk P h O ( 1 ~ ) ~ h d r a m i U l n d p n r c r s s ~ b r r n l l r e ~ ~ d ~ i n ~ z ~ ~ ( u r d r i r r g n d ~ h l r r - ~ ~ o n ~ ~ v d ~ W a P F i w a S ~ k ~ d C l l t m n i e r I w r d P l b d # n , ~ I n s ~ a f ~ w ~ ~ r B S c ( t @ 6 2 ) n d W P h D I 1 ~ -4m=h- ~ I h r ~ d A b r P r ) r k I l # h - ~ a n d n u ~ l ~ - ~ ) a n ~ u w i d . . I C r

ojASEE M 0 1

Page 133: Vinyl Acetate

ing complexity, thus allowing for a level of understanding of APC that only a "learning-by-doing" approach can pro- vide.

METHODOLOGY The methodology behind this project is similar to that

used by an ever-increasing number of chemical process control authors and educators in that it uses commercial software in order to perform tasks that, while imponant, would to a certain extent impede specific control educa- tion objectives. There are several successful examples of this appr~ach'~'~ that quite effectively use Mallab to handle modeling and solution methods to clearly demonstrate a variety of fundamental control concepts. But given the nature of the problem of being able to overcome the imple- mentation issues associated with APC for educational pur- poses in a way that would provide easy implementation in advanced technical elective or graduate classrooms, the following characteristics were determined to be important

r The need for an interactive dynamic sirnuhion environment c a m e of using a widc vm'rty of pnwcss modelsLr

a A means for interacting with this urvitvnment so that custom algon'thms can be implenunsed

An ability to be able w see what steps an occurring us they happen. while the sirnufarion is nlnning-

Tools thar c o w i t many of the slcurdardopera- tions rcquircd for APC applicatiuns.

Any software packagc(s) that meets these requirements has the potential to remove the implementation barria. We found that Hyprotech's Hysys, Microcoh's Excel, and Mathwork's Matlab could be configured in such a manner that all these requirements were met. Excel is tbc industry standard for spreadsheets, and as a result many programs include provisions for two-way communication with Ex- cel. Both Hysys and Matlab contain such links, and it is possible to use both links simultaneously in order to ex- ploit tbe strengths of all thFce programs for use in APC applications. Figure 1 illustrates the basic communication pathway when thc three programs arc linked.

The benefits of this type of system are rigorous steady state and dynamic plant simulation (eg.. Hysys), a large library of functions useful for APC applications (e.8.. Matlab), and powerfir1 dam handling and vis-on tools (cg.. ExceI) in software packages that arc already familiar to many chemical engineers. The steps involved in crcat- ing a simulation using rhesc three programs in conjunc- tion with each other are:

A dynamii sinurhtion case ofthe ptvcess required It is necessary ro makc note of the values thut wi l l

need to be read from and wrirten to the process for tAc algoritiun to work e~ectiweIyY

Add the necessary re&& vanbble on the vati&Ic prrge of the '&fa book ' Create a new 'Prvcess Data Table ' (PDT) by pressing add on the PDT page it1 the 'data book, 'and then add the desired variables by checking the show box on the P DTpage. Then press the view button. a&i 'tag names,' and select the 'access ntode'(rea4 write. or redwri te) for each variable. It should be noted that the order in which the show boxes are selected is the order in which the variables appear in the 'PDT set up 'page (accuscd by pressing the view button). Because of [his pmperty, it has been our experiettce that it is easiest to group read write, and mad/ wrire variables and a&i them to the PDT in blocks, making note of the order in which each variable is added Save the updared simulation case and make twte of its fife name and l o c a t w ~

Start &eel and open the viswl basic for applications (VBA) Ediror: Make sure the Excel l i . Matlrrb Automation Semer Type Library, and Hysys Type Library nfemnces are sekcted by selecting References in the Toots menu list in the VBA ediror: This ensures tlrar V ' A wil l recognize the Motlrrb and Hysys object types. lnsen a 'Module ' inzo VBA and a& $hi code as the nrunrri- cal o&r ofthe following steps indicatrc

Step 1. Variable klara t ion (see Figure 2).

O p i o a E r p l ~ ' ~ d P r d d v r L M c r u l c . d r l k m d i n c o d c 'Ob* rcquhtd to bind H m D& T . P M ) IO ExdVBA lwic HyApQAs HYSYS- P l l b l i c S i m C l s c k S i PbblicdlksHYmSIkpTdk

' V i r i r b l a d p t u t d i m ~ i i ~ f r o m d r r n c o ~ A P o b l i c W a g S h ~ R # i c W * l b e r O k M PublicRhphYvivr R # i c R n ( o a A s b l i m R # i c R W a $ s A s ~ R # i c R W v 8 k s k ~

'Spechl Flrgusd faarahackiag, inmgds to ~ o f H Y S Y S T ~ VBA PuWiCdtHlidkBaoltlo Public dmC.Pclhlid As Boolcln PuMiclrJrAppWAs Booha

'camuvuhMeurcdtotocpurkdwhcadrcanrml~droaldc*oeulr R p b ( i c i A s m

'Excdwakddlairi.litllins PoblicuIska&Exa!Llllahlurc

'Wdk used m R c g i i dHYSYS&dWA lwafrc Pbblitm&@cvcalaE-

' U d t o a r r r d d w ~ f m m E x c t V V B A m b l i c i r e q . r o r A r ; ~

Figure 2 Step 1 - VmbbIe dedanmon. 3

Page 134: Vinyl Acetate

Sub M i a O 'ILur of c& in id ic l p e am wrd/or e m W e l t r g 'and wid allow easier debugkg und IO uuum the HYSYY ' h e U V B A u IC- in olu ~ W N of on e m r On Envr Go70 muinrmr 'bi&liuliaa lnic 'Binds ExccWB A to the PDT Bind- Tabk

FarmShow 'Shows Form Exit Sub

amin error. MsgBox 'Ermr in Main' & ~ D u c r i p r i o n C l d ~ u p Endsub

Figure 3. Step 2 - Main function

Sub loit0 OnhrGc75In iErmr aReyhr HYSYS a% InihIUion Sa HyApp = ~ , j c e Y W S Y S A ~ o n n ) HyApP.Vlsbk=True byAppwd=T~c & t S i = ~ i e a ( M c A y a t t Hpysaub") S i V i i =Tm '

valid = True 'haLl idrwl iv tExcel~* S a ~ = ~ ~ l " ) %he fdbrving rpwc could be used IO i o i b l i aha VBA variables. -a dau to a fnnn Mui.b a paform initirlhtkm w g MatJab hmdioas i -0 ' r c ~ ~ ~ c o u ~ ~ t r t o ~

E*itSob Id EhW mBm'hi&&,&f&-*

Cjdw

S o b B i d D a ~ T ' &EnwGoIbBidEnrrr DimrrrolrasBookaa 'Biddad4ctoqbpd Set &= S-T-Itm(0) 'BidobjcclroEBSinkdm SaDolifycvervl=NevEvclJsi ' ~ i o s t Y l o t Y i L h ~ ma&= dtMWafif#&ink("LBSinLn, ootifycvmtl) ' E d k Iku T d e r &Wid=Tnu ~ L S W T ~ C T

Wugs = dcW~kThgs 'abjatliakadtoniltoalyvuirblesmPDT Rug=QRcaarg '0bjeaWlortdoalyvuLMainPDT RWtyr = ~ & T . 'objaa linked to mdh& v a d h in PDT

msub B i d E m c Mqhx %hrin B i d k g T&" & EnDtsc- llrrlvn WSvb

'Place A d d Pmxs Control Algorithm here

Rmlucs = di.CiclVafdRWgs) 'Rds data fnrm rt;d clgr in PDT dlSeiVdua Wtags. Wvaluu'wrila to write tags in PDT

h i t Sub

Sub CkinupO 011 Ermr GOTO UcanupEm~r "This pmetdw terminates the HYSYSExccWBA lf dtW = Tnw then 'Clem up code fa Notify Event Dim result As Bookan -It = dtRcmow+NMifyEvenBiog(naifyevenll) !kt n a i f v l = Nothing

Exitsub a w h ~ : M s g b x ' E h r in @ita & Ealksc* Ed- --

Figure 5. Step 4

'DisptchIlMafh Dim;L(hYCNmneAsVuhPt

R i v Y t S p b C k s t C k s t ~ 'Iailiuiaa Steps nhd to notify cvcml incafe if weded arc 'har

Ead Sub

Public Fu#rin MviseEvtlu()

' ~ ~ u lime camla with evcq solver ewrU i = i + l

' f l u h a ~ ~ 0 E x c t l w a W K a -H"bt2")i ' ~ f [ c r a p e d a a m i s e d # o f ~ ~ ( h c ~ e o ( s o f d u i f 'crulcnulr.rtiv@muNed

I f i = S w k h T k n =A- i = O

Eadu Ead ruoaioa

F i , 4. Step 3. Figrye 6. Event Sink Class Module

Ckcnicd &itghring Edyc~tim

Page 135: Vinyl Acetate

PllMic Sub QuitBtm-CliiO cln Enur Go% @&error 'rllows user to leaninale m f a using VBA GUI -up Exit Sub QUimor, Msgflox "Enor in Quit " & GcDescription End sub

Pbbli~ Sub Intqr~torSlan,Click() OnEInNGoToSwrEmw 'allows user to sun Hysys inlegmlor using VBA GUI S a integrator = SimCaseSolver.lntegmtor inrcytmlsRunoing = Tme Exit Sub S w h r Msg Box " Ermr in Sran" & &~Descrip~i~m tdsub

Public Sub Intcgn~orS~op-Click0 On dnor GoTo S~opfirnr '10ovs user to stop Hysys intcgntor usiog VBA GUI Sec i n u g y a = S i m C + r S a l v d n t ~ o r ~ J s R u a n i n g = % Exitsub SlopErrors MsgBox "Envr in lkop' & EkDac+tlion Endsub

Figure 7. MPC control form

..- ....................... - - - I I::::::::::::::::::::::: --. ....................... ... I

Figare 8. fisuul basic button code

TABLE 1 Summary of the Excel-MaUab Link Conunands - E H d m

~ g ~ a b comnmdn PMorau rAc sfring q f M a r h 6 uuicucd in th ~ v o r u

mlpnmrbix ~ J W Gyicrdll m ~ r i r @ ~ d b p 'w~rtckd- *w0rbheetRangca R a t g e * i n C k E d ~ h a l o b i ~

wri4bt 'mlwr' dgmwrk mlva C o p i ~ t c k c a n r a u g ~ M ~ w r i a M c - w a k m o r 'nlvor'to dL &el d h c r 'wad-

sh?elceU*#pmena lk becuian of* upper land-lrand cell of& auwrir.

mlputvar mlvar. VBvu Copiesr (ucanrcr~ru /Ok~&sic wnbblc ' V ~ ' t 0 / k M c u b b w i d e 5nlwr'

Mlgclvu mlvu. V B w C 4 p i ~ P ( L ~ o f p h M a f & b uruicrblc '*'& Ihc B ~ K rr~riobL 'VBwr'

St* 2. Main function (see Figure 3). This function calls func- tions that initializt the Hysys-Excel link, binds the PDT to Excel variables, and causes the 'Form' GUI to be shown. - Step 3. Functions that initialize the Hysys ExceWBA link and bind the PDT to VBA variables (see Figure 4).

Step 4.

Functions that contain the APC algorithm and termi- nate the Hysys-Excel link (see Figure 5).

Step 5. Insert a 'Class Module,' change its name to 'Event Sink,' and add the following code (see Figure 6).

Step 6.

Insert and create a 'Form' of similar structure to that in Figure 7 and insert the code in Figure 8 for the a p propriate buttons.

'Ihc previous steps result in the basic structure of a Hysys- to-Excel link that will recognize when the simulation case undcrgocs a solver event, which may be either the steady- state solver updating the solution for a-change in operating conditions or when the dynamics solver completes a time step.

At this point it would be possible to fill areas as indicated in the code in Figure 8 with an APC algorithm. using VBA and Excel alone. and then run an APC-enabled simulation case. But this would typically involve writing a substantial amount of code for routine matrix manipulation procedures and data handling, etc., ef fdvcly ovtrshaclowing the APC algorithms if the user is i a c x p c r i e d This is where the "power" of the Excel-Matlab link is most apjxwcnt By al- lowing direct to all of Matlab's firactions and the ability to rcad and write values to both the Excel worksheet and VBA variables through function calls (summarized in Table 1) in the VBAcodc, rhc majority of the student's time can be spent dcve1oping and testing various APC algorithms. In f a Matlab's toolbox functions, such as those fiom the MPC toolbox could also be used in this environment if one wishcd to implement Matlab's algorithms for APC on a case- study plant.

The following case study is an example of how to fill in some of the blanks in the code above to obtain a useful algorithm. It dso is provided to give examples of PDT for- mat. Matlab calls via the Excel link, and the associated VBA code.

Ihc example details one way of implementing a series of pseudo random-binary squences (PRBS) used in the indentifiation of a distillation column. The distillation is one column of the Dimethyl Ether production described in

Page 136: Vinyl Acetate

A Figure 9. Fonnat of Excel worksheet used in PRBS example.

W Figure 11. Additions/modificotions to the variable dedamtions and init()

for the PRBS example.

Turton, et al.nl The column separates a shrurm Qrimarily composed of methanol (25- 40 wt%) and water (75-60 wt%) ranging in flow h m 6000 to 12000 I b h 'Ihe distilla- tion is p e r f d at 35-40 psia and produax high-purity water of lower than 220 ppm methanol in a column of 17 theoretical stages. The best conventional PI control con- f i m * o n was determined to be LW1*I using reflux (L) to control for toptray tempera- ture and boil-up (V) via rcboila duty to con- aol for bottoms A o l composition in wa- ter.

Figure 9 shows the Excel workbook that is used to hold the data that is n c a s s q to configure the individual PRBS signals, the delay between the two signals, the starting "b" value that allows the indentifrcation pro- cess to start at any desired pont, the means to display the link status, and the progress of the number of steps s i n e the last data exchange. Figure 10 shows what the PDT should look like for this case. Figures I I , 12, and 13 show the necessary additions/ modification to the VBA code.

figure 14 shows a typical mul t when the above additionshnodifications arc made and the simulation is run.

Although the environment is extremely flexible and provides easy set up, these ben- efits would be negated if this environment proved to dramatically slow the speed of the

Fig tve 22. Additions/modr'fication to the variable declamtions and init() for the PRBS example.

chcrrricolE*in#fing Edmafion

Page 137: Vinyl Acetate

Obiecl Variable Vdut Units T a s Acatt Mode - R d b m SP 5688 M u RdluxRde(TemgGrrlrd MV] W~ite

ReboJer Duty Fbw Cmtcdu OP 63.47 % FlebcduDll(y(Com~ConlrdMV1 Write

7btfdlowiqpcdmsdcklddcdlorhtamhk Sub WriWkanpo On b 6 2 0 W r i ~ P c ~ r 'Roccdurcbul wrim nluamPDTwhellprbssigd isoatmpatumkacti'~~rcd IhtfdkvirgorrrCbMahbdrrJ~oExcdvorirshcet l n k d a i o g -cocap = compdinla)" mlmx *camp". "g6" 'akuhd pbr va lu fa m p diiurbna

1 -

1 l8kvaMrg " m p =Icnpdw(9" mlgamuix %mpn, 58" 'aaniP11 value Cbr rmp Mulrkcquat 7 b e f d t o w i q d ~ ~ d r t l m m Wnkrs(O)= -wgm e i r n - ~ Wdlrr(ll=rlSb&LRr~"@") SmpUlrorUPp h S a V & t w W n l a WSob Utivo- M3g&x0tra i W P c q n & ~ m - WSrb S o b W I i k ~ ~ t m & a ~ O A q p m w mhrnivrnlutslaWvheaPRBSri@koaccapararrishvrrcd d w f ~ r u h r ~ Q o l o E d w o r t B c a --~ap=aJwdmm- Wlrhhaewn

-=y=-=Qm(-l F 1 )I" mlgd-lu-. gr 'crlrmLudpbs*rurop- - 7 b c ~ l M f & r s d u r u , m W-)=-Cas, 'irprt~~caap W r r l o a ( l ) = ~ g c f ' g s " ) 'imptaco- asawlrrWlrfrw*.ks Edrsob -0- M q B a r 'Ermr in Wkie OPIcllp' L Gdkmipim dwvn WSd sdBwlid)plad) OR GnIraFJ MeOAPllanrr ' ~ ( b l * r i Y # m i t r l n l ~ s & P M 'Ibcf~bdkrhIdabQlraEroclwarbbPa dcnhhird -oap =carPpcbr(v - --Pa* -* - ~ ' w a p = ~ 9 " ~seavix '-p-. -@I" LlwbbFepra I b c ~ w r k n d U r ~ o P m W*rla@)=dSbcRrycCgtj"l w- (1) = mwJ4c CgII") UHIa W w Wrrlwt mS*b

UP- & g ~ ' n v t i n ~ O A w n ' & tr-ion - WSvb

A Figure 10. PDT for the PRBS exampie.

4 Figure 12, Additions to the VBA module for the PRSS example.

V Figure 13. ~dditions/rnodr'fications to AdviseEvent() for the PRBS example.

Page 138: Vinyl Acetate

Figurezd. Typical result using the

environment for the PRBS example.

(The x-axis shows simulation time in hours,

minutes, and seconds, and the y-axis shows the

trends of various process variables.

Figure 25.

Response to a bottoms methanol

composition set point change using PID

controllersrS (The x-axis shows

simulation in hours, minutes, and

seconds, and the y-axis shows the trends

of varkous process

vanhbles.)

Figure 16. Response to a bottoms methanol composition

set point change using a linear 2x2

DMC algon'thm developed using the

enwVImnment, (The X-OXIS shows

simulation in hours, minutes, and

seconds, and the y-axis shows the

h n d s of vQlj0us

p m s s variables.)

Page 139: Vinyl Acetate

integrator. The performance of the simulation can be mea- sured by comparing the real-time factor [which is de- fined by (simulated time interval)/(actual time required to compute simulated time interval)] o f a simulation using the environment to one that does not- Figure 15 shows the sys- tem mponse using PID controllers to control for bottom's composition and toptray temperature. Figure 16 shows the same distillation process with control cam'ed out using a lin- ear 2x2 Dynamic Matrix Controller @MC)'*' that has been implemented using the link described in this paper- It can be seen that the RTF for the 2x2 DMC controller case is compa- rable to that of the PID controller case, and also gives better performance in terms of controller movement and oscillalion around the set point.

CONCLUSIONS The development of an integrated, real-time computing

environment for advanced process control development and education using Hysys, Excel, and Matlab linked with each other has been outtined in this article, The methodology used to develop the environment was detailed in order to enable the reader to substantially reduce the learning cwve involved in developing the communication structure itself, thus allow- ing a means to focus the attention onto a large variety of APC algorithms. The potential of the environment has been dem- onstrated using an example that implements a PRBS identifi- cation sequence on a methanol water distillation column simu- lation.

REFERENCES 1- - EL. ELK. Law .ad E HeraMdez "Conuol Techaology

~ f a I h e F ~ t ~ ~ i a Pmc CPCVJ.CICWWKCEGU~.. rad 8. O n d m n . eds,AImSynp- Scriu No. 314 93, t (19QI)

Z Qis Sf, .nd T A Bdgwell. -h Oravicw of Imkfdd Model Re- diaiveCoacrdTocbadogy."iaP~(~~CPC~J.C~.CEGudP. rab 8. -ed+AlCIrESyq~. SrriuIVo316.93.232(1997)

3. Ed= TF- Tmcess CaabrD1 E d d o n : p.4 Rcsmt, md F~~IIIG.~ i o ~ ~ E d u c r t i o a : C l l r r i a r l r f a t b e F o ~ u h ~ P r p ~ I r d o - U S S m i ~ D. PLB. Dethpm& R K-. and MM. Sb8nn8, cQ. Burgdocc. tad* pp. 1 17 (1 998)

4. Ed&u.TS..%ocss Cocnd Educrrioo in tk Year #)00. A Rouadubk ~ . " Cliun Eng. a. 243) . 72 ( 1990) 5. R L S. NUUpjan, a d JJ. hdcma. -A Course in Ro-

cess Dyoamics 8nd Conuol: An Experkna to Bridge the Gap Be- tweta Theory and Industrial kuia." Ckm &hg. Ed.. 29(4) 218 ( 1995)

6. Doyk. UI. FJ, EP. G.rzkc. and RS. Parker. "R.crial Case Studies faUaGEgrduueRoasr DyaMicfurdCoatrdUdngRocersCon- trol Moduk~,~ Cow AppL in Ehg. Ed. 6.181 (1998)

8. Cutkr. C.R., ud E L RurrPlw. 'Dynuaic Marix Coatrd: A Corn- pra Coatrol A)go&ha," AICM Norioinrrl Meeriry. Hous~aa, 7X (1979)

9. Twloo. L RC Bailit. W.B. Shiting. md JA. S&%tz. Amlyrir. Synrhak a d Duign o/C7e&cal Pnuusu. --Halt, Upper S d d k W. NJ (1998)

10. Shieskey. F-G, Dim'Ibrion Conrrd for Pmduf iw and &new Con- serwkm, 2od ed, McGrrw Hill, N e w Y e NY ( 1984)

11. ~CJL.mdBLRanmkcr .UDyuamic~Caacro l :ACom- pulaChw01 Algodh," in P ~ J c . Joint Automm'c Conr ConL paper WPS-B (1980) 0

Page 140: Vinyl Acetate

A Study in Advanced Control Application to an Azeotropic Distillation Column within a Vinyl Acetate Monomer Process Design

Donald G. Olsen 12, Brent R Young " and William Y. Svrcek '

Department of Chemical & Petroleum Engineering, University of Calgary, 2500 University Drive W, CaZ ary, AB, Canada, T2N 1N4.

Hyprotech Ltd, Suite 800, 707 - Avenue SW, Cafgary, AB, Canada, T2P IH5.

C

-4 simulation ofa V iwI Acetate Monomer (VAM) process design is da~eloped in this work to allow testing of two advanced control smegies within the base PI control scheme. Specifically, the two schemes f o c u ~ on improving the control pet$iormance of the meotropic dijtiflation coiumn A detailed steady state and dynamic analysis of the dirtiflation column h a been perjormed to provide insight into the control behatiour of the two composition loops. The possible benefts f iom this rype of st* include production increase, strfer operation and lower operating cost- To the author's knowledge. this paper represents the first time a ratio control scheme and a model predictive controller (MPC) has been applied to the VAM process and presented in the open literature. Simulation results are presented to illustrate the Nectiveness of the new control strafegies.

Key Words: Vinyl Acetate Monomer, Simufation, Model Predictive Control. Ratio Control

*Author to whom correspondence should be addressed: b~oung(i3ucal~arv.ca

Page 141: Vinyl Acetate

Introduction The ability to operate more eficiently while rema ining within tight environmental and safety regulations dominates the operational environment of the chemical process industry as a whole. A recognized method effective in meeting the present operational demands is the use of Advanced Process Control (APC ). Over the last 20 years, APC techniques have played a significant role in realizing economic benefits by reducing costs and increasing product quality. Several categories of APC based on degree of use are identified, ranging h m classical advanad str ategies such as cascade and ratio control to advanced theoretical control applications with little or no industrial application [I). Limitations of the many different techniques are not well documented; however, some literature information has been publis hed related to a specific technique (e-g. [Z]). Notwithstanding the limitations, estimates as high as 60% of the benefits fiom control upgrades can be derived h m APC when implemented as an extension to a base regulatory control upgrade [3]. Specific case studies have shown that savings of 2 - 6% in annual operating cost and 1% increase in revenue can be achieved [4]. As a result, there is significant incentive for manufacturers to implement advanced control projects to help them meet the demands of the market place.

One particular process that could possibIy benefit from APC technologies is the Vinyl Acetate Monomer process. The demand for the feedstock is strong with latest projections showing growth of 32 Vdyear over the next 8 years in order to supply the needs of the fibers and plastics industries 153. As a result, there is a strong need for these manufactures to operate as efficiently as possible and to maximize production output given the present market conditions.

To help researchers and industrial practitioners alike better understand the impacts of control upgrades on the vinyl acetate process, there is a need for detailed process design information. In order to meet this need, Luyben and Tyreus [6] presented details of a proposed industrial design for a vinyl acetate monomer process giving the research community a large integrated chemical process to study. Their work included the overall mass and energy balance plus a proposed regulatory control strategy. TMODS, Dupont's in-house dynamic simulator, was used to illustrate the effectiveness of their proposed control scheme at meeting defined control requirements and process objectives.

In this investigation, the same plant wide process design and control strategy has been implemented in a process simulator as a benchmark. The results provide a base level for comparison of two different closed loop advanced control strategies integrated within the entire plant wide decentralized framework of this base design. This work represents the first ti me a ratio control scheme and model predictive controller (MPC) has been applied to the VAM process and presented in the open literature. Details and findings of the azeotropic distillation column controllability behaviour and of the new control strategies are presented.

Process Design and Simulation The Vinyl Acetate Monomer process (VAM) involves the common gas phase catalyzed reaction of ethylene, acetic acid and oxygen. A side reaction also occurs

Page 142: Vinyl Acetate

reducing the eficiency of the main product reaction step. The basic chemical reactions that take place are as follows:

These reactions are both highly exothermic requiring close temperature control of the gas phase packed bed reactor in which they occur. Both have beem studied extensively [7,8] and Luyben and Tyreus [q have taken the space time data fiom [8] and produced complex rate expressions as follows:

R2 = 1

(1 +0.76xpox(l -t0.68x pw))

Simulation of the process has been accomplished using the commercially available process simulator H Y S Y S - P I ~ ~ ~ ~ ~ . Standard unit operations were used for the entire flow sheet simulation. However, ActiveX extensions were written to model the complex structures of the reaction rate expressions (3) and (4).

The process design used in this study focuses on the central production units and excludes the feed storage and product purification stages (Figure I). There are 6 major pieces of equipment: a vapourizer, a gas phase plug flow reactor, a heat exchanger, a vapourAiquid separator, an absorber column and an azeotopic distillation column. Of particular interest is the gas and liquid recycles loops with a secondary liquid recycle loop to the absorber column. Together these recycle loops introduce dynamic behaviour that makes for a difficult control problem due to the effects of lag.

Page 143: Vinyl Acetate

figure I. Overall Process Flow &hematic.

One of the key aspects in simulation of the VAM process is the development o f an appropriate thermodynamic model to best represent the complex vapour-liquid -liquid equilibrium (VLLE) behaviour between the non -ideal components. In this study several activity coeficient models were evaluated for their ability to model the Vinyl Acetate/Water/Acetic Acid ternary mixture resulting in the selection of UNIQUAC [9]. The HYSYS UNIFAC LLE estimation procedure [lo) was used to derive the Vinyl AcetateWater binary interaction parameters due to the lack of quality experimental LLE data for the two components. The remaining interaction parameters were taken fiom low-pressure data given in the DECHEMA data series [l 11. The liquid phase hgacities of the non-condensable components (except for ethane) were derived using the default HYSYS Henry's Law coefiicients. The Ethane parameters were estimated to be the same as water in order to better match material balance information given in [6].

Despite the low pressure at which the azeotropic distillation column operates (and thereby arguably precluding the effects of component association in the vapow phase), it was found that the virial vapour fbgacity model was the most accurate as the default UNIQUAC Acetic AcidAVater binary interaction parameters predict a false azeotrope when the ideal vapour phase model is chosen. This poor prediction was found to manifest itself in a marginally higher Acetic Acid concentration calculated in the product organic and aqueous streams. However, due to the complexity of the second virial coefficient estimation, the dynamic simulation time was very long for typical test runs, 200 minutes versus 40 minutes for the ideal thermodynamic model on a 500 MHz workstation. Therefore, it was decided to stay with the ideal gas assumption to maintain appropriate simulation speed to facilitate this controllability study.

Page 144: Vinyl Acetate

Base Plant Wide Control Stmtegy Modelling Details of the base plant wide control study have been well documented in [6, 121. The simulation of this study was benchmarked against the results of this reference and found to agree well with the documented behaviour. As a basis for the control study several key control objectives were identified. They are as follows: i) reject feed disturbances caused by pump failure, i i) handle production rate changes dictated by market conditions and feedstock

availability, iii) handle pressure fluctuations in the gas recycle loop, iv) account for lag time in the liquid recycle loop, V) provide set point tracking of key process variables.

These objectives all directly impact the control performance of the twotropic distillation column. Therefore, this operation is of particular interest through its importance in maintaining product purity and ensuring feed component recovery. As a result, a detailed steady state and dynamic study was performed to establish an understanding of the controllability of the column in preparation for implementing a more advanced control strategy.

Azeotropic Distillation Composition Control Study The azeouopic distillation column control strategy as detailed in [I23 used two- point composition control. Given the relative boiling points, the two key components to control are the VAM in the bottoms stream and the acetic acid in the top product streams. It is to ensure that the VAM in the bottom acetic acid recycle is maintained below 100 ppm as it will tend to polymerize in up stream unit operations causing operational difficulties and in extreme cases shutdown. Also, the acetic acid losses to the product streams must be minimized to maintain low operaling costs. However, in Luyben et al's plant wide control design analysis [I21 it was revealed that the H20 component mass balance was not being regulated. As a result, control of the H20 composition in the bottom stream (approx. 9.3 mole %) was adopted in favour of an acetic acid controller at the top of the column. The control configurnion with primary and secondary control loops along with inventory controls is given in Figure 2.

Page 145: Vinyl Acetate

Rgure 2- Process Flow Diagram for Base PI Control ConJiguration.

Formally stated, the controlIed and manipulated pairings are as follows:

Y 1 = Hz0 Composition in Column Bottoms Stream (mole fraction). U t = Reflw mass flow (kg/hr).

Y 2 = Stage 14 temperature (C). U2 = Reboiler duty (kcayhr).

A series of steady state tests were performed to establish an understanding of the behaviour of the column composition control loops. To begin with, the composition loop pairings were investigated using a Relative Gain A m y (RGA) analysis [13]. The results for a step increase and a step decrease in the reflux mass flow rate are given in Table I. The resuits show poor pairing and suggest the reverse @rings to be more appropriate. Worse, the RGA values indicate an open loop gain sign change. Figure 3 illustrates the problem, where the H *0 composition achieves a maximum

Page 146: Vinyl Acetate

value before decreasing with increasing reftux flow. The result indicates that multiple steady states are possible for the H 20 composition. It is concluded that the ca use of the multiple steady state is due to the rapid break through of vinyl acetate to the bottom of the column as mass reflw is increased.

Table I. RGA Matrix for A) Step Increase and B) Step Decrease in R e k Mass Flowrate.

H20 Mole Fraction Stage 1 4 Temperature

Figure 3. Open Loop Steady State B e h i o w .

H20 Mole Fraction Stage 1 4 Temperature

In marked contrast to this highly non-linear open loop behaviour, the closed loop behaviour proved to be linear as can be seen in Figure 4. A relationship between H 20 composition and reflux mass flow rate shows that a direct controller action is valid over the expected region of operation for mass reflux. It is concluded that given tight temperature control, the vinyl acetate composition profile can not break through to the

Reflux Flow 0.1 6 0.84

Reboiler Duty 0.84 0.16

Reflux Flow -3.45 4.45

Reboiler Duty -3.45 4.45 I

Page 147: Vinyl Acetate

bottom stream resulting in linear closed loop behaviour for the water composition conuoller. The implications o f this finding are that despite the RGA analysis indicating conditional stability, the selected composition control loop pairings are adequate for control provided the temperature loop stays closed.

i 9500 10000 10500 11000 11500 12000

Rlllus Y a u Flow (kghr)

Figure 4. Closed Loop Steaa) Stale Behiour.

Several interesting con clusions can be drawn from these results. The first pertains to the failure of the RGA results to indicate adequate pairing for the control loops. This selection is based on priictical reasoning that the temperature control loop must be paired with the primary control variable. In this example, control o f VAM in the bottom of ~ ! e column is crucial. Given the quick response of the vapour boil -up, it is logically the best and safest pairing to have. Another practical reason is related to the difficulty in obtaining a composition measurement of VAM in the bottom stream. Using stage temperature as a continuous inferred corn posi tion measurement eliminates the effects of analyzer dead time and sample time. Finally, these results support arguments in [I41 that state the high frequency response dictates control behaviour to a much greater extent than low frequency response allowing control of systems that exhibit multiple steady states.

These findings also have an impact on the implementation o f an MPC. Due to the multiple steady state behaviour seen in these open loop tests it was concluded that use of open loop step response models would be impractical given the highly non-linear behaviour. Averaged models for the step increase and decrease o f reflux flow wo uld produce a high level of model mismatch providing unacceptable behaviour. As a result, MPC implementation based on open loop step response data was rejected as an

Page 148: Vinyl Acetate

implementation option. Given the linearizing effect of the closed loop behaviour seen in Figure 4 a partial closed loop strategy was used for MPC implementation.

Model Predictive Controller Implementation The MPC algorithm used in this study is the well -known Dynamic Matrix Controller (DMC) formulation [15, 161. For each sampling time, the full prediction horizon is calculated as follows:

Where Ypast accounts for the effects of past moves in the manipulated variable, A is the dynamic mamx of step coefficients, delU is the hture moves of manipulated variables and b accounts for model error. The step response models were easiiy obtained by introducing positive changes in the manipulated variables. Given this information, future delU moves are calculated using standard least squares to find the minimum error from setpoint with only the first move actually being implemented.

As briefly discussed in the previous section a partial closed loop implementation of the DMC controller was used. Figure 5 shows the controlled and manipulated variables selected in the design of the DMC controller. Due to the aggressive settings of the base PI temperature controller, they were detuned to provide a more critically damped response. A 30 -second step size was then selected based on the time constant of the temperature loop followed by the selection of 400 -step coefficients due to the lengthy settling time of the composition loop. Tuning of the DMC controller used the simple method in [17] where a control horizon of 1 was selected and the prediction horizon was then adjusted as a tuning parameter. A value of P = 100 was found to produce adequate results.

- U1 Rdux Flow CormoYsr SP i

Figure 5. High Level MPC Design Showing Relation Between Manidated and Controlfed Variables.

Page 149: Vinyl Acetate

The results of using the decentralized MPC controller are shown in Figures 6 and 7. Here a comparison is made to the base PI control strategy for a slep increase in water composition and for a feed flow disturbance. The DMC controller was more effective at making a set point change than the PI strategy. H owever, the temperature was poorly regulated in comparison to the base PI strategy. This was brought about by the truncation error of the step response model. The use of more than 400 coefficients or a larger step size is considered to be impractical and has not been tested.

0.09 1 0 200 400 600

Time (min.)

I 0 2 00 400 600

Time (min.)

F&re 6 Step Change in H20 Composition in Bottoms Stream Comparing Base PI Scheme with MPC Scheme a) H >O composition in bofromr, 6) Stage 14 temperature.

Page 150: Vinyl Acetate

0.02 1 I 0 100 200 300

90 0 - 100 2 00 300

Time (min.) Time (min.)

Fwure 7. 65% Feed Flow Drop for 5 Minutes Comparing Base P I Scheme with MPC Scheme a) HtO composition in bottoms, b) Stage 14 temprutwe.

Qualitatively the DMC controller proved more effective at handling a feed flow disturbance when comparing the ITAE values of the base PI to the DMC strategy (85 vs. 52). However, it i s concluded that the performance of the DMC controller can be improved further with the incorporation of feed disturbance variables into the prediction matrix of the control algorithm.

Ratio Control Strategy Implementation Another interesting approach to controlIing the composition loops of the azeotropic distillation column is to use the simple closed loop strategy of ratio control vaiiables [I 8, 191. In this study, it was decided to use a reflux flow to f e d flow (WF) ratio as the control variable for the water composition loop. Figure 8 details the control design. A ratio of the reboiler duty to the feed flow was not implemented as it was concluded that the PI temperature controller on its own was aggressive enough to reject temperature disturbances and would not provide significant control benefits.

Page 151: Vinyl Acetate

Feure 8. Process Flow Diagram for Ratio PI Control Con#guration

The results are shown in Figures 9 and 10. In contrast to the DMC results, the ratio scheme proved to be the best at rejecting the feed flow disturbance, but proved to be as ineffective as the base PI control scheme at handling water composition set- point changes. The incorporation of feed disturbance compensation in the controller calculation proved to be beneficial for the control of the composition loops as reflected in the ITAE values of the base PI and ratio control strategies (85 vs. 23). Set point changes in the water composition loop are no! anticipated to be a key control requirement; however, rejection of feed flow disturban ces fiom feed pump loss and production turndown would all contribute to a greater need for this type of control requirement. Therefore, the use of the simple ratio scheme is a strong candidate for improving the feed disturbance rejection capability of thi s VAM process design.

Page 152: Vinyl Acetate

1 - Base PI , / ------ Ratio PI I I

I L L I

r

I I

i i

0 200 4 00 600 0 200 400 I

600 Time (min.) Time (min.)

Figure 9. Step Change in H 2 0 Composition in Bottoms Stream Comparing Base PI Scheme with Ratio P I Scheme o) H 2 0 composition in bottoms, 6) Stage 14 temperature.

Time (min.)

I

90 0 100 200 300

Time (min.)

mure 10. 65% Feed Flow Drop for 5 Minutes Comparing Base PI S ckme wirh Ratio Scheme a) H20 composition in botroms, b) Stage 14 temperature.

Page 153: Vinyl Acetate

Conclusions The work presented offers insight into improving the control performance of a VAM plant wide process design. To the authors' knowledge, it represents the first time a ratio control scheme and a MPC scheme have been applied to a full plant wide simulation of the process using rigorous fim principles modeling and presented in the open literature. A detailed steady state and dynamic analysis of the azeotropic distillation column has been presented that focuses on the key composition control loops. The open loop behaviour was found to exhibit multiple steady states and poor variable pairing for the base PI control strategy. However, analysis of the closed loop behaviour showed the tight tuning of the temperature control loop allowed stable and robust control of the column.

Two new control schemes were tested for set point tracking and disturbance rejection. The MPC controller showed the best H 2 0 set point aackin g capabilities; however, stage temperature was poorly regulated. In addition, the MPC showed quantitatively better performance than the base control scheme at handling feed flow disturbances, but it was not as good as the ratio control scheme. It was concluded that the use of feed forward variables in the MPC design would improve the performance. In contrast to the MPC results, the ratio scheme proved the best at feed flow disturbance rejection and showed equivalent performance to the base control strateg y at set point tracking of the H 20 composition variable. Given the simplicity of the ratio design and the likely nature of a feed flow disturbance being the most common control circumstance of the azeotropic distillation column, this design is the recommended approach.

Nomenclature RI Moles of vinyl acetate produced/minlg catalyst R2 Moles of ethylene consumed/minJg catalyst T Temperature (OK) PO Partial pressure of oxygen (~s ia) Pa Partial pressure of acetic acid (~s ia) P Partial pressure of ethylene (psia) p w Partial pressure of water (psi@ Y1 Conttolled variable I , H 2 0 Composition in Column Bottoms Stream (mole

fiaction) Y2 Controlled variable 2, Stage 14 temperature Cc) U 1 Manipulated variable 1, Reflux mass flow (kgfhr) U2 Manipulated variable 2, Reboiler duty (kcaVhr) Y Future output trajectory. Y past Predicted effect of past control actions A Matrix of step response coeficients delU Calculated firtUre control moves b Predicted effect of modeling errors and unmeasu red disturbances.

Page 154: Vinyl Acetate

Acknowledgments The authors would like to acknowledge Hyprotech Ltd. for their support and assistance in this work. Also, a word of thanks is extended to James van der Lee, University of Calgary and Mike Kardash, Celanese Canada for their invaluable discussions.

References 1. Seborg, D.E. 1994. "A paspcctivc on advanced stralegia for process control". Modeling,

Identificatian 8nd Canaol, 15(3). 179- 1 89. 2. Hugo, A 2000. "Limitations of model predictive controllers". Hydrocarbon Processin g, January, 83-

88. 3. Marlin, T.E.. Banon, G.W.. Brisk, M.L. and Perkins, J.D. 1987. T h e Application of Advanced

Control Techniques to Industrial Systems - Opportunities and Barfits", The Wamn Center of Advamd Engineering - Advanced Roc#r Control Project Repon The University of Sydney.

4. Anderson, J., B a c k T., Van Loon, J. and King, M. 1994. "Gctting the moS from Advanced Process Control". Chem Engineering. March. 78 - 89.

5. Anon.. 2000. 'Pmdua Focus: Acetic Acidn. Chemical Week August 16.46. 6. Luykn. M.L. and Tyreus. B.D. 1998. -An industrial design/control sady for h e vinyl wrtatc

monomer process". Computers Chem Engng, Vol. 22. No. 7 - 8.867 - 877. 7. Nakamura, S. and Yasui, T. 1970. "The Mechanism of the Palladium -Catalyzed Symhcsis of Vinyl

Acaale fmm Ethylene in a Heterogeneous Gas Reaction". J. of Catalysis. 17.366 - 374. 8. Samanos, B.. Bouay, P. and Mammal, R 1971. T h e Mechanism of Vinyl Acaatc Formation by

Gas-phase catalytic Ethylene Acaoxidation", J. of Catalysis. 23. 19 - 30. 9. Abrams. D.S. and Rausnie J.M. 1975. "Statistical Thennodynamics of Liquid Mixtures. A New

Expression fm the Excess Gibbs Energy of Party or Complacly Miscibk Sysamsn, AlCHE Journal, 21, 116 - 128.

10. 1998, HYSYS.Plant Documentation, Simulation Basis . AEXT - ESW Hyprolcch. C a l m . Canada. 11. Gmchling, 3. a d Onken, U. 1977. Vapaur -Liquid Equilibrium Dam Collcctim DECHEMA.

F d m 12. Luybcn, W.L, Tymus. B.D. and Luybcn, M.L. 1999. Plantwide Roccss Control, McGraw -Hill. New

Yo* 13. Brislol. EK. 1966. 'On a New Measure of Interactions for Multivariable Process Control". IEEE

T'rans. Auto. Con., AC-I I : 133. 14. Fnuhauf. P.S. and Mahoney. D.P. 1993. "Distillation column control design using s t d y mu

models: Uscfirlntss and limitations". ISA Trans, 32, 1 57 - 175. 15. Sriniwas, G.R and Arkun. Y. 1997. "Control of the Tcnncsse Emman process using inputsutpn

models". J. Roc. Coclt., 7(5), 387 -400. 16. Cutler. C.R and Ramaker. B.L. 1979. "Dynamic Matrix Control: A Computer Conml Algorithm".

AIChE Meeting. Houston, TX 17. Mawah, P.R. Mellichamp, D A and Seborg, D.E. 1988. "Predictive Cartroller Design for Single-

InputlSingle-Output (SISO) Systems", Ind. Eng. Chcm. W, 27.956 -963. 1 8. Svrcek W.Y.. Mahoney. D.P. and Young, B.R 2000. "A Real- T i m Appmach to Process Control",

John Wilcy & Sons, Chichum. 19. Ryskamp. CJ. 1980. "New saategy improves dual composition column control (also effective on

thermally coupled columns)", Hydraarbon Pmccssing, Jtmc. 51 - 59.

Received: 25 January 200 1 : Accepted Pfier revision : 24 May 200 1.

Page 155: Vinyl Acetate

10.0 Appendix D: Internet Website References

1 . ChemExpo Website (2000) www.ci1emexpo.com/news/profi1eOOO82 1 . c h , August 2 1.

2. Hypmtech Ltd. Website (2001) wwwhyprotech.corn/ole/defaultasp?menuchoic~~,

Unit Operation & Reaction Extensions.

Page 156: Vinyl Acetate

VINYL ACETATE

W o n s of pounds per year of *y1 acetate monomer 0.

PIRODUCER Celanese, Bay City, Tex

Celanese, Clear Lake, Tex.

The dominant method of commercial production is by reaction of ethylene with acetic acid and oxygen in the presence ofa palladium catalyst. New construction in recent years has been focused largely on Southeast Asia, athough North American and European producers have conbinued to expand and debotdeneck their domestic plants. Next January. however, BP Amoco is scheduled to s ta r t a 550-don-pound-per-year VAM unit at Huii, Eqiand, employing the company's new fluidized bed

ICAPACITY'/ -1

technology. North AmMca accounts for 42 percent of the world's

C elane se Canada, Edmonton, Alberta I I I C elane se Muricana, ~aqrejera,! Mexico 2301 DuP ont, La Porte, Tex. 575 Mliltennium, La Porte, Tex- 800

Union Carbide. Texas Citg. Tex., 720 Total [T

Page 157: Vinyl Acetate

VAM capacity. Earlier fhis year, Millennium entered into a long- term agreement to market the entire merchant VAM output of DuP ont's plant in La Porte, Tex , starting January 1, 200 1. The age ement also stipulates that Mine~lllium will supply DuP ont with the acetic acid feedstock for its share of DuPont's VAM production at the site.

Prome last published 3/23/98; this revision, 8/2 1/00.

DEMAND 1998: 2.43 billion pounds; 1999: 2.5 1 billion pounds; 2003: 2.86 billion pounds. (Demand equals pro duction plus imports, which were 93 d o n pounds in 1998 and 53 million pounds in 1999. minus exports, which were 602 d o n pounds in 1998 and 764 d o n pounds in 1999).

GROWTH Historical (1 994-99): 3.6 percent per year Future: 3.3 percent per year through 2003.

PRICE Historical (1 994-99): High, 50c. per pound, tanks , dhrd. Low, 44c., same basis

Current: 47c. to 50c.. same basis. Most VAM is sold in the US under contract to polyvinyl acetate and ethylene-vinyl acetate cop olyrner producers at indmidually negotiated prices . Large customers are paying 29c. to 32c. per pound.

Page 158: Vinyl Acetate

' ~ S E S Polyvinyl acetate (PVAc) emulsions and resins, 56 percent (adhesives, 19.6 percent; paints, 18.5 percent, paper coating, 10.1 percent; textiles. 5.6 percmc other, 2.2 percent); polyvinyl alcohol PVOH), 18 percent; polyvinyl butyral VVB), 1 1 percent; ethylene -vinyl acetate @VAc) re sins, 8 percent, ethylene-vinyl alcohol @VOH), 3 percent; miscellaneous, includmg acrylic fiber resin and polmy1 chloride copolymers, 4 percent.

STRENGTH Since 1 997. Asian demand has recovered more s t rody than anticipated, hghtening supplies in the US and raising operating rates. The strongest growth is c o a 5om EVOH, PVB and EVAc. EVOH is a small-volume product, but it is growing by roughly 13 percent per year in the US. It is used as a gas and vapor barrier in food packaging, plastic bottles and gasoline tanks.

W E ~ S S Because of sharp increases in the costs of acetic acid and ethylene since last year, current margins do not justrfi reinvestment. Any near-term capacity additions in the US are hkely to be through deb ottlenecktngs rather than new greenfield projects.

OUTLOOK VAM should continue to grow at about 3 percent per year. Although most applications for vinyl acetate are mature, the growth of its largest applications -- adhesives, paints, paper coatings, and textiles-- should track shghtly below the robust GDP . Recent price increases appear to be holdmg, but margins are still thin because of sharply higher raw material costs.

Page 159: Vinyl Acetate

Unit Operation 8 Reaction Entensions

The following examples have been written to illustrate how the functionality of HYSYS can be extended using Extension Unit Operations and Kinetic Reactions. Please refer to the Readme document included with each example for background and installation information.

Note: The examples listed below have been tested with WinNT (service pack 5) and Windows 2000, HYSYS 2.2 and HYSYS 2.4.

,I710 ~ k o t s ~ p r m a m e s t a ~ s t r e e m s ~ t o r a ~ e ~ B~curves 1 Combustor ~ ( 4 6 2 ~ ~ ~ ~ h l s ~ e s a n ~ g a s c n ~ u d o r I I

crystd~zdion separ- process h a HYSYS ~ i i o p ~ r t ~ i n ~xtmsbn. 1 HYsM cw-= fvrdPndPy. I

[ ~ e c t o r Eb ethepessueincresseorthemdive~requi~sforast~cb#tw7

mtanpldefrmwhichtocredeun2opadiard-.Sdthee

~ ~ ~ n . ~ l c h ~ f o r ~ w b ~ O f a s h p p e ~ ~ ~