• No results found

4 Process Simulation

N/A
N/A
Protected

Academic year: 2021

Share "4 Process Simulation"

Copied!
70
0
0

Loading.... (view fulltext now)

Full text

(1)
(2)

Process Simulation

Once we have established the block flow and started filling in the main

vessels, heat exchangers, pumps, etc. we want to develop a mass and

energy balance for the process so we can start evaluating the process in

more detail

The simulation is also the starting point for equipment design, as it will

set the flow rates and duties for process equipment

In most companies, mass and energy balances are developed using a

process simulator such as AspenPlus, ChemCad, ProII or UniSim. Each

program has its own idiosyncracies, but they have many common

features. Examples will be given in both AspenPlus and UniSim.

Note that the simulation should come after you know what’s in the PFD,

but often it’s an iterative process to get both

(3)

Process Simulation

• Structure of process simulators

• Components and physical property models

• Modeling reactors

• Modeling separations

• User models

• Recycles & convergence

(4)

Structure of Process Simulators

The user manipulates the

program through a GUI that is set

up to look similar to a PFD

The executive program

determines the calculation

sequence and calls the other

subroutines

Equipment

sub-routines

E

xe

cut

ive

P

rogra

m

Graphical User

Interface (GUI)

Thermodynamics

sub-routines

Convergence &

optimization

sub-routines

Physical

property data

Cost data

(5)

Example: UniSim Simulation of GE

LM6000 Engine

(6)

Using the GUI: Basis Environment

(7)

Basis Environment

Enter

components

Enter

reactions

Specify

stoichiometry

Select

property

package

(8)

Basis Environment

Enter

reactions

(9)

Using the GUI: Object Palette

(10)

Object Palette

User can

select

operations

from the

palette and

drag and

drop to the

PFD

Unit

operations

Separator

models

Dynamics functions

Adjust, Set,

Recycle

Spreadsheet

General

reactors

(11)

Using the GUI: Workbook View

Click here

Brings up all the basic

stream data such as

temperature, pressure,

flow rates, etc. in one

screen

(12)

Windows Can Be Configured to Show

PFD & Workbook

(13)

Editing the Flowsheet in the GUI

Right click on any vessel or stream

icon and you get a menu that allows

you to select from similar icons,

hide the stream or operation, rotate

it, rename it and generally tidy up

the drawing to look more like a

proper PFD

(14)

Sub-Flowsheets

Sub-flowsheet

You can define a sub-flowsheet

and use it as a way of grouping

several operations away from

the main flowsheet. This is

particularly useful when you

need several unit operations to

model a single piece of process

equipment.

(15)

Generating Mass & Energy Balance

Reports

Report manager is on the Tools menu

Define a report

Select all streams,

conditions and

composition only

(16)
(17)

Process Simulation

• Structure of process simulators

• Components and physical property models

• Modeling reactors

• Modeling separations

• User models

• Recycles & convergence

(18)

Entering Components: Pure Components

• Pure components

• Component library has thousands of pure components

• Mostly organic compounds, but some inorganic compounds

• Rules for selecting pure components

• Always include any compound that has a specified limit in the product

• Always include any compound that has a specified limit in any process feed

• Always include anything formed in side reactions or consecutive reactions

• Always include anything with significant HS&E concerns

• Usually include anything that is present at >2% (by mole or mass)

• Usually do not include isomers unless required by the process

• Usually try to have < 40 pure components

(19)

Pseudocomponents

• Petroleum fractions can contain ~ 10

4

to 10

6

components, many isomers, many compounds that

cannot be isolated and identified

• Instead, use a pseudocomponent that represents all the

compounds that boil in a given temperature range

V

o

lu

m

e

%

d

is

tilled

Temperature (F)

0

50

100

Crude Oil Boiling Curve

(20)

Pseudocomponents

• Example: this pseudocomponent represents all

compounds that boil between 300F and 350F, making up

roughly 8 vol% of the feed

• Simulators have default pseudocomponents, but user may

need to add more around critical cut points

V

o

lu

m

e

%

d

is

tilled

Temperature (F)

0

50

100

Crude Oil Boiling Curve

(21)

Solids and Salts

• Solids

• Some simulators recognize solid phase pure components when they are

formed

• Phase equilibrium with solid phase is often not well predicted: check the

model carefully against the literature

• Solid phases of mixed composition usually have to be defined as user

components (e.g.: cells, catalysts, coal, paper fibers, etc.)

• Some of the simulation programs have good models for solid handling

operations, including modeling the effect of particle size distribution

• Salts

• Ionic compounds in the presence of water must be treated as electrolytes

and require special phase equilibrium models

(22)

User Components

• Users occasionally need to add components that

are not included in the component library

• Examples:

• Complex molecules for pharmaceutical APIs

• Specialty chemicals

• Proprietary compounds

• Advanced solvents

• Electrolytes

(23)

Defining User Components

In the Basis environment, select

Hypo Components

Create Hypo

Component

Enter or estimate

properties

(24)

Defining User Components Using

UNIFAC Groups

Select UNIFAC groups

to build up the molecular

structure. The program

will then estimate

properties using group

contribution methods

(25)

Physical Property Models

• All the simulation programs have a range of physical

property models

• Model selection depends on the system chemistry – see

Chapter 4

• Be careful: if the physical property database does not have

the model parameters then they may be estimated using

methods such as UNIFAC, but estimated parameters should

be confirmed experimentally

• Models are often inaccurate when predicting LLE, SLE, SSE

• When user components are present, models will be near

useless unless some experimental data is fitted

(26)

Phase Equilibrium Model Selection

Chapter 4 has a chart to help with model selection:

Hydrocarbon C5 or lighter H2 present Polar or Hydrogen bonding Sour Water H2 present Electrolytes T < 250 K P < 200 bar T < 250 K γi experimental data P < 350 bar P < 4 bar T < 150ºC Two Liq phases Need more experimental data

Select model that gives best fit to

data Use G-S Use B-W-R or L-K-P Use P-R or R-K-S Use R-K-S Use G-S 0<T<750K Use G-S or P-R Use NRTL or UNIQUAC Use Wilson, NRTL or UNIQUAC Use electrolyte Use sour water system Use UNIFAC to estimate interaction parameters Start Y Y Y Y Y Y Y Y Y Y Y N N N N N N N N N N N Y N Y N Y N

(27)

Physical Property Example

(Based on a real classroom incident)

• Why?

I couldn’t get that ethanol

water distillation to meet

specifications using the

Wilson equation, but it

worked just fine when I

switched it to ideal

solution!

(28)

Process Simulation

• Structure of process simulators

• Components and physical property models

• Modeling reactors

• Modeling separations

• User models

• Recycles & convergence

(29)

Reactor Models

CSTR, PFR

OK if you know the kinetics and don’t have many side reactions or contaminants

Can be combined to model real types of mixing

Gibbs reactor

Brings all species present to equilibrium at specified temperature or duty

Be very careful to define all possible species if this is what you want

Equilibrium reactor

Calculates equilibrium only for defined reactions

More useful than Gibbs, as all species seldom reach equilibrium

Conversion reactor

Solves for defined reactions in sequence to specified conversion function

Yield reactor

Allows user to specify any kind of yield pattern

Allows reactions of pseudocomponents, solids, changes in particle size

distribution, etc.

Real reactors can often be built from a combination of model reactors, e.g.

conversion then equilibrium

(30)

Example: Steam Methane Reforming

Methane

H

2

Steam

Furnace

Reactor

CO

2

CO

2

Removal

Compression

PSA

Shift

Reactor(s)

Fuel

(31)

Steam Methane Reforming Chemistry

• Methane reforming:

CH

4

+ H

2

O

→ CO + 3 H

2

Conversion of methane is typically about 95 to 98%

Strongly endothermic

Conversion increases with temperature, steam to methane ratio

• Partial oxidation:

CH

4

+ 0.5 O

2

→ CO + 2 H

2

Strongly exothermic

Reduces hydrogen yield and requires expensive oxygen feed

• Water gas shift reaction

CO + H

2

O

→ CO

2

+ H

2

Equilibriates rapidly at temperatures >450 C

Weakly exothermic

(32)

Autothermal Reforming Process

• Feed methane, steam and oxygen to reactor

• Partial oxidation reaction provides heat to drive

conversion of steam reforming reaction

• Reduces cost of reforming furnace

(33)

AspenPlus Simulation of Autothermal

Methane Reforming Process

REquil

RGibbs

(34)

Autothermal Reforming Reactor Model

Results

(35)

Process Simulation

• Structure of process simulators

• Components and physical property models

• Modeling reactors

• Modeling separations

• User models

• Recycles & convergence

(36)

Distillation Models

• Shortcut columns

Assume constant relative volatility

Useful for setting up problems, getting initial estimates of minimum reflux and number of

trays and checking feasibility of specs

Not good for non-ideal mixtures

Use to initialize complex columns

• Rigorous Columns

Solve stage-to-stage

Allow column sizing

Can be used for absorbers, strippers, distillation, extraction, etc.

Allow intermediate condensers, reboilers, side streams, side strippers, etc.

• Prebuilt complex columns

For Petroleum fractionation

(37)

Distillation Example

(Example 4.6)

• Separate 225 metric tons per hour of an equimolar

mixture of benzene, toluene, ethylbenzene (EB),

orthoxylene (OX) and paraxylene (PX)

• Feed is a saturated liquid at 330 kPa

• Toluene recovery in distillate should be > 99%

(38)
(39)

Shortcut Column Specifications

Note:

Toluene mole

fraction in

bottoms = 1/300

= 0.0033

Ethylbenzene

mole fraction in

distillate = 1/200

= 0.005

External reflux ratio = 1.15 × minimum reflux

(as an initial estimate)

(40)
(41)
(42)

Rigorous Column Specifications

From shortcut model

With good estimate of reflux ratio and number of trays, convergence is fast

Component

recovery can

be specified

(43)

Generating Column Profiles

It is often useful to plot column composition profiles to see whether the

column is efficient

(44)
(45)

Examples of Bad Profiles

(46)

Examples of Bad Profiles

Reflux too low

(toluene recovery 72%)

Reflux too high

(toluene recovery 100%)

(47)

Too few trays: toluene recovery = 24.5%

(48)

Column Sizing in UniSim

• Tray sizing is

under

tools/utilities

• Default options

(shown) may

need changing

• Column must

be converged

with the utility

enabled

(49)
(50)

Common Causes of Column

Convergence Problems

• Infeasible specifications

• Make sure specs on distillate or bottoms purity can be achieved (see Section 17.6.2)

• Make sure that specifications can mass balance with two products

• Poor initialization

• Use shortcut column to confirm R > R

min,

N > N

min

• Remember stage efficiency is typically 0.7 or less

• Remember to allow for some pressure drop across the trays

• Poor initial estimates

• Most simulation programs default to the Inside-Out algorithm, which is very fast

when given good initial estimates. Use simple specs (e.g. distillate flow rate and

reflux ratio) to converge an initial simulation, upload the column temperature profile

from this as initial estimates and then change to the real specs and the column

should converge quickly.

(51)

Complex Columns: AspenPlus PetroFrac

Model of Crude Distillation

(52)

Other Separation Models

• Some simulation programs include models for

other separations such as extraction,

crystallization, solids separations, etc.

• All simulators have a “Component Splitter”

model

– Allows user to specify recovery of each component

– Can be used to model any kind of separation process

(53)

Process Simulation

• Structure of process simulators

• Components and physical property models

• Modeling reactors

• Modeling separations

• User models

• Recycles & convergence

(54)

User Models

• User may need to add custom models to the

simulation

– Detailed reactor models

– Novel unit operations

• Most simulators support two ways of doing this:

– Spreadsheet tool

(55)

UniSim Spreadsheet

The UniSim

spreadsheet

can be used

to build

simple user

models of

operations

that are not

on the palette

Allows import

and export

from cells to

streams

Functionality

is basic

AspenPlus

has full MS

Excel

(56)

UniSim User Unit Operation

Select from

palette

Define

connections

to PFD

Enter code

(57)

Process Simulation

• Structure of process simulators

• Components and physical property models

• Modeling reactors

• Modeling separations

• User models

• Recycles & convergence

(58)

Feed A

Lights

Reactor

Feed B

Recycle

of B

Product

1 7 6 5 4 3 2 8

Processes With Recycle

• How do we break the recycle loop to solve in

sequential mode?

(59)

Feed A

Lights

Reactor

Feed B

Recycle

of B

Product

1 7 6 5 4 3a 2 8 3b

Estimate

Update

Iterate to convergence

(60)

Feed A

Lights

Reactor

Feed B

Recycle

of B

Product

1 7 6 5a 4 3 2 8 5b

Tearing at the Reactor Outlet

(61)

Convergence Problems

• Results that are unconverged or “converged with

errors” cannot be used for design

• If convergence is slow then:

– Check specifications are feasible

• Use hand calculations or simplified models

– Try increasing number of iterations

– Try a different algorithm

• Default method is usually Bounded Wegstein – can change bounds on

acceleration parameter – see Ch4

• Try Newton method if there are many recycles or specifications to meet

– Try to find a better initial estimate

• Use hand calculations or a simplified model to initialize the problem

– Try to find a better tear stream

(62)

Model Simplification Techniques

• Complex models with many rigorous columns and

recycles can be difficult to converge

• A simplified model can be used to initialize tear streams

in the complex model

• Models can be simplified by:

– Using fewer components

– Using simpler unit operations (e.g. replace columns with

separators)

– Eliminating complex user models (replace reactor models with

Yield or Conversion reactor)

– Reducing the number of specifications (allow some variables to

remain not quite converged)

(63)

Feed

Reactor

Make-up

gas

Purge

Product

Gas Recycle

• Don’t forget the purge stream

• No purge, no converge!

(64)

Process Simulation

• Structure of process simulators

• Components and physical property models

• Modeling reactors

• Modeling separations

• User models

• Recycles & convergence

(65)

Setting Constraints Using Controllers

An “Adjust” controller can be used to

control the air flow to give a target

turbine inlet temperature

(66)
(67)

“Adjust” Solving Parameters

The

parameters

tab can be

used to set

bounds to

give the

desired

solution

(68)

Flowsheet Optimization

• Most of the simulators allow optimization inside

the program

• AspenPlus manual recommends:

• 1. Converge the flowsheet first

• 2. Carry out a sensitivity analysis and only optimize the variables that have

high impact on the objective function

• 3. During the sensitivity analysis, see if the optimum is broad or sharp

• Off-line optimization (or near optimization) is

usually much easier – see Ch12.

(69)

Tips for Process Simulation

• For a good (i.e. useful) process simulation, you must

have:

– Good component properties

– A good phase equilibrium model

– Flowsheet design that respects the 2

nd

law of thermodynamics

• It is not essential to have

– Reaction kinetics

– Detailed models of every unit operation

• Benchmark the simulation against lab, pilot plant or

operating plant data whenever possible to increase your

confidence that what you see in the virtual world agrees

with reality

(70)

References

Related documents

This package has the added advantage that it was specifically developed for simulation of biopharmaceutical process unit operations and processes.. It is user friendly and set up

Select a layout manager, add label and button components to a container, edit the component properties, and create connections between the components 3.. Edit Java source code

Select any option out of 4 option for citizen and Click on Next button.. a) If user is selecting “Register with Bhamashah ID” then user have to enter 7 digit of Bhamashah ID and

To make links open in a new browser window when the user clicks, create a link in the normal way, select it, and look in the Properties palette for the Target box.. In the Target

Depress “Off’” key or “Disarm” icon and enter Code* * During Entry Delay or when an Alarm Condition exists, the LYNX Touch can be disarmed by entering the User Code..

Depress “Off’” key or “Disarm” icon and enter Code* * During Entry Delay or when an Alarm Condition exists, the LYNX Touch can be disarmed by entering the User Code..

On-panel button operation: On the initial OLED display screen, press “MENU” button to enter the EDID setting interface, press “UP/DOWN” button to select the required EDID, and press

Time Remaining: While unit is on, press forward/timing button to enter the timing status, user can check the set time, and user can re-set the time in five seconds; if no