Sie sind auf Seite 1von 18

Department of Biochemical

and Chemical Engineering

Dynamic Simulation
Sven Wegerhoff
Room: G2-3.28
Phone: 5142
Prof. Engell

Katja Pelz
Room: G2-5.10 a
Phone: 5165

Part III:
Flowsheeting

D
Y

On
nly for private us
se in the context of this course

Dynamic Process Simulation

N
2

Models
Models

input

syste
system
system
sub-system

Last lecture

Basic models

Flowsheeting

Connection Types
e.g. model Tank

Superior models
Topology
p gy

Parameter / variable

Interface

sub-system

sub-system

g
gPROMS language:
g g
declaration
Model equations (e.g.
mass/ energy balances)

output

On
nly for private us
se in the context of this course

Two kind of models are


distinguished in gPROMS

Declaration of basic models


This lecture

Connection of basic models


gPROMS language:
Superior equations (e.g. overall
productivity)
e.g. model Flowsheet

but even higher level models may exist


D

T k1
Tank

On
nly for private us
se in the context of this course

Flowsheet example

Heat exchanger

T k2
Tank

Mi
Mixer

Two storage tanks (with


fluids of different
composition)
Mixer
Heat exchanger
Flowsheet
decomposition for a
modular, hierarchical
model structure

Heat exchanger
D

Process flowsheet decomposition

Feed A
Storage
tank 1
Mixer
Feed B

Liquid

On
nly for private us
se in the context of this course

Heat exchanger
Product

phase
Storage
tank 2
Cooling/heating

Model hierarchy:
Flowsheet level
Unit Operation Level
Sub model level
D

Implementation in gPROMS

Mixer

Tank 3

T k2
Tank

Step 1a:

Define all necessary Variable


Types

Step 1b:

Create one model for the tanks


and
d th
the mixer
i

Step 2:

Create one Connection Type

St 3:
Step
3

Create
C
t the
th model
d l iinterface
t f
ffor
all basic models

Step 4:

Create a flow sheet as


superior model

Step 5:

Defining a Process

On
nly for private us
se in the context of this course

T k1
Tank

Step 2: Connection type


Connections between different models in a flowsheet model
Connection Type defines the type of information conveyed by
the connection

On
nly for private us
se in the context of this course

Feed A
Storage
tank 1
Mixer
Feed B

Storage
tank 3

Storage
tank 2

Define the kind of connection between the basic (sub) models


Define all parameters and variables that should be transported
by the connection
D

On
nly for private us
se in the context of this course

Step 2: Connection Type

Parameters
(e.g. NoComp)

Distributions
Variables
Scalar (e.g. T)
Arrays (e.g.
(e g ci)

Implementation in gPROMS

Mixer

Tank 3

T k2
Tank

Step 1a:

Define all necessary Variable


Types

Step 1b:

Create one model for the tanks


and
d th
the mixer
i

Step 2:

Create one Connection Type

St 3:
Step
3

Create
C
t the
th model
d l iinterface
t f
ffor
all basic models

Step 4:

Create a flow sheet as


superior model

Step 5:

Defining a Process

On
nly for private us
se in the context of this course

T k1
Tank

Step 3:

On
nly for private us
se in the context of this course

Step 3: Model Interface

Assign the ports (interface) for inlet or outlet in the model

10

Step 3: Interface Variables

Every Port transports a set of parameters and


variables into the Model accordingly
g y to the
attached Connection Types!
PORT
Inlet AS ARRAY(NoInlet) OF material_flow

VARIABLE
Vdot_in AS ARRAY(NoInlet)
(
) OF volume_flow

EQUATION
# model equations

# port assignments
Inlet(1).flow = Vdot_in(1);

Possibilities:

Use assignment
equations in the model
for every transported
value

Use the same variable


name in the model
and the connection
type to achieve topdown-propagation

Use the transported


values directly in the
model equations
D

11

On
nly for private us
se in the context of this course

Important!

Implementation in gPROMS

Mixer

Tank 3

T k2
Tank

Step 1a:

Define all necessary Variable


Types

Step 1b:

Create one model for the tanks


and
d th
the mixer
i

Step 2:

Create one Connection Type

St 3:
Step
3

Create
C
t the
th model
d l iinterface
t f
ffor
all basic models

Step 4:

Create a flow sheet as


superior model

Step 5:

Defining a Process

On
nly for private us
se in the context of this course

T k1
Tank

12

Step 4: Superior Flowsheet Model

New Model
Flowsheet

Tab: Topology

Insert units by
Drag & Drop

Connect the
ports of the
model

On
nly for private us
se in the context of this course

Procedure:

13

Superior
parameters will
be declared in
the flow sheet
model

Units and
topology will be
created by
gPROMS
automatically

14

On
nly for private us
se in the context of this course

Step 4: Superior Flowsheet Model

Implementation in gPROMS

Mixer

Tank 3

T k2
Tank

Step 1a:

Define all necessary Variable


Types

Step 1b:

Create one model for the tanks


and
d th
the mixer
i

Step 2:

Create one Connection Type

St 3:
Step
3

Create
C
t the
th model
d l iinterface
t f
ffor
all basic models

Step 4:

Create a flow sheet as


superior model

Step 5:

Defining a Process

On
nly for private us
se in the context of this course

T k1
Tank

15

Only the top level model (flow sheet) will be defined


as an entity (unit) in the process
Assign values to ALL parameters and known
variables of every level
Assign initial conditions for differential equations

C t th
Create
the schedule
h d l

Use Within for several parameters and variables


with the same path
alternative:
Syntax:
FS.Unit.Par or
FS.Unit.Var

On
nly for private us
se in the context of this course

Step 5: Process Definition

e.g.: FS.Tank002.d
Expression for the diameter of the unit Tank002,
Tank002 , which is described by model Tank.
Tank . Tank002
Tank002 is
contained in the superior model Flowsheet, which is adressed as a unit named FS here.
D

16

Step 1a:

Define all necessary Variable Types

Step 1b:

Create one model for the tanks and one for the
mixer

On
nly for private us
se in the context of this course

Summarize of the steps

Declaration of all parameters and variables


Mathematical description of the basic operation

Step 2:

Create one Connection Type


Define the kind of connection between the basic models
Define all parameters and variables
ariables that sho
should
ld be
transported by the connection

Step 3:

Create the model interface for all basic models


Assign the ports (interface) for inlet or outlet

17

Summarize of the steps

Step 4:

Create a flow sheet as superior model

Step 5:

On
nly for private us
se in the context of this course

The flow sheet can contain any number of units of a single


basic model ((e.g.
g 3 tanks in the flow sheet))
The flow sheet can be constructed by drag and drop of the
basic models into the flow sheet model
Link the single units by connecting the Ports with the
defined Connection Type

Defining a Process
Only the top level model (flow sheet) will be defined as an
entity (unit) in the process
Assign values to ALL parameters and known variables of
every level
Assign initial conditions for differential equations
Create the schedule

18

Das könnte Ihnen auch gefallen