Lecture 3 - Flowsheeting in GPROMS
Lecture 3 - Flowsheeting in GPROMS
Lecture 3 - Flowsheeting in GPROMS
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
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
T k1
Tank
On
nly for private us
se in the context of this course
Flowsheet example
Heat exchanger
T k2
Tank
Mi
Mixer
Heat exchanger
D
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:
Step 1b:
Step 2:
St 3:
Step
3
Create
C
t the
th model
d l iinterface
t f
ffor
all basic models
Step 4:
Step 5:
Defining a Process
On
nly for private us
se in the context of this course
T k1
Tank
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
On
nly for private us
se in the context of this course
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:
Step 1b:
Step 2:
St 3:
Step
3
Create
C
t the
th model
d l iinterface
t f
ffor
all basic models
Step 4:
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
10
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
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:
Step 1b:
Step 2:
St 3:
Step
3
Create
C
t the
th model
d l iinterface
t f
ffor
all basic models
Step 4:
Step 5:
Defining a Process
On
nly for private us
se in the context of this course
T k1
Tank
12
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
Implementation in gPROMS
Mixer
Tank 3
T k2
Tank
Step 1a:
Step 1b:
Step 2:
St 3:
Step
3
Create
C
t the
th model
d l iinterface
t f
ffor
all basic models
Step 4:
Step 5:
Defining a Process
On
nly for private us
se in the context of this course
T k1
Tank
15
C t th
Create
the schedule
h d l
On
nly for private us
se in the context of this course
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:
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
Step 2:
Step 3:
17
Step 4:
Step 5:
On
nly for private us
se in the context of this course
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