Professional Documents
Culture Documents
EHY223 HYSYS Dynamics Introduction To Dynamic Modeling
EHY223 HYSYS Dynamics Introduction To Dynamic Modeling
EHY223
Aspen HYSYS Dynamics:
Introduction to Dynamic
Modeling
~
~
'----~-_,
Copyright© 2015 by Aspen Technology, Inc. 20 Crosby Drive, Bedford, Massachusetts
01730, USA. All rights reserved. This document may not be reproduced or distributed in
whole or part in any form or by any means without the prior written permission of Aspen
Technology, Inc.
The information contained herein is subject to change without notice, and Aspen
Technology assumes no responsibility for any typographical or other errors that may
appear.
Contents
Lessons
Introduction 1- 1
Transitioning from Steady State to Dynamics 2- 1
Transitioning from Steady State to Dynamics Workshop 2 - 16
Controllers and Strip Charts 3-1
Controllers and Strip Charts Workshop 3 - 12
Dynamic Details 4-1
Appendices
Appendix A: Pressure Flow Theory 13 - 1
Appendix B: Basic Control Theory 14 - 1
I
©2015 AspenTech. All Rights Reserved. Aspen Technology, Inc.
~&~ [E~:~V-~ fill\lf{li!!iil ~~~fl 11111111 ~ ~ ~
·-
~~~!I§§ ~nm a
II
fJ'}'':'j
Standard Curriculum
--
Engineering - Refining, Oil and Gas Industry
ENG-REFINEMAP051116-S
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Introduction
I
I Aspen HYSYS Dynamics:
Introduction to Dynamic Modeling
EHY223.088.01
I
I Disclaimer
Instructor Introduction
Name
AspenTech Experience
Educational Background
Industry Experience
Other
Student Introductions
Course Objectives
I
g ~aspentech ,, lOI5 l\spcnT.,..;hn<>l<><IY, Inc A-Ur/ghts,.,.......,.,d I ., ,'i~NE
~
1. Transitioning from Steady State to Dynamics
[I 2. Controllers and Strip Charts
3. Dynamic Details
i!f I
Ii 4. Expanding the Model
Additional Topics
I
I
I
I @aspen tech Cl 201':i Asj>en Tedu,olar,rv. In,:. All rlglltsr<"'""'"" I 9 ·BN E
I Course Schedule
I Morning Session
- 8:30 am to 12:00 pm
I - Coffee break mid-morning
Lunch Break
I - 12:00 pm to 1:00 pm
Afternoon Session
- 1:00 pm to 4:30 pm
I
<!Jaspentech ({12015.AspeflT""lmol,>ov fnc Allrlghlsreserv>•d I 10 •§NE
©2015 Aspen Tech. All Rights Reserved. l-5 Aspen Technology, Inc.
·.---..c-1
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Introduction
Class Structure
Virtual Logistics
Virtual Etiquette
Please let the instructor know if there are any issues with
the course environment
Live Meeting tools:
Questions/Raise hand
Feedback status
Chat
Course slides
Polling questions
State your name when you speak
Please mute/turn off cell phones and PDAs
Be prepared to be called upon!
If you plan to leave the course for a moment, please
inform the instructor - the material builds upon itself!
E-learning
i l!i. ~
'. _";! I( 7ff~t~·'. j
11113Sear(h Results '·'"""'"""'"'·
i: Id !)o<i,... W ,,-,
~ }-k-~•" .,~,,
:@·.
:
l!.:~ z~;~:. .
.~. ·.;·.~·:1.:~\- . : ''"'"b"""'· ,,i.•• fmo
u,,m,"1
~.'f!J!i#-. •. ~~~::t;::~;~i~p!,::·!~~=~• ~hoo,.
,1
#;:«;, .. ,,.,,
Jll1,~,0,aJ,1J'
ir,.oaosn .. (001
.lf~:~_s,: ~!:=::,:°.:~'.:'.::::-:™
1-IDnll-'™)''''
. . . ,. -~ ,:,.-, . ~r,"
,~~~;;, ·~~::.,!:,W:::™"""~~·~~:,ur:~_>-(._
-'•;:";_,.c:';C"'."J,- c•: :·:
t;~,~~t;
0
,
i$ -·
"~',_.......,__..,... __"':""" ,...,,,..,
~~ "'-'" ·-· = Ji
',,,.,"~'"'"""'·
~
-,~,-
,._ 1'·
t "" El ....!Ii.. .
~-
~
:'r.'i"III#><,
,.,_...,
"''·•=,,,.
lit.'-',,,~,
,.,,,.,,.,.,, ..
._ .
.....~..,,.,., _...,,., __
,,,. ,-,..,,,.,.,
'""""'"""•-,,,~,.,_,--~~·"~'''<»''-"'''"'
-··--~-_,......_,.....,_,_.,...,.,.....,
'""""""""''''"ud¾""f........... ,
...
--4'-
.
·-"'=~,,
.....r,.,.,_,,.,,,c_,...,....,,,'"'"'..,
' ,. . """"'""'"""....
s...,,,,.,,, ""'''",..,,.""""'~"""'~"~-......
,to, . . . . ., , , , . ,. .
..,_,..,...,,.k>a,><;o<,o<•=-;,•..,
,.,,_,,.,,,,,..,,,,,._._,~""'"'"'"'"""'""''"""'"""'""''""'""""""'-
...
aspenONE Exchange
'
se~,ct, Rc,ulli
SULZER
-~-
, ,. , ~, ,TI-
,..,.,,,....,,11o"''""°""""''°"""'"'"'"''""'"f~'-''"'"'"'o
''°°'"' ooo, ""~ or,h ,.,ro""""'' "'''"' ,.., ""~ """" ,.;,-"""'""'°'
~N~,C Opt<"""J ( 0 - 1 .. d '""""""' ,,,,... '"' ..
""'"'~""'"*''l"'-"'""°""'"''J"'""'·'"""s,~,,,,,oo•«N••"'"'""·
i WhaUl..,,.,,.,.lt.,~Simui.u...-1"•Ci"'
,....,,o,..ut.t.:,wo,u,ootJO... ,mo.,.1>v1h<,,"o<rt•"'"""""''" ..,,;,..,
• !O<:l,tt""'o,J'" or.;,.- !O ""1"f.,,od,l<"' n<O•fl111~ o<ot,.N,~hJh! -
i,.d""'""'"...,.'""d""'°'""t"'"''Fl'.afritev"''",IJlo.,_c,,~,.,l>o..
I " ""' ... .,.,... ,o ,. - - · """'" ""~ ~ .... ~i ''fl""'""' J>t«.., ,GCJSI')
... ............... .
I
,
l·./0"''"""'
I aspenONE Exchange
I
I -~1.,.'.,-;,~.. ,_. .
Easy access to feature and product information to get you
up to speed and productive quickly
,; I •
/ OO(o
!!,§.:-:'.'.!.". !
~-,,,.O<lolf
,tkl->·Aljl!<lfl'lmWS·•~
J. ,! ~' '~,;;,; !
~-----q"-
........),··"-''-' ~-.=•-
if) ~..";,"-"-""'
I
©2015 AspenTech. All Rights Reserved. I-9 Aspen Technology, Inc.
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Introduction
aspenONE Exchange
SILl!ili --
s....,,,,,,,d,,...,.,,, ..~,.,
·~,,,d,,,~,
,.,.... ,.,,~~
""""'"''""·"'"""''''"
. ._. . . l',_""'"
ffl... ;:.~·;.~'.';';·,::.::::.:~·.~.~
A.. •
"''"""'c"'"'~"""'
"''°"~''"""'"'·"'""''... --..~-·".
_,,,._,
........... ~.--....
.... r-
"'"""""""'"""''oP""'""
~.. . .
,.,.,,~,.,...,;.,,,,,.,.,,.,w.,
I
'"'""''""""',,-'""'"'"""'
••• ,.,~ "'~_.,,...,,.,,,,u,.o,...,d,.,., ........ '"'-'"'""""'"'"tuu~,,,,., .. ,,,,,.,.•car, ~.,.••,,.,.,._, "'''""'"""''""ff"""""''
,,...... ,,,,_.,,.. '"""'""' "'' =~~-,,...,....,.
l"lolR .. <~tn .. ~«I> .... """"'°"'''"'""
o,,,,.t<m<:<;<0.rt,<>,>,nl«O•~'"'""P"·
'""""''"''""''"'""""'"'"''""'""'"'""
""'"""'"""'"" "'""'" "''"
'""" w,~" ' ,,~,.., ,..., '"' """" """'~' •• ""''"'''"'"'"'"""'"'Mt""'""'"""""'
""'~'"""'"" '"''""""ri' "" "",.,.,
... ·- ""'"'"''"'"""''"'""'""'"'d"""·"""''"""•
.,,....,or.,,,,..,..,'""
,,. ,..,,,,..ia .,.,,,u,m '"""""" "'"
""''"'"'"""'""''"'~•·="'"·"-'"
_,._.._. .....
COT<_,..,...,..,_......,..
,,a '"'""''"°..,"'"'""'"' ...........,... .................
'"""''""""""''h,,....
.,..
l
- i ....... ....
. " " ' ' " ' " " " " " " " ' ~<>(I'.,,.
OO•"'"'"""''I~"''""''"~'"'
"'''"''~""'"""'"""""'·
'''"""'""'""''"'""'"""""''"'"I""""
"'l¥'""°"M"''"'",En"'"'''''''''""''''"
...... ...~.
"'""'~''"""""'"'""""'"""
,.., ,~. ,, """''
"'~''"'""""'!'"''"""-"
'""'. '"~"' ., ,.,,""'""
~:::"" '"'"''"'"" .... """''"'"'"""" '"' ..,.
•••'"'"'''"''~"'""'"I"'"'"'"'"'·"°'"' , ·-· "'~"""-"'"'"'"
,..,. ,rl~-·-"'. . "'
"'"""'"'''-""'"''""'"'"''"'''"""·
,.,,,,,,, .....
aspenONE
:~~~-"~~~;~
;:!;~)::;: J
j
,J
. :'
For more information please refer to KB; 136954
~aspentech ©lOlSAsp.-.nT<:dllwll)Q.y; fnc.Allr,ght<;.r~ I 20 @NE
©2015 AspenTech. All Rights Reserved. I • 10 Aspen Technology, Inc.
I
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Introduction
aspenONE Drive
I Introduced in
,--·a:,,. ..... ""'"''"
I access their
models and
those shared
by other
users from
any device on
-~-
,....i,;_,. [J i:
the company ··:·~~-'
I network
I Web: http://support.aspentech.com
http: //training. aspen tech .com
Email: aes.support@aspentech.com
training. registration@aspentech.com
Phone: Regional and in-country toll-free numbers at
http: II sup po rt.aspentech. com/ contacts
Ccrra;c1 level of d1m1il co·:ered for topics prese11ted LSelecl· One _____ ,___ ,_, __ :-:'j
Ch1rity Qf course pre-requisites and objectives pnor to at\ending course _,lSe>lectOne,, ___ , -·., (;j
Please list any actdi!Jonai top1ts that 5hould have bee,n w,ered. cir that should ha'1e been covered in great,cr delail
. . -·-·-· " -··-· ,_,.,_ -·-·--. ·- - . - - - - ----
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Transitioning from Steady State to Dynamics
Transitioning from
Steady State to Dynamics
Aspen HYSYS Dynamics:
Introduction to Dynamic Modeling
;
I
I Lesson Objectives
Resistance Equation
P Spec
F = f(AP)
Resistance Equation
P Spec
F = f(AP)
I
I Solution Procedure (2)
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Transitioning from Steady State to Dynamics
I:···
Ji
®aspentech i<J2015Asper,Te,:;fmc,fngy luc 111r~111hl~r,,,..,...,.,d / 9 ®NE
dP
dt=f(V,F,T)
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Transitioning from Steady State to Dynamics
I.
.
Resistance (or Conductance) Equations
~
~
The P-F relationship for these unit operations can be
defined as:
Flow=k.Jp!1P
- The conductance ( "k" term) is determined from the steady
state flow, density and pressure drop
- Unit operations that use resistance equations include:
Heaters and Coolers
I Heat Exchangers
PFRs
Pumps and Compressors
Column tray sections
I
I
I Resistance Equations - Valves
Flow = C, fj;p
Note: Cv proportionality constant incorporates the Cv of the valve
and its opening%
Separat.,r
I~
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Transitioning from Steady State to Dynamics
operations to Oi!tltlatlon
Columns
Distillation columns with condensers requlr~ an e~tra specmcation around
the condenser. Make a flow specifrcation for the reffu)( flow.
dynamics V11lves Use the 'pressure/flow relalionship' as Iha dynamic specification far a
,.,]Ire_
Kv11]u9 Use the ·!l'le,all K value' as the dynamic specification for coolers, heaters_
and heal exchangers and LNG exchangers.
©2015 Aspen Tech. All Rights Reserved. 2-8 Aspen Technology, Inc.
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Transitioning from Steady State to Dynamics
I
I
I Solving Strategy (2)
l!~
Inconsistent Solution
I P/F specs are used to solve the flash via DOF analysis
Inconsistent solution!
- aP =0
I Flowsheet under-specified
- One specification is redundant
Feed\
p
Delta P
l/l.V-100
1
p
SepJrnror
I
I Acceptable Solution
~
Pressure specifications made on all boundary streams
u
[ Consistent solution
- Vessel pressure calculated by holdup equation
- Stream pressures calculated by resistance equations
11J I p
Vapor Product1
VLV-101
fl
k
~
I
,_J
p
Feedl V1..V-IOO 1
Sep::irator
p
lrquid VLV-10 2 Product2
Guidelines/Rules of Thumb
.
Rev1ew any messages t o j'
: " ............"''"'""'-'''"''""'
.,,.,,.,,..,~.,... ,..,.._,,~.,,.,,,
1
determine if they are required 1· '""~~::;'::::::,:;'.'.~;::;
changes, or merely [i ·~--·- t
suggestions i
11
;, ;:_::
vae,~
); ,"::,;~i). .:if~~;J
11' ,.. ,.. ,,,..... ,. . ,,, "
' ,,it
['i, •
...,,,.,a,,., :,s.,.,,• 'i!
l _ ' ., ... - .. --, . ,-,_-"·-~-- ,____- --~1: 1
-- -----~
I
PIPE-101
- You can create your own
Bravo1
Dynamic P/F Specs color scheme is Q-Bravo
extremely useful for visually checking
Ch;::,,1;;,,~.t,;;;;;;;;;;;~-,c:;;h,:;irll.,,1-
a-Charlie
I
I ~aspentech rc:,:zot'iAspenTet:lmoh,gy,lni::.Allrlyht;;re'°""'ud l 2~ i§NE
Alpha
"i-- ) I
A!pha1
'~
VLV-100
J
A!pha2 HP ~ ..Hot,Vap
E-100
a-Alpha
PlPE-101
PIPE-102 I
Charlie
•e;;;;;;;;;;;;;;;;;;;JJ-;:;:;;t;;-~>N-c--------
.. Charliel VLV-lOl harhe2 L~
HP LIQ VLV-103 HPLiqt
0-Charlle
E-Learning Resources
I
11
~
~aspentech
Aspen HYSYS Dynamics. Introduction to Dynamic Modelling Workshops
I Objective
Aspen HYSYS has been designed to permit a two-tiered approach to simulation. With
numerous options to supply different levels of equipment design and performance
information, Aspen HYSYS provides modelling capabilities aimed at both process design
and detailed design activity.
I For process design activities, users typically enter basic design information and Aspen
HYSYS estimates reasonable defaults for the detailed equipment information. Typically
these basic design parameters can be found on the Design tab of unit operations. Any
I In the next few modules, we will focus on design dynamics in order to illustrate the
fundamental concepts underlying the use and configuration of Aspen HYSYS Dynamics.
In later modules, we will expand the design dynamics model by incorporating detailed
I equipment and performance information and explore the detailed rating capabilities that
Aspen HYS YS Dynamics provides.
Description
This module examines the process of changing a steady state simulation into a dynamic
one. The process for doing this is not difficult, but key procedures should be followed to
ensure a smooth transition from steady state HYSYS to HYSYS Dynamics
o Open the file saved at the end of the last workshop. 01-SteadyStateStarter.hsc.
o Save the file as 01-PrepareForDynamic.hsc
Q-Cool
PIPE-100
Q-Alpha
PIPE-101
HP
Sep
Bravo
0-Bravo
PIPE-102
You will begin by appropriately sizing the unit operations in your steady state model.
Specifically, you will begin with the four valves in the flowsheet.
a Double-click the valve icon VLV-103 on the liquid product of the separator.
a On the Rating tab of the Valve property view, select Universal Gas Sizing as the
Valve Manufacturers option and select Linear as the Valve Operating
Characteristics option.
a Set the Valve Opening (%) in the Sizing Conditions group to 50%. Click the
Size Valve button to complete the sizing.
i
r ;
~
"·
I
t:
~;!
; ···-·--·····-·-·-····~·-
I In this instance, the Size Valve calculation detennines that a Cv of 108 USGPM will pass
240,300 kg/hr when the valve is 50% open with a pressure drop of3792 kPa (550 psi).
I CJ Repeat the same sizing procedure for rest of three valves. List the calculated
valve Cv values below:
Valve Calculated Cv
VLV-100
VLV-101
VLV-102
Se_par~tor: HP Se.P
-!t \liartica(
Ori.,nta,icn: 0 Horizcr.tal
q
"""12.7_..
O,ame¥er [mJ l1&l' i
I H;,1ght[m] ?:1~6 j
!H~ad_hfighl [ml_ ....,.,... ~ernp_~P,. i
-----~11
Unlike separators, a number of unit operations have equipment volumes that are defaulted
- for example, Heat Exchangers, Heaters, and Coolers. When adding these unit
operations to your flowsheet, make sure that reasonable equipment volwnes are specified.
o Next you will size the E-100 Cooler operation. Double-click the operation and go
to the Dynamics tab.
o Enter a Volume of14.16 m3 (500 ft3).
.......]!I
.,
11
,!
I'
i
,!
ii
i!
:i
ii
ii,.
The Pipe Segment operations already have lengths and diameters; these sizing inputs are
sufficient for any dynamics calculations. As for the Mixer block, it is required that the
Equalize All pressure specification is made, this is already specified in the starter file.
- -------Just1:emembe1 to use the Equalize All optieifl when t1sing a Mixer ia KYSY-S-1Jyn"'a,111nn<>'""'"s~,- - - - -
the Set Outlet to Lowest Inlet pressure assignment option will not work!
Pressure/flow stream specifications are made on the Specs page of the Dynamics tab of
IJ any material stream. Dynamic specifications for unit operations are also generally found
on the Dynamics tab of the unit operation property view. The following table contains
some rules that will help guarantee a consistent, properly specified flowsheet every time.
[] Dynamic Spec1f1cat1ons
Boundary Streams Insert a valve on all boundary streams (feed/product streams)
within the Flowsheet that are not connected to conductance
Ll
1.•
I
..
Pressure Specifications
devices (such as heat exchang;rs, coolers,~):-, \C~-W.
Place a pressure_ specification on all boundary streams
-,
'
(feed/product streams) within the Flowsheet.
Distillation Column Distillation columns with condensers require an extra
specification around the condenser. Make a flow specification
for the reflux flow.
Valves Use the pressure/flow relationship as the dynamic
specification for a valve.
Kvalue Use the'overall K value as the dynamic specification for
coolers, heaters, and heat exchangers and LNG exchangers.
• The upstream side has three pipe segments and three valves to control the flows,
so there is no need for any additional information.
All boundary streams in the flowsheet must have a dynamic pressure or flow
specification. The boundary streams are: Alpha, Bravo, Charlie, HotVap, and HPLiql.
Use Dynamic P/F Specs color scheme to identify dynamic specs in streams. This color
scheme can be changed using the drop down menu in the Flowsheet/Modify tab of the
HYSYS ribbon. Using the Dynamic P/F Specs scheme, you can use the following color
coding to ensure that you've properly specified your streams for HYSYS Dynamics:
-
~·
D
;..i:
~;}
"'"'
Go to Flowsheet/Modify ribbon. Change the color scheme to Dynamic P/F Spec.
After doing this you will see the color of the feed streams is red. That means the streams
have both pressure and flow specs, as mentioned before we need to define only one
dynamic spec.
1;·5~·~~-
"l ! S.tripcha.rt
11 1
j,Iiii
I'I;•.
I·
IH ~) ~1-olar
t
·11:.1! [!
I'
! Ii I·
I
Iti I
f: CJ Activate the dynamic pressure specification for the Bravo, Charlie, HotVap, and
i;i HP Liq 1 material streams as well. At the same time, make sure that the dynamic
f flow specification is NOT active in any of these streams.
Double-click on Alpha2 and go to Dynamics tab. Uncheck any spec. Remember
!'
Cl
I
that when modeling in HYSYS Dynamics we need to make sure that no internal
stream has any dynamic spec.
Note: As a shortcut, instead of going to each stream's Dynamics tab, open each unit
operation and go to the Worksheet I PF Specs tab to view the pressure flow specifications
rlll for each ofthe connected streams.
~
The k variable is the conductance-to~flow constant for unit operations such as Heater,
Cooler, Heat Exchangers, etc. The value of k is calculated based on the current steady
state pressure drop, density, and flow rate through the operation.
o Double-click the E-100 Cooler. On the Dynamics I Specs page, click the
Calculate k button.
Cl After the k value has been calculated, activate the Overall k box and make sure
the Overall Delta P box is deactivated.
CoOler:E-100
::..s,gn] Rabng TW~,lwl~t [ P:_rforma~~ ~ - - - ---
1!1 ................. i
,! i Dynam•c Sp~cafica~on; ··
11 • ro:;;;ilo";it~. PlkP~J -69'.iiii--\j"·F
.11! I isi~~ll_t _[1<_91'l_,'.i~_9~~.~:.~~-"'-,n fj)()4,o,;-O{l.f. i ! P'
It is also useful to verify that all other resistance/conductance items (in this case, the four
Valve operations) are using a pressure/flow relationship, rather than a fixed delta P. If
pressure drop is fixed, then there is no relationship between pressure and flow at that
point of the model, making the dynamic calculation very inflexible. So let's take a
moment to ensure that the four Valve operations are set up properly before continuing.
o Double-click VLV-100 and go to the Dynamics I Specs page. Make sure the
Pressure Flow Relation check box is checked and the Total Delta P box is not
checked. Check the box to make it a Check Valve. This helps to prevent
backflow in case of negative pressure gradient.
Ii;
j
~~:p ! : l;;~~;;;,1;'.:"°' ------~ -- 5001L ~ --·
i:lctua~or. ! i'. Dynamic Parnm<=ter.. ······•···•·············· •····················
!I,
j ! , ow 'm1tsi : t""
-· ····· ·•··············•·······•····
1
I t~l Cfieck Valve [Prevent, Backflo:~;-···-----·---·-·- -·-· ' -·
r·
{-:: .•..I ··-··--·--·---..--
Note: You can always get more information about each specification cell in HYSYS by
simply clicking on Fl, this will display the HELP content. Remember you can also
type any key word at the top of the window in the Search aspenONE Exchange
;t e , 01-l'repareforOynamic.hsc - Aspen HYSVS va .... /¥ 4. 4 14 .4.,ili- M · ·* ,
r.,,o.a'"" v,~., CeOoc,,~¼ '""'"' ~-;;;;;;,;;;;;;.,;;,;:;,;,· .. ; "'''"' I~J'cc,rO•'!"''GMii,,-,,,.,.,
- - , , , - , - - " , . " C,)
p,,
., '
A,<µen °1-iYS'/S. ve_a He!p
_.,.~·---,~,-~. i::i"a.!11(:
.;. :ill. A
f:>c1r;:it11et8rs Pa9e
.'P"''''·1'-·rcs. ½oc,o.,, \/,eM,a,c·.f·"'-' .,- . , U .. o.dy ,·,a _,,re· '"""'ioi o,,;o,vn,,,
J;-,·--k?L,HJ-e.!:",
llll'·"""'"'
[-t:i~: t~! I
..
1
1 ~; 1
SFlimmp,leMP,ip1',' ,-,-,-ct-,,·,····M··-od·-,·,·· -M--,,-h·-,-,·---- - -- -··-·-·------- --
1
1 i rPipe.fricti~n-Mod~I . ~-.. =~-=~.-=-~- ~-~~--~- ~~===·=·=~~~~]
'1 l ] I Hos,, Typ,
i
I ,' D one dp c;,ldpipe-
I CJ
CJ
Are all the boundary streams green? _ _ __
Are all the internal streams dark blue? _ _ __
CJ Click on an empty place on the PFD. Press Shift+P to view pressures.
o Does the Mixer have equal pressure for all the associated streams? _ __
o Does the pressure profile look right? _ __
If any of the answers of the above questions is no, fix the problem.
I PIPE-100
a-Cool
'69.98
kPa • 1~2
Q-Alpha
kPa VLV-100
"£481
kPa 6481
kPa
/ 6411
E-100 kPa
"6550
kPa
PIPE-101
Q-Bra\JO
6534
kPa VLV-101
6481
l<Pa
MIX-100
-- 64B1
<Pa
HP
Sep
PIPE-102
There is another way to check the readiness. It is called the Dynamics Assistant. The
Assistant performs many tasks that the new user may not be aware of, or familiar with.
The Dynamics Assistant will activate when you transition a model from steady state to
dynamics and the assistant finds any problem or have any suggestions. You can also click
the Dynamics Assistant button to bring it up. When using the Dynamics Assistant, make
sure to read any messages carefully. Some messages may denote a required action while
other may be suggestions that you can ignore.
trfi) 1ntegrator
o In this· case the assistant wi11 not find any problem or will not come up with any
suggestion.
ns,......."''"""''"
D Click on Dynamic Mode button from Dynamics ribbon and click on Yes to
switch to dynamics.
f~Vil !::'Gint,grato,
0
lJ;jl)y!lam,clnili
t];zE,.nts,11,d,
~2~:1~~\'' R.o:,; ! fit S"napshot Ma
Dynoml<'i"11ul"lloc\•.-- ', i ! M~d,lin
----------,·r·-"'---
s1rnu1afmi Aspen HYSYS a.
Allitem, i 1
~~~~ji O Are;ou,ur,youwontto:witchtodynamic,l
i: i:o Stre(
i~Strdi
f:i?iEquj ! jL __.
l.eiMo'J,i_
I 0 The file is in dynamic mode but not running. Click on the Run button.
F#IF Horfu(
I i11l @¥1 Ii: ·bd!~
lf'J\ '
Q
Press Stop button after a while to stop the solver. Save the file.
I Note: A way to check if a simulation is running in Dynamic mode is to take a look at the
lower left side of the screen, it should say Integrator running or Integrator Stopped
I !.
~:·,i:_ ~:~,_ --,( ; 1·"' ···:ol.coy'riai'nfC.~-~A5i,.;rllf{SY.~S1kl_,.,L,t. --.- ~J.£,8:\_~'
11111:
@B''!.
H;m, CcoMmi<> '; Dynamrcs ;
~la\ego,101
Rea[ltm•
v;~. cu;tomin P."o~«e,, Flow.h,~1Moo~y
r;- ["ii··1. {) •~}11,y""'""1",t;,1,«t10<1
i,;~ r,,.n,~cMedlll<r
Jii}
format
· _,__ _ _________ _
ii.'..~'."~. ~~~,oO~~ UCllonge
'..":/''.on"olM,n,901 Cia"Protll,
tcf.Face Plat" l!j-oc,
;:"cir:if' : _fr~:t'::~' Run :
5t0
P : Rmt , "fit Snaprnot Manag~r ,::;tr1~1 ~S!Jlp Oiarl, ! f~~~~o; j
~ ~un hlodelin~ Oohon, Tc.ols 5umma
lf',l Slrn~btio<l C.p~ol:" USD Utilities: ll5D/Y.,, (Jt i !:nergyS.Vin~s: MW L_o/o) iS)(»
;All)~;':',•.
1-·' ~in~:F:ok
! ; :·:'jiStro,m, PIPE-100
!451ro,n1Analysi,
''.~ Equ1pmen( 0.,ign '69!JB
fjgio --- -..[><J-----·5:;1,·
kPa \/LV-100 kPa
i
Ce/ Madel Analysis
''.;,Dat,Tables
'" Q-Alpha
[ C-~S\rrp Charts
""··--·" PIPE-101
' &ie.-JJf"""*""'
liiJ
I
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Controller and Strip Charts
I
I
I Lesson Objectives
I
~kspentech ~1.015A,;-11enT..:hn11logy-,focAllm1hl."•"-~ f 1 ,SE)NE
©2015 AspenTech. All Rights Reserved. J- I Aspen Technology, Inc.
\
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Controller and Strip Charts
System can be
characterized as first
order
[I
Characteristics of 1st Process variable
Order Systems
Process gain,
Kp ; y(t) / u(t)
-I 163% ;y(t) .
.'iy(t)=K
Time constant
D (Ti)
Dead time ( q)
r--~.,....:....:....·
Process illDUI
D
90% of chemical
systems defined by
first order response
LJ Time
.i
___ . _]'
_
'
d
r-y(t) + y(t) = Ku(t)
dt
D
Ll Closed Loop Control
:.:'j
!i
t
HYSYS Dynamics makes extensive use of closed loop
control systems
Classic control equation: OP(f) = K,.E(r) + TK,f
;
dE(t)
E(r) + K, Td-d-
l
- Kc - Controller Gain
- T; - Reset Action (Min/Repeat)
- Td - Derivative Action
cor-.TROLLER -----------1
··."''
~ u ~aspentech ,,. 1015" Ai;per, fe,:hrnll~v, rnc:.Allrrghl.;i,....-,rved I 6 §NE
©2015 AspenTech. All Rights Reserved. 3· 3 Aspen Technology, Inc.
\
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Controller and Strip Charts
I :-,,,, ....~,,
1:::.="' ' ,,.
i:':v~,.
. ···----- ···---····;:;:;
'""""''
j::>'l'"' ~°'"'"'!I' ' -·
1::,..,,,_,..,, . . .
I 1::=::"' , .. . . .
I i
1,,>...-.<,,p,,,c, I•
Hi
"~oi;ioo".:,;;;;;..,i,",
.,,,,,c· ··········· _ 1_~-~."'e"-'""'-J
·I
l:1
i1
.<I
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Controller and Strip Charts
Controller Action
',,
lncre<1Si~ l(c
Time
- - - - - P1 cornroller
SP
I -j
I
I I
I
I
Time
I
I PIO Controller Action (3)
I
PIO - Controller OP(t) = K,[E(t) + ~ fE(t) dt+ Td cl_E(t)]
T,
I ,..--- Pl controller
dt
·········"·· ···············1
i
SP
~
_}
(-;;;
<~·······
I
PID controller
,<,
I
Time
II
i:'."_J
®aspentech © iQl~ As1>enTes:hnal<>11!(, Inc.Allntrhl:sc="-d I 14 §NE
©2015 AspenTech. All Rights Reserved. 3-7 Aspen Technology, Inc.
I
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Controller and Strip Charts
/1;:'t
j Tuning Parameters
Rules of Thumb:
I
: - ::.::::::._...,,,, :1 ---!"'-~- .......... ,,... - --~~~. - :;.:
I ::afi'I
: :;,,1"""m"""'"~ '
. ·, ..:1
'.o""''"' ti
:I ;1
I :]11 f.T'~
-~ ·."!
.. -·. - c.-~-:::·_~ --~ !In
1I .
·1~
ff_;;
{) rc.HmVap
P!l"E· 100 FC-A!pha [)
Alpha Alpha2
HolVap
VLV-100 HP
Vap Ec-100
e,
FC-Br.av;:, MIX-100
PIPE.101
8raw
Cl-Bravo
8ravo1 VLV·IO! Brn<n2 To
Sep ""
C;
le.HP
s.,
HP
PIPE-102 FC.CharUe
"'
Cl\arlie Char!iBI \JLV-i0 2
,,
HP
<l
YLV-tOJ
HP
Uql
Workshop:
Controllers and Strip Charts - Tasks
----- -------~==============================----=----==-_:j ---
This workshop includes the following tasks:
Task 1 - Add PID Controllers
Task 2 - Build Strip Charts and Observe Model
Task 3 - Change Set Point and Customize Strip Chart
I E-Learning
How are PV, SP & OP defined in the PID controller set up?
~
II
I
I ~Jaspentech ~JO;LSAspenfechnol.,gy,1,u_AtJrlghlsrc~ i 21 ~NE
I E-Learning Resources
A- 'co;,:"
:ffA:aii:~:.;:"- ·--~·171-o, ~.... r,..
!-;i!d,l,')j \
@aspentech
Aspen HYSYS Dynamics: Introduction to Dynamic Modelling Workshops
Objective
Aspen HYSYS Dynamics has the ability to test process control strategies prior to
implementation in the field. Tiris is invaluable as engineers can develop reasonable
control strategies and check alternatives without perturbing the actual process. To
successfully apply control objects in HYSYS Dynamics, it is important to be aware of the
various control options and how to install them in a model. This workshop will illustrate
the usage of the Pill Controller.
I Once a HYSYS Dynamics simulation is controlled and calculating, you'll find that the
reporting of data is much different than in steady state. Simply viewing the Performance
page of a unit operation or property view of a material stream will only show data for that
object as time proceeds. Rather, the preferred means of reporting data in a dynamic
model is by using a feature called Strip Charts. Once you add the required process
controllers, you will add and experiment with the HYSYS Dynamics Strip Chart feature
to review and analyse your model.
Description
This dynamic simulation started in the previous workshop has all required dynamic
inputs in place and could be calculated if desired. However with no controlJers in place,
the model would run open-loop. Eventually the system might stabilize, or it may run out
of control! Further, we do not have an effective means of tracking process data as the
dynamic model calculates. To remedy these deficiencies, this workshop will go through
the procedure of adding Controllers and Strip Charts.
• Make the necessary connections for the Process Variable Source and Output
Target Object
• Select the Minimum and Maximum values for the Process Variable; these values
should bracket all possible process variable values
• Size the valve - controller range; this is not necessary if a valve was chosen as the
Output Target Object
• Select Controller Action: Reverse or Direct
• Enter Controller Tuning Parameters
• If desired, choose the mode of the controller: Off, Indicator, Manual, or
Automatic
o Open the case you saved at the conclusion of the previous workshop, 01-
Dynamic.hsc.
o If the object palette is not open, open it by going to Flowsheet/l\tlodify ribbon and
clicking on Models and Streams button. The shortcut to open the object palette is·
F4.
a Add a PID Controller to your flowsheet from the Dynamics tab of the Object
Palette.
o Double click the controller icon on the flowsheet and rename it as FC~Alpha.
o Click the Select PV button and choose Alphal I Mass Flow as the Process
Variable Source and click on OK
o Select the Select OP button and pick VLV-100 I Actuator Desired Position as
the Output Target Object and click on OK.
FC-Alpha
I -i
I [_S.el':.:,:":~!··· ] Optional I I
Object
J
i----··-------, SP ] Variable: ~uator D~ir~ ?osi1.lon - - - ~
I~li
1 i
I
I L------~---- I
---·----··-----·--·-·-------------·---"
'
I
i
I I:
,,~
. --·---· ....,......,....... ·-- ... ,,_, .,,,. .,_..,,.. _ . .,.. ·--·-··-·--·-·------···---·---·-·- -- - -·--·-·---- -· ..... 1
l
I w
h
o Select the Parameters tab and view the Configuration page. Ensure the
Action is set as Reverse.
o For the controller PV range, enter O kg/h (0 lb/hr) for the PV Minimum and
363000 kg/h (800000 lb/hr) for the PV Maximum.
o Change the Mode from Manual to Auto.
o Define Tuning Parameters as follows: Kc: 0.25, Ti: 0.10 min. \Vhen finished,
the controller parameters should look like the following image:
t:!-
Aspen HYSYS Dynamics: Introduction to Dynamic Modelling Workshops
K-Alph;,
o Insert a Controller Face Plate for monitoring purposes by clicking the Face
Plate button on the property view. Locate the Face Plate in a convenient
Location in your HYSYS window.
NOTE: After HYSYS V8.8 you can organize the face plates better by making them
dockable, right click on them and choose this option instead of Floating (default). Talk
to your instructor ifyou have any problems with placing them.
floating
Int SP: L
, ,/ Dod.:abte ___ l ___ _
Tabbed 763e+005 kg/h
Auto Hide ,00%
Auto --;I [ Tuning
1-------
1
o Close FC-Alpha property view window (the second window above this line).
o Add another PID Controller to control the mass flow of Bravo, using the
information provided below:
Controller Name
Process Variable Source
Output Target Object
Action Reverse
Range PV Minimum O kg/hr (0 lb/hr)
Range PV Maximum 363000 kg/hr (800000 lb/hr)
Kc 0.25
Ti 0.10 minutes
Mode Auto
o Insert a Face Plate for FC-Bravo. Close the property view window.
o Add another PID controller to control the mass flow of Charlie.
o Insert a Face Plate for PC-Charlie. Close the property view window.
D Add a PIO Controller to control the liquid level in the HP Sep vessel.
Controller Settmgs
1
,: . Conne_~tiOns- . . . . .
Action Direct
Range PV Minimum 0%
Range PV Maximum 100%
Kc 1.0
Ti 3.0 minutes
Mode Auto
SP 30%
D Insert a Face Plate for LC-HP Sep. Close the property view window.
D Add another PID Controller to control the temperature of the HotVap stream
by manipulating the E-100 Cooler heat duty.
Controller Settmgs
Para_meters .
Action Direct
Range PV Minimum 10 'C (50 'F)
Range PV Maximum 65.6 °C (150 'F)
Kc 1
Ti 2 minutes
Mode Auto
SP 25 C
D Click on the Control Valve button at the bottom of the current window. For the
duty stream there is no valve unit operation placed on the PFD. You will access
the control valve of the duty stream by pressing the control valve button in the
controller interface.
i
.
.
, C:on1tof Valve
Minimum Available
Maximum Available
O kJ/h (0 Btu/hr)
1.06e+08 kJ/h (1.00e+OB Btu/hr)
TC-HotVap
_ CJ \';;~Ji:.j ,t Summary ; t..:..:....:..l I':":'.'. Dilla Ftts ijlEquipm•nl D••ign •
,....
1
, (,:,ri,;:ior lY:::optimlm ~Mod<IAnai'jsJ,•
:~~:~;;,-~;~;;· \),i~;,;to~Sb;i,~Mlt Tu,~, V~~~lN~·1.. t. ! ' An~i'j,I<
~g I
.in,:il
I 1 i-PV
i [P-v_Ma:<im_urn
\\_1'_1()"'.~"':'~-r-,,':':'. ·:{
() Fmm Utility Fluid
_ ___J; '". :. . "-c··' ,., · ,,,. · ••:C:-:~ ..C..,c--ilc..c,.. :SUC.S.-~. .: ' "A~:l.~:j~,;:;:"~h.C
I
~f¥j
: kPa kPa
Control Valv.,__
o Insert a Face Plate for TC-HotVap. Close the controller property view window.
The control valve view for TC-HotVap will vary depending on the dynamic cooler model
chosen (see the Dynamics I Specs page in E-100). In the Model Details area, if the
Product Temp Spec radio button was selected, then there would be no need for the
controller. The duty will float in order to maintain the desired temperature. If the Duty
Fluid radio button was selected, then the controller would control the flow rate of the
duty fluid. The user would supply a UA, duty fluid c,, and the duty fluid inlet
temperature.
Another control option you will investigate is cascade control. Cascade control is a
common control technique that uses two controllers within one feedback loop. One
controller is "nested" inside the other. This means that the two controllers are not
independent, but linked together with the "primary" controller setting the SP for the
"secondary" controller.
Cascade control can improve the dynamic response and controllability of a process that
has considerable dead time, or where the time response of the primary loop is very large.
D Add another PID Controller to the simulation and name it PC-HP Sep.
o Set the HP Sep I Vessel Pressure as the Process Variable Source of the new
controller.
D Click on Select OP button. Select FC-Alpha object's SP variable. Click OK.
- "SIi
\fc~~~·~~ti~~~-- r.~~-~~~~;~T·~-~-~i~i)i0_~h_~iIU;;~"V~~bl;IN~ L_""-"""
Nam<!c PC-HP-Sep
;i Object.
1l l Vahbl..-,
i11:
,,
Ii
\!
I:
li
Ii
r Remote Setpoir:t
_\ i / Ls_e.1~~~_SP.~j Optional
Ii ! r- ....·--: SP
Action Reverse
Range PV Minimum 5515 kPa (800 Psia)
Range PV Maximum 6895 kPa (1000 Psia)
o Has the Mode turned to Man (manual)? If yes, input the tuning parameters from
the table below. If no, a mistake was made somewhere. In this case, delete the
controller and create this controller again. Once you have the mode changed to
manual, input the tuning parameters.
Kc 3.0
Ti 2.0 minutes
Mode Auto
I Internal i
2.676e~oos kg/h I
1
-----~~~-~-:~~;t~.....J JI
_-_ 36300~::: :::J
I r·;uning_ P_ar_ameter._ ........:--··------:-:
i IKc.
! IT,
o.250
0.100
ji
J,
1- Algorithm Type
iitt~_-_-:.·.-·. . :..·!
i Td _____ ., __ (em_pty> _ I
I
, i\Jgorithm Subtype
Name fC-Alpha
I Remote s,,pornt e I
I Object 'NLV-100
._ _______________ ,i ~~
-
I~~ Optional : I
,--------------- i SP V~riable: ~ator Desired_ Position -~
JPC-HP-Sep ______ I!
a
1::1
'_·iil.,
__ _
Aspen HYSYS Dynamics: Introduction to Dynamic Modelling Workshops
C,.,"'c1 \'~n~ow
PIPE-100
~--6910-"" .....:~~"- -·w11---1 v,
\<Pa VLV-100 kPa j
d
PC-HP-Sep
'
FIPE-101
...~~~...........
~.
G52il
VLV-101
""
kPa
The Strip Chart provides a method for easily monitoring key process variables in a
graphical environment. Strip Charts are installed individually. Variables can only be
added via the Strip Chart menu. Multiple Strip Charts are allowed, and each strip chart
can have an unlimited number of variables charted; though it is wise to limit each Chart
to six variables or fewer. Perform the following steps to create a pair of Strip Charts for
monitoring the dynamic model.
o In the Strip Chart window, click the Add button. HYSYS will add a new Strip
Chart titled DataLoggerl. Change this name to Flows.
I o Set the Logger Size to 3600 and keep the Sample Interval at 20 seconds.
D
I ····-""· _J ] r ·-- °'~ --- i
!!
i!i!
ii
Ii
i!
r Add
1
o Add Alphal I Mass Flow.
You can add a variable by drag and drop method. Double click on Bravol. Keep
Bravol and strip chart setup windows side by side.
o Select mass flow of Bravo 1. Hold it. Then drag and drop into the strip chart
setup window shown above. When you see the cross hair, it's ready to drop.
1.m,-~,,I
Ma.,dlow
"
Ol:..•
.Jaa1e. • ..,,
223'e•C<ll
0',""c'"'"'
o Add the following variables using the Variable Navigator or drag and drop
method. If you use Variable Navigator, after finding a particular variable, just
click the Add button and the Variable Navigator will stay open and allow you to
select another.
o Charlie! J Mass Flow
o HotVap J Mass Flow
o HPLiql I Mass Flow
o After adding all the variables, click Close to close the Variable Navigator.
Ilf,;;;~JHjsro,,rai[ ~~;:' [, .· ,.. Al:,:; ~~,::: •· .· . :,:flo: . ··.,. :c~, ~•• - .. .· ·-·111
-----t.·I f - - ' r rl,.
I
· ~
Cf\a,!ie.1
Hct Vap
~,. = ow "
Ph<llie-MMSFlow(O~raH)
Phase Ma~ flow {OvernHl
:
I"
'* 11·1:.
11 j
j i !__····--··---- ___,_,__H~ Li_q1_ Ph,m ......... ~~---·--·-·- ______ ,._... Ji/
11 1,,
JiIi ----------- if·
I'
o Click the Display button show the Flows Strip Chart. Place it in a convenient r_. -
location and size the window accordingly.
I
I
I
i Minutes
'
I o Close the Flows Strip Chart setup window and return to the main Strip Chart
menu. If you don't have it, click on Strip Charts button under Dynamics tab in
I ;~SlripChart<
the ribbon.
I
I [ Add .. J] l-.-Ed-;-...- .I L" ___ Dolot.! _______ i
o Click on Add button to add a second strip chart. Rename it HP Separator with
the same Logger Size and Sample Interval as the Flows strip chart.
o Click on Edit button and insert the following variables:
o HP Sep I Vessel Pressure
I o HP Sep I Liquid Percent Level
o HotVap I Temperature
o Display the HP Separator Strip Chart.
When running your simulation in HYSYS Dynamics, it can be difficult to check the
progress and status of the simulation variables as they change with time. Therefore
results reporting and verification is much different than in steady state! That is why you
added the controller face plates and strip charts to the HYSYS window. Position these
views accordingly so that once you commence calculations, you can easily view your key
variables.
. -·- ~~~
·-™~-: '~..;., '
""
Minutes
o Right click on Flows strip chart. Click on Graph Control. It has number of
tabs to customize color, curves, axis, print options etc.
Flows
Workshops
I
[~
I
I
I
I o Change the background color to white.
I
I
I
I ,._.
o Go to Curves tab. Select Alphal- Mass Flow. Change the thickness to 3.
I Ii~~~i~~~D~-~~~~-~~;91~~~1-
1
1
i; Aipha/ - Mr:m Flow . Objectf\lariab(e Alpha1 - Mas; Flow
.____________ ,, __________ --1
Ii
l
! ! Bro;Y, I - P/,a:;e . Ma~I /: ['.J..1 Show Curve
ii Charlie I Ph.ire - MD><
I
1
!i Mo,,i
·~
Hot'lap-Phase
11 HP !iq1 · Phose f1r,,5
(i:;;~;~;;~:_M~ Flow ;JE :,wh C~L~eV,Lo~j II i
······-'1···------i! -.-: U,e D~faufi: \Jnrl.s.
I ii
I 1
Ii,:. ii:~: All
,.S.:aling ..i...:is
!i_~X]~~---~ M;isiF!ow
-·-····-······-·······:; 1
I'
:tl . ,
~ i '................................... ..• i)
Ii
··
o Open graph control for the other strip chart. Chaoge the background color to
white aod chaoge thickoess of all the curves to 3.
There are two ways you can change the set point in a face plate - using the sliding bar
and typing exact number.
o Hold the red down arrow in FC-Bravo face plate and move it towards left to
reduce the set point to any arbitrary number.
1:2;~
I OP: 50.07 %
icji!
--•I
j[Auto •lf Tuning ] - 1
o Run the integrator. Observe changes in the Flows strip chart and FC-Bravo.
Slowly the flow, which is indicated by number and also light blue area, will
come to the new set point.
o Stop the solver after few seconds.
EC-~ravo
. ·---------- ---~Exec_LnL....-""--'-----F------
···-·· ·- ... l.
PV, 1.3852e+005 kg/h ['
OP: 27.71 % i'·
[,;:;;;;_: --··:;;[ I Tllnin'i]_
Now you will try to change the set point by typing a set point. The PV value in the face
plate shows the current PV (process variable), which is flow rate. However, if you select
the number and type a new number, the new number will be the set point. The number
will be in controller interface but not in the face plate. The sliding bar will indicate the
change though.
o Click on the PV cell of PC-Bravo Face Plate; select the current nwnber and
type 2e5 kg/h ( 4.4e5 lb/h). Notice that the red sliding bar repositioned to
indicate the new set point.
I l~!~-- __ ji turun!l
o Click on Tuning button to view the controller interface. Notice the set point is
changed.
I ; t-C-8ravo
·.:.11. Tun_i~g.
I
I
0 Remote
I
Alarms
I PV Conditioning
Signal Processing j
I
. .. !
L1c9end."'
Select Curve
AutoScale Curve
~opyToClipboard ~ t----~----~-"
j ~ £.rint Plot
= 2"'-<.)
Workshops
-Cl-
Aspen HYSYS Dynamics: Introduction to Dynamic Modelling
·· .... Flows· __ . .
.Gl
"-
Minutes
..
~,'_:_ Flows
r ·'1--·
'""'"·0 ---1 · :· ---·- ---r - - -- --·-- - --T -- ---- -
~· ..
-· - - r1
, I 1·
'.c' U,\>MYOc).,1===1====1'===ei====l====-+.j,,l
Cl'I
'½-,··-- - -,~---f-1i
_j_
"'· / .....
i ,~ ,- ,- ., Click and hold the little yellow triangle
and drag it to the left to take the right
-r-I -----11L I I
!
most time to a past time
·1I
~- -., :
I, "H ---:+,,---"'-l"·'"----.,+-.,,-M-,-nu-te-:+ij,-,---,.l,,-,\_'-::~-~'1::j,+!f"~~-loo,-~<"3'·--.,·,---:~r:.j~~+-l_,-4·.Jllj
"1.,., ....
~ Click and hold somewhere in between the red and yellow triangle and move it to the left
~ or right to zoom into a time zone keeping the same time span.
I
I
1,. 532,+05! 111 .598,+05
..•.,.,., .(4'1+-::_l,_,_. . I ---1,-
I o Change the set point of FC-Bravo back to 2.77e5 kg/h (6.le5 lb/h). Run the
solver for few seconds.
I o Drag the yellow sliding triangle all the way to the right.
1m
~
r•.•.
i_ _;
l~tJ
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Dynamic Details
n
c!
Dynamic Details
Aspen HYSYS Dynamics:
0 Introduction to Dynamic Modeling
D .
D Lesson Objectives
[j
Study valve characteristics and actuator parameters
Implement heat loss models for process vessels
Introduce nozzle locations and hydrostatic head calculations
Review the HYSYS Dynamics Integrator
r~J. 1
\,(&2}
1 Valve Characteristics
,
Aspen HYSYS Dynamics allows for accurate modelling of real
valves using various options:
Actuator Rate
- Instantaneous
- First Order (Actuator Time Constant)
- Linear (Actuator Linear Rate)
Stickiness Time Constant
Leaky Valves (Min value position)
Valve Operating Characteristics
F =K
F(x) /Mv K,", = 0"86C,
Pr '" v K
F F(x)=~
F(x)=- K\,S
Fmax
I "
"
- K. = Flow in m 3/h through a valve when 1'P = 1 bar
- K., = Maximum fiow in m 3/h through a valve when 1'P =1 bar
L1nearV~M'
~,;;~~Q-~ valve Characteristics
P,essure Drop. I 50 00 !<Pl
Pertem,ge O~en I IDD ao ¾
Vulume FIC1io' 502 !'i m3m
Va~ tyµe I t;ne;i,
' "+-----"'--~"--F---J
Percen@~• Open
sooa hf'a
1aDOU %
!
""0.4+--,'---,'---~----j
1:ql!ill Pen;entageVaO/e
f~r,~ Pi~isur~- · 10\lD l'.P;····
~re;sure Or,;,~ 50 OD ,Pa V.i!ve Perce~tage Open ('li,j
Perceniage Of)l'n IOO OD %
V~lorne FICJW 5tr.l il m~m
1/JIY~ ;,11e Equal Percentage
If!
©2015 Aspen Tech. All Rights Reserved. 4-3 Aspen Technology, Inc.
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Dynamic Details
Pipe
~::::""'~~·~•i;;;;;;;;;;;;;;:;;:~1-----......
Stream-1 Valve streJim-2 Stream-8
I
I
I Vessel Heat Loss Models
I
(r._oili
Tambient L_ __JiillB-
Integration Method
- Fully Implicit Euler integration method
• Has characteristics of being stable and fast
Integrator (2)
c::::::S =~4---------J
e,,.,1,,1 VLV-•rr~ Cf.o,0,,2
I "'
s., L ~
ua v,x.,o~
E-Learning Resources
~aspentech
\
Objective
This module examines some of the detailed Valve and Separator parameters available in
Aspen HYSYS Dynamics. These details include actuator characteristics, nozzle locations,
and heat loss options.
Starting with the dynamic module that you prepared in the previous two workshops, you
will add the necessary information to create a more accurate and detailed model.
Description
Aspen HYSYS Dynamics provides advanced features to your simulation and these
features allow you to put together very detailed models for operator training or detailed
dynamic studies.
Assume that our dynamic model simulates an actual hydrocarbon gathering and
separation process. When comparing our simulation with sample field data, various
valye observations are made:
• Valves on feeds (Alpha, Bravo, Charlie) go from fully open to closed in I minute. \
• Valve on Charlie is not responding instantly; use 5-second time constant.
Aspen HYSYS Dynamics has the ability to model each of the above observations.
Prior to entering the appropriate information, we will make a simple model consisting of
two identical valves with two identical controllers. These dummy valves will be used to
test out a variety of more detailed valve operating options in HYSYS Dynamics.
[
i
1*!.·
11il
I ,-I
l..c.!
Name VLV-104
Inlet
Outlet 2
Name VLV-105
1,1
Lil ,)
Inlet
Outlet
3
4
r--nl,
I i
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
a Enter a dynamic pressure specification for the inlet streams (1 & 3) of 445 kPa
(64.5 psia). Then enter a dynamic pressure specification on each outlet stream (2
& 4) of 101.3 kPa (14.7 psia).
Valve: VLV-104
l 1 - - --- ~ ---i-------- r--- - -- ,
! i----
: DeSJgnIRat1ng
---- 1 Worksheet
1
I Dynamics I
L_ - - __ ..L___ __ - - - - - -- - - - ------- - - - - - - - - - ---
I 1 Worksheet j Name 1 2
i Conditions !Pres5ure Spec Active G1 P'
'' Properties Pressure [kPa] 445.0 101.3
~ t-low ~p-ec Acuve
' I
II
IFlow Spee Bas; s
Molar Flow [kgmole/h]
Molar flow
0,0000
Molar flow
0.0000
Now you need to size the newly added valves. Go to the Rating I Sizing pages of VLV-
104 and VLV-105.
a In the upper right of the page, select the User Input radio button to size the valve.
Size the valves to handle 4536 kg/h (10,000 lb/h) flow with a 345 kPa (50 psi)
pressure drop and a valve opening of 50%.
Three radio buttons have been added that give you the option to choose the valve sizing
method, the differences are summarized below:
Manufacturer specific Let's you select a manufacturer-specific method from the Valve
methods Vapor Flow Models drop-down list.
Simple resistance This equation model treats the flow as always being
equation proportional to the square root of the pressure drop. No choking
is modelled. This equation is often used when a simple model
is desired, or if you want to calculate and update the equation
I constant. You can specify the k value for the Simple Resistance
equation method.
I
I
I
[6 .. .. ., ' ______ _, " 2s:o·-:
iKm 0.9000 i
1~~ [USGPM(60F,lp~i}]
Size Valve
_______ .l:~.~-J
_ _Ji
[J fgnor>!d:
'---------·
o Add two PID Controllers to the flowsheet. The PV's are the mass flow rates into
the valves and the OP's are the valves themselves. Provide identical controller
tunings and ranges according to the following table. Place the controllers in
Automatic mode.
Action Reverse
Range PV Minimum O kg/hr (0 lb/hr)
Range PV Maximum 8990 kg/hr (19800 lb/hr)
Mode Auto
SP 4536 kg/hr (10000 lb/hr)
Kc 0.25
Ti 0.10 minutes
Td
The Actuator page, located on the Dynamics tab of the Valve property view, allows you
to model detailed valve operational dynamics. This page also contains information
regarding the dynamic parameters of the valve and the percent open positions of the
actuator and the valve.
In reality, changes that occur in the actuator are not observed instantaneously in the
valve. Moreover, changes in the output signal of a controller (OP) do not instantaneously
translate to changes in the actuator. Since the actuator and valve are physical items, they
take time to move to their respective desired positions. This causes dynamic behavior in
real control valves.
-----nie valve mode defmes the reiahonshlp between the desired actuator poslUon·anclcurrent
actuator position. The desired actuator position can be set by a PID Controller or
Spreadsheet operation. A controller's output, (OP), for instance, is exported to the desired
actuator position. Depending on the valve mode, the current actuator position can behave
in one of the following three ways: instantaneously, with first order response, or linearly.
D Open the property view for VL V-105 and select the Dynamics I Actuator page.
o Change the mode to Linear and enter a rate of 0.01 %/sec for the Actuator
Linear Rate.
Valve:VLV0,105 .
Dynamics
i Specs (~Linea~
!' Pipe ·
i
000:00:1.00 j
i Holdup !
1
I
I I·----·-·-·····-·-··-·--·-·····--···········-
[J Actuator has Failed-
0.9500 I
CJ Setup a strip chart titled Valve Rate to monitor the Actuator Desired Position,
the Percentage Open for each of the two valves (VLV-104 and VLV-105), and
the Mass Flow of each of the two feed streams (1 and 3). When adding the strip
I chart, make sure the Logger Size is 3600 samples and the Sample Interval is 5
seconds.
Cl Display the Valve Rate strip chart and run the Integrator until the variables
stabilize.
I Note: Remember you can customize the strip chart from the Graph Control option in the
right click menu.
Cl Change the set points for FC-104 and FC-105 to 2250 kg/h (5000 lb/hr),
CJ Start the Integrator and observe the response.
I
I
I
·'(Now you will assume that VLV-105 as well as the valves on Alpha, Bravo, and Charlie
all go from fully open to fully closed in one minute.
o Change the Actuator Linear Rate ofVLV-105 to the desired 100% in 1 minute
(i.e. =l/60=1.667 %/sec) and change the set points for FIC-104 and FIC-105 to
4536 kg/h (10,000 lb/hr).
._ II~--D
, 1jSpecs
. .
~g~J~u~glw~~_;;;;rc,;;~;;;;~==---=----
-·:. [i ;--------------------
Dynamics
-
· Valve: VlV-105
. -
------=
--'---'------
F--~~~. ~~;
ti;."'-_"
Start the integrator, observe the response, and allow the system to stabilize.
m
! g
t., :Je,,:{)
·----------- ,r--- - -1
I I
i ·······+ """"'"""'""'!
11:1 ~ " - · · · 11
0 i
\_J_~~~
o
Minutes
In reality, the valves do not respond instantaneously to changes in the actuator. A first
order lag can be modeled as the response of the actual valve position to changes in the
actuator position. The Valve Stickiness Time constant allows you to specify the time
constant used to model the time offset caused by a sticky actuator. The offset can be
specified in the Dynamics I Actuator page in the Valve property view.
a Set up both VLV-104 and VL V-105 so that they are both operating in the Linear
mode with a rate of 1.667 %/sec.
CJ On VL V-105, return to the Dynamics I Actuator page and enter a time constant
of 20 sec on the Valve Stickiness cell.
,: I
j Design. Rating. ,I Worksheet] O.;namics
1
L------·~-------·-----
Dynamics Parameters .,..,,.,.,., ______ _
·
I Specs
·
1
l
Mode: 0 Instantaneous O First Order @ Linear !
I ... ...
I I
: Pipe-
IHoldup I
.
. I Actu1:1tor !
' ~ . . r.
..000,00'20.0011
Flow limits I
i Actuator Linear Rate [o/c./secondJ 1.6671
1
I i ,IStripchart I
; I
1
I
j
KValue Damp Factor
Change the set points for FIC-104 and FIC-105 to 2270 kg/h (5,000 lb/hr) and
I Cl
6800 kg/h (15,000 lb/hr) respectively.
CJ Return to the Valve Rate strip chart view and change the list of active variables to
only show the Actuator Current Position and Percentage Open of valves VLV-
104 and VLV-105.
~
~:,,el l~=;;:,;,J !~"i'·1
!
I
1
~=-- ~-:~~-v;,,;.:-=-·-::·_--- A~:,-~:=·~-·-::.·[I
VLV-1D4
\lalve·-Rate--
AduatorCurrentf'osrtto11 P!
i
II,
Ii[-:
I! ! VL'/-105 ActuatorCumnfPo,;.ttio11 PJ i lt·-
i! VLV- Hl4 Aduat-or DIBired Posltior1 rr-- Ii!i,
I fi
I]
11
VLV-105
VLV-104
Adua~orDesiredPositior,
Percentageopen
,.. ,
Pl
! ,
1
1]it'.
.,
1I VLV-105 F"~rcentageopen P: , if
,.,_' '~::::·.~--
vatVeRate ' . ~~ . ' . -~~---· -~
l
==-~ ·=+ =~~- _--:- _-_ 1-= -- ·::: --- ·r -=--=-= _-:·:=1= ~= '"1
-I J;
I
t'
I
I !
!I
,.,..,....___,1, I
----[-------- -- --1-. -- --- - --
I
- - -~ -- - - .- - . ---
I
I
J i-,
--1--- --
1
I,
__ J_I
I
--;;:"'"~"~'..,~ 1
,,_ fl
i
2,T0.0 2.!5.0
Minutes
I
l;....-_-- .: ,'· ~-.---, -~- ---~-·--~-~--
-1
___ ,,.....,J·
0 The valve on Charlie is not responding instantly (just like VLV-105), and
require_s__ ~ S~s_e~ot1d time _co11s!a!1t. lV1al(e __the desire4 change to ,V~,Y~l~.2 .
.tF:;<: -·· · -- · · :~.alve: VLV~102.- · ·
j[c,;;,,;rs:;,;,1;;;;;.-;,,..T0ycam~ I_
iJI _!,_ ' , ~ , . - , ~ . - ~ ~ ~. . --,·[ Mode: ----.-·,·=·",', ·············C'·..!······F···,·,·,··,····o····ro····,··,········· ·····(ij--_.;--c·--,-··.,··--·-,·-···· , ... ··•
Cl. -,-~---"'-"
l ii Holdup
1 i ; Actua.tor
! !'
1!i Flow Limit~!
i
'
!
rA~t~~·t~;--ii;;:;;·c~·~;;;,tr;~~~d;J·
I Valve Sticbnesa; Time Cor11tant [,e,:onds]
I Actuator Linesr R-ate [%/$econd]
I
·-----·-· ··000:oiii®--1
000:00:5.00
1.66-7
I
]
1I Ii Stripchart i I KValue _Damp_Fac_tor ·-·- ···------------"'·--- ~:-~-~~~--J
\ Ji_ [ E:J Actuator has Failed ti V~\ve h~s Worn fom
1!!
Leaky valves can be modeled by specifying a non-zero value for the minimum valve
position.
[I
IJ Remove the valve stickiness time constant for VLV-105 and change the set points
of both flow controllers (FIC-104 and FIC-105) back to 4536 kg/h (10,000
lb/hr), and run the integrator until the variables become steady.
o Enter 2% for the minimum valve position for valve VLV-105 on the Dynamics I
Actuator page.
IP Valve: VLV-105
:0=--~,,-]~Ra~_-,o-~ IWork_sh~ J Dyn:m1c;: - - ~ - - - - - - ~ _ - - : ~ - - - ~ - ~
I Dynamics
Ii Actuator
Flow Limits!
1 !.4ctuator Linear Rate [%/sc1:or,d] 1 667 I
i !KValue Damp- Factor
D [
I
'
]i
f II Stripchart
I
I
!'.'] Actuator h..s Failed
i Posttioes
[] Val1<e h~• Wom Trim
]i
E
I Fail Position: (> Fail Open G Fail Shut 0 fai1 Hold
ii '
!I I I, Valve :(._ Mi_n
2
:o{l ~::O.~- C~~:~ ' Desired___
99
""""Qfu~_:., ~_1 j 1
:,·.' I .L Actuator ____ 0.00 - 100.00 74.99 74.'19 _J1 Ij 1'
I:
(I
--=J____ ---- --- - ---- - - ---- ----- Ii,.
---------·----------·-J l'
LJ 19 no-red t'
~--l:
o Change the set points for FIC-104 and FIC-105 to a small number such as 135
kg/h (300 lb/hr),
a Set up the strip chart to show the Percentage Open of each valve and Mass Flow
of each inlet. Run the Integrator and observe the response in the Valve Rate strip
chart.
D What is the resulting flow through VLV-105? Is it 135 kg/hr?
,, D Make the appropriate change to VLV-101 on the Bravo line, to account for a 2%
IL.JI leak.
o Save the case as 03-Valve4.hsc
We define the inherent flow characteristic of a valve f(?C) as the relation between the tap
position, x, and the product flow rate that flows through it as a fraction to the maximum
flow rate when the pressure drop, ~P, in the valve is constant.
Q=C, f(x) gf
v--;,-
F A
f(x)=-=-
FmW<. AmaK
P L = specific density of the low viscosity liquid
p(lb/ft')
P, = 62.4
Cv = flow of water at 60° F in US Gallons per minute (USGPM) that goes through a
control valves when the LiP = 1 psi and f(x) is equal to unity (100% open).
Q(USGPM) = C, -1-l(~si)
Kvs = maximum flow in rn.3/h that flows through a valve when the Af> = 1 bar.
K v = flow in m3/h that flows through a valve when the LiP = I bar.
K,,=0.86C,
K, = f(x)K,,
The most frequently encountered valves in terms of operating characteristics are Linear,
Equal Percentage, and Quick Opening. The first two are the most popular in control
systems. Aspen HYSYS Dynamics implements all three.
o Define stream 1 as a pure water stream at 15.6 °C (60 'F) and 108.2 kPa (15.7
psia).
D Enter a Cv for VLV-104 of 1 USGPM. Continue to use the Universal Gas Sizing
rnethod and keep the valve type as Linear.
i1
I!
I 11 c~ [USGPM(60F.1psill
[Cg- -··------------~ 251)~
25,0
1.000
Ii
I :J
!1
I - .. - ---- - - - - - - - - - - - - - - - - - - -
r_ lgno~~I
-
Ii ·i
• i
I
~-_-c_c_c_--------------------------------"----------,-..-----.------ • •
I o Tum off the FIC-104 controller by setting its mode to Off.
I
I
D Add a Transfer Function operation from the Palette. A Transfer Function block
I is a logical operation which takes a specified input, and applies the chosen
transfer function to produce an output. A typical use of the Transfer Function is to
apply disturbances to a process, in this case we will ask the VLV-104 to be fully
open in certain period of time.
---~: Pa_1etfu-:' _.:._. . .::i;r:ai!III
%~c~J:,,}I
common; eoiumrts: 't I
~=m1 Dy~::: 1I
•1~1fol~
1
I ~~1rooJw1
Gii!_&il}J~I
©2015 AspenTech. All Rights Reserved. 4- 20 Aspen Technology, Inc.
\
!]Ii Ca~~edi~~~
Mame
T~;;;~\~iE~!~=~~I~~i=~~~~i1.
rRr:1 .......... · . .
,. ,. . "......,. .,.,_,_____,____,"" "'"' ' '_, ,. , ., , , . .,. , ,., ., , , , ,lj.1:
jl !i,
I!i! :·P,o,:essVari~bleScurce(Oplic~.,si) ···························--------
,- ;;·-·.·;c;--·- II;j
11 PV Obj~,~ i i -~"'ct ~v... , !f
'' ,----·-·---·-- -- ---------------·---· p
•1! Vacaabl~: '.:.::::::::::::::::::::-.:::::c:::" ij'.
I ,--- ____ .I
i;
1.-.-
I'i
1 l """"Eq~~n Help., .. ] I
1/ati•bi.e,
I
If:
11 -- ..------------------ d'
1!
1!
illt
I'',:· jl.
i!;
i •••••••••••••••••••••••••
! I( t
!- [~,~:-~~~:-~-~~.1 __,. -- s~~~~~~~~~? ---~~G(•Jf:~d ___ Jj
0 On the Parameters I Configuration page, define 0% and 100% as minimum and
maximum values respectively for both the PV and OP Ranges, and enter Oas the
iJfi
l'V. ------------------ ----
. }!.1£~,:
·--'-'==~---=~-~~.c-C..C::.CC'-
!. j [. C?nnectia.ns J Pa;.emeters I. 5tripchart I.user _Va~~bles J
Cl-1 111
f
u Paramet-ero; --0peratiorial Parameters ···""]
'1,·1 ("C~~fi;~;;t;o;] i IPv 1
0.0000 JI I 111
'11
f. j I Integrator [ iOP , .........<empty:,,.) iI 111
! ii Lag
1.
·i Delay
)
I
I Output Variable Type i)
IH
l_. rj 1 l!PVOffset(½ofPVS.pan) 0.00% ] j 1··'
\_
j: I
: Lead
2nd Ord-er
' i!_op Ofuet (%. ct OP Span) ----~-------·-----~ 0.00 % _j i :l,J
;· I Ramp.
fi I Rate Limiter
1
I
Reset out of range PV 11a!ue usir,g -;pedfied nmge [CJ I
111
!I
Cokl ir:it OP <empty> Ii!
,II
i,,I·
i'1:•.1·.1.;.;
! ·\
!!'
11!
! ./
D On the Parameters I Ramp page, check Ramp as the Active Transfer Function.
D Enter 100% for Ramp Magnitude and 10 minutes for the Ramp Duration.
TRF-1
~ l[~i~E:t:!T·p~;: : ;~;~~s!~~!~~ .
11, .,
··"··"····"···········,
···1,
I:
ifil Ji; CMfiguration
1. i Integrator
i':J Integrator Ll t.ag 1 L:'.:l Lead 1 I' '
1, '
1 !! Lag
i'
Delay
I '
''
t::I Delay Cl Lag 2
!I
I
i!
Lead
lr,d Order
ii [) 2nd Order !!J Rate Limiter
_____ I
! '
i! Ramp
l i Rate Lim;ter ...•....•.•.•...,. .,... ,. ............. ...-...,_
:1 ,. .,.,
100.000%
ii
1
Ramp Magr,ilude [%1
R.;mp Duration
100.00%]
10.00 minute:'.
I
il , _ urrent set·---------------···--- 0.000 ~ !:
i
!11
i':,1
I,
1:I !'
1,I , _ Resei Ramp l f ·;
I
I
ll
I
I I
i !i
I. _" ____J"-
I CJ Add a Strip Chart to follow the VLV-1041 Percentage Open and the stream 11
Std Ideal Liq Vol Flow, For this new strip chart, use a Logger Size of 3600
samples and an Interval of 5 seconds.
I Strip Chart Name Logger Size(# Samples) Sample Interval
''°"'
HP S.eparator
Valve Rate
...
3600
,
3600
000:00-.20.00
000:00-20.00
~5.00
VLV-104 3600 000:00:5.00
VLV-101'
rr·,."""l----···1-- -,
:
;!
'•
r
'•
S<-'t up J Hlrtorical
.·"·c~""".--c"c""C"'""
Current I
I
II
i I VLV-104 P-ercent.age open r,;i; iI
!"
j t
~
I
0 Display the new strip chart and also have the Transfer Function window up and
active alongside it.
0 Press the Run button to run the integrator and press the Start Ramp button
within the Transfer Function's Parameters I Ramp page.
0 Once the flow has stabilized, press the Reset Ramp button in the Transfer
Function window to reset the VLV-104 percentage open to 0%.
0 Stop the_integrator. Y()ur strip c~art ~ho_uld show something_like this:
. . . • 1/LV-104 n ...
!f;.',
' ~ ... ' .. ,',, ·1:
i . ,,.,[L -r 1
- 1· I ,
Opions
Flew limits!
1
>- u,.,r , • Te
L...... - - - - - - - - - - - - -
o Re-start the integrator, start the ramp, and track the response via your strip chart.
Once it stabilizes reset the ramp and stop the integrator after the flow returns to 0
kg/hr.
o Repeat this procedure one last time. In this case, VL V-104 will be set as a Quick
Opening type valve.
i--fu-,,-,~-----j
iN
Ii
illol~mphlag~rtude- 1
100.000%
i
!Ii
I
/jIi i
r Ramp I Magnitude [%1
lRamp Oural'<m
100.00 %
I
10.00 mlnut.,.
11! 1 1
~~ent0!'.:~ __ ___ _ _ _ 0000%
Cl After running each of the three scenarios, you should get a plot similar to the
figure below corresponding to each type of valve:
I
- - ·- -~-~--,----~-1 Quick Opening0--- ·1
I
N
I h
-~, '"' -r:,=:rt-' Equal % l_ - -f ~ -_JI 1:
'~ II II I i
1"'"'. I --· -1·---------1
~
II
~ ., 't---- ~-- ------- 1- -- -I ~- --- ~--1 Ii
Ja "'" [I --~ ---·- - -- -- I
I I
1•.·.
J
~--)~.'--.l.....+-----1,,.----....... !
~---...JJ'---L-i-----.J-...,o.~Jl! (r:i:Y
F
i
:40.o e-oo.~ -"-&::.D c00_;;i ei20.o ,;io.o j:
Minutes ]·
~,. I
By default, static head is not included in any calculation. Inspecting pressures around the
high-pressure separator, HP Sep, should reveal that they are all equal.
For any unit operations with hold-up, Aspen HYSYS Dynamics can calculate the static
head by considering the equipment hold-up, geometry, and elevation of any attached
nozzles. In order for Aspen HYSYS Dynamics to calculate the static head for any unit
operation, these calculations must be enabled. This is done on the Options page of the
Integrator property view.
o From the Dynamics tab of the Ribbon, select the Integrator button.
r-~:~I: ~l Ibi~
i 1 •••
lnteg~tor
Real Time
I ~ li-l o
' i ;
Dynamic Initialization
~ Eve:nt Sch~duler
L Dynamlts !j Dynamic.
1 Motte
1
! Reset i :t:( Snap,hot Manag-er
As5istant ,
R.un f Stop 1 -~
a1
!i
; ~ --=-l---~---l~tegrator-- - -~-~- ~
'T
i ----,- I
l 1u;;;;qyx;~utto~l Options I H~ti~~l --~ II
fln
)-; I ~---- ----------- I
11
fj I Auto.ad.apt recycle rate of F,eat exchangers r 1
I i. l
o Run the integrator and observe the slight changes in the controller outputs. Look
at the pressures surrounding the HP Sep vessel.
CI What is the pressure of HP Yap? How about HP Liq?
a Stop the integrator before continuing.
By default, all unit operations are placed on the ground, and for most simulations, this is
acceptable. The Rating I Nozzles page of a unit operation contains information regarding
the elevation and diameter of the nozzles for process equipment.
The elevation of each nozzle attached to the equipment is displayed relative to several
reference points:
• The Growid is a common reference point from which all equipment
elevations are measured.
• The Base is defined as the bottom of the piece of equipment.
I o Add a Strip Chart called HP Sep Study. Set up the strip chart for a Logger Size
of 3600, and a Sample Interval of 5 sec.
Cl Edit the strip chart and include the following variables:
I
I
I Cl
CJ
Display the strip chart and press the Run button to run the integrator to see the
current steady state values.
Change the nozzle elevation (% of height) via the Rating I Nozzles page of HP
Sep for the stream HP Liq from 0% to 25% in the Nozzle Parameters section.
1
; L-ea,elhp; , Di~m,sler 4.76'1m Height(1.e~gtn 7./45 '"
I [ Option, !
ii c.o,,~, s~tup I
11 C.0-..-er R~sults i ,· N,nzle Param~e,~ · ······· ··· ····- - - · -··········· · • - ·- ···············•····
!,I :, .! r··-
To Sep 1-iPV~p HP L!Q
iI'I : I Diameter[m] 0.3S7J V.3"51J 1)3573
I!
i,
Sep.irator: HP Sep
Siz.i,-,9 n.oooom
Nonles
Hea:tl:>ss
Level Ta;}, H•ight/L1"ng1h 7. /46 m
Options
C.C-wrSe'.up
C.Ovtr R1'suits
i
j Diameter !m)
] Ele,31.cro (Base) [m]
i E!nalion (Ground) [en]
iEleva\ion [o/, of Heighl) i¾)
L_
I"'
ii'
1::;
I10>
,,,+-- -----+---- -- --------+------,#/<------- --,--------------- - ,!---,
Oil liquid phase
il-
~ iX
,,oo
Minutes
------------'"'"·
o Save the case as 03-VesselDyn.hsc,
o After experimenting, move the nozzle location back to the original setting (0%)
and then change the SP for the LC-HP Sep controller back to 50%.
Jf _Sep.-_
Workshops
.-. u..-i
"'
~r~.~~.n• ;~U~~. i_w~rk•h·e~i . f~-mK,·1
Si;ipil_riitpt:
.~~--~~~~~- -·-:
Ii
i
I Diamerar [ml
i Elevalron (B.ise) [ml
·1 Elevation (Grc~nd) [ml
,_Elevation_ (¾_of Kei:3ht} [%] __ _
D
Cl Run the integrator until stabilized results are seen on the HP Sep Study strip chart.
D
li l
The separator unit operations in Aspen HYSYS Dynamics also have the ability to account
for heat loss/gain based on environmental conditions. For example, you can supply
details about the equipment and insulation to take into account heat transfer from the
vessel to the environment.
Heat loss calculations are invoked under the Rating I Heat Loss page of the vessel. You
can choose to neglect the heat loss calculation in the energy balance by selecting the
None radio button. There are two heat loss models available: Simple and Detailed.
The Simple model allows you to either specify the heat loss directly or have the heat loss
calculated from the following variables:
• Overall heat transfer coefficient, U, is specified by the user
Ambient Temperature, Tarnb, is specified by the user
• Heat transfer area, A, is calculated by Aspen HYSYS Dynamics
• Fluid temperature, Tf, is calculated by Aspen HYSYS Dynamics
The heat loss is calculated using the following equation:
q,~, =UA(Tf-Temb)
In the detailed model, the user supplies both conductive and convective information.
Aspen HYSYS Dynamics calculates the heat loss and supplies a temperature profile from
the fluid to the ambient environment.
o Contmumg from the prev10us exercise, open the property view winOOw for-·tne
HP Sep and view the Rating I Heat Loss page.
o Click the Detailed radio button to activate the Detailed heat transfer model.
o Select the Conduction radio button and enter the following data:
Separator: HP Sep
-·------~--"-'--
[~;ig-~TR~~~;·-r Rating lWor~h~tI°'ftla~ic~.]
I ...... .
I, Rating - Heat los; Model (dyoamin only) -
1
! () NOile
di [J Apply Duty Stream to Outside Wall
i ! Slzing C) Simple
?i Detailed ........ LJ JISJJI j£,jb£!£Qdbk
!1 f'foi!les
i Heat loss :'·Detailed Heat Loss Parameter.>-,-----.. ----·-- -- - -- ----····--· ·;
L i ,) Ttrnperature Profile ·-iii Conduction ,.. ,) Convection
"!i Option;_ I
I! CO'ler Setup ,
I
! Overall Heat Los; 0,0000 k!/h Area 107,0 m2
ii COver Rewlts
!>
!
'i.1 II
,. Co11ductlve Properties
111 ! 1 ,=-------· --··------
Metal Insulation
.
l1 I Thickness lm]
,.........................,'..·,',,,),.,'· l o.ruo I
'I I
Cp lki/kg-CJ 0.8200 'j
II I Density [kg/rn3J
Conductivity iW/m·KJ .... _
78D1 ii
..........,. 45.00
11
520.0
J. -.-·-------·- 0. 7500_.J
11
II
L~::::::-
... ----- .:::i ---------- ____________ .J
[_._ ·"""'- l K'.'.:] lgnored
Cl Now select the Convection radio button to reveal those input fields and enter the
following data. Close the window after data entry is completed.
iiiiI C.Over
!
. - Results: lI i
!
I
r
OverallHeatLo;s O.OOOOkJ;'h
j!! '
jli 1···---·-·-··--··-··-·-··--·-·-·-··-......... _._, __ .,................_..,
i Inside Vap Phase Heat Loss U [!<J/h-m2-C] 36.00 I
··-·-,
,, . .-----· ·- .. J
r··- .·-·-····~-------
111'
Eslimi'te Coefficient... Usmg Currant Condi:1orrsc
Iii !
itii-~~]' [J Update wt,i/e lntegr~ting
Note: If you are unsure of the convective heat transfer coefficients, click the Estimate
Coefficients Using Current Conditions button. This will give you a reasonable starting
point to begin the heat loss calculations.
o The ambient temperature is set via _the integrator settings. Open the Integrator
window and select the Heat Loss page. Enter a value of7.2 'C (45 "F).
@IN
'"':ii
.. _. .ii
..~
H.ome
I-~ [ [iylJ h(!) Integrator [I,
!;·.-. -," ,
: ;[; Realnme
· 1'
Economics
D Return to the Rating I Heat Loss page of the HP Sep unit. Click the
Temperature Profile radio button and then click the Initialize Temperatures
button.
o Run the integrator and observe the system performance.
Observe the vessel temperatures on the Rating I Heat Loss page. Are there any
significant changes? Does it go to a steady set of temperatures?
o Try adjusting the ambient temperature to what effect it has on the system.
o Save your case as 03~HeatLoss.hsc.
HYSYS solves all equations using the fully implicit Euler integration method. On the
Integrator window, various integration parameters can be specified.
For most of the simulations a time step of 0.5 seconds is good enough, although it is
always better to start the simulations with smaller values (like 0.1 or 0.05) and increase
the step-size progressively until 0.5 (or higher values) taking always into account the
dynamic nature of the process to simulate.
Columns with a small residence time (ie, high reflux rates) need special attention. The
residence time needs to be calculated for every tray as the "bulk liquid volume" on the
tray (TraySection\Dynamic\Holdup) divided by the internal reflux
(TraySection\Perfonnance\Flow\Actual "LtoBelow") and converted to seconds. This
number will be important to know , since it will determine our maximum step size.
I In order to reproduce with enough rigor the dynamic transitions inside the column, 4 flash
calculations per tray residence time needs to be assured. This can be written with the
formula:
where CFC_Rate is the execution rate for the "Composition filld Flash Calculation"
I solver layer.
For example, a distillation column with a resi~ence time of 8 seconds can use a step size
of O.!seconds and a CFC_Rate of 10 ( 0.1 •i-0*4~ (wfoch is lower than 8) or cao use a
I step size of 1 second and a CFC_Rate of 1 ( 1* 1*4= 4, which is lower than 8). But can't
use a step size of 0.5 seconds and a CFC_Rate of 10 ( 0.5* 10*4- 20, which is higher than
8) because it will produce not realistic dynamic responses.
I
©2015 AspenTech. All Rights Reserved. 4- 32 Aspen Technology, Inc.
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
· Integrator
r Units
Current Time I '
minutes
Zt01 775
Acceleration . 1.0 j-)
-~:~1~:;___ _ __ r,'"_
0
:
s0
' '.> I I]
1
1 I ~::'::];:::~:
-
=-~==-==- ----~:i:i I
I:
--------------------------------- ------- -------- --- _____ , j 1'.
!I- fntegrat,on Step ··-·--·-·-·-·-·--·--I !i: ·,
I
I ' 1··- - --- - - - --···-"·-----------·--·--·---------·------ 1 ! 1 1' "
j· 1 [ Units -'>et:onds I i .
J !! I Step Size ___________________ 0.50000 i : 1 !
1' I
I 11
1
~·······c=~~·1=r;.. '.Jj
Execution
HYSYS Dynamics use a fix-size time-step solver with parameterized execution rates for
the 4 sub-layers of equations categories:
After V8 .8 the integrator has been enhanced to give users more control. By checking the
option "Skip flash if flow is less than" the integrator lets you skip flash calculations if the
flowrate is below a certain threshold. Using this option you can improve convergence
time and mitigate errors associated with low flows. Remember that by default, the
threshold is l.6e-6 kmole/s but now you can input any positive value less than the default.
Integrator
~e:u-;;;-;;1c;pt1on;1H--;at
1-=>
I;~
'--=- __ J_c_ - --~- ------------------ -,
I I
Calculation Execlrt1on Rates: - ----- -- - 1
~J;i
B1 Ii E><ecut,on ,ates a, pee mtegeotor t,mestep, I
I [ i Press1.Jre Flow Solver ------ - - - - ~ [
i1~
I I
,,' -- -- ---- - - -
1
Options
I
i
[i'!. !E~·~bi~ s~tic he~d ·~o~·tribi.lti~~s· -
Rigorous non equilibrium mi.:.:ed prop1:-rties
I Model choking of liquid inside the valve
-17
P'
r
IUse impli,:it check valve model P'
• Truncate large volume tntegr<1tion errors P'
1 Reduce recycle efficiency for small time.steps. r
I Clase component material and -energy balances. r
I
cI i'.i.uto.adapt
______ r.ecycle - -of-heat
- -rate - -exchanger,;.
--
r
• Activate the Enable static head contributions checkbox if you want HYSYS to
calculate the static head for unit operations with holdup, considering the
equipment holdup, the geometry, and elevation of any attached nozzles.
1. Press Shift+O to display the elevation of each nozzle on the flow sheet.
2. The elevation options are available on Dynamics Tab 11 Holdup page 11
Advanced button and Nozzle tab of each unit operation.
• Activate the Model choking of liquid inside the valve checkbox to model
choked flow.
• Activate the Use implicit check valve model checkbox to avoid delays in the
opening and closing of check valves.
! Note: You have the option of specifying the composition and energy balance exeCUtion 1
I rates per integration time step for individual dynamic unit operations. In order to 1
I specify individual execution rates for different 1U1it operations, it is necessary to add a
I n.~~ Dynamic Equipment Ops tab_.!..~_the W~rkbo~~----- -~--------·;
I
I
I Lesson Objectives
~ Vap E-100
HotVap ~ap
VLV-104 out
Hint: It is best to save the case file after each successful unit
operation added
On-Off Controller
I
:i
.. if
'
D
1i :<'_____ ~
I"
·..·,. ·., r
,1,i,
control on a three-phase
separator
- ;ooo_,,.- '
- Pressure control in a reactor ,__ ,_,>=
by controlling both inflow and ---- -------"{;,,,':
i i
t.J outflow 111<1:
--'"-"''" ""'=""'l;s.','."'
rm,, ... ;,.,, • .,
Cl
u
I ,
Relief Valve
'"''"""""''"c,
,..,,,.,,,.,...~"'"'
.-:~ fu ; :;:.,
~
I
I ®aspenkch ©101SAwenTo,chnol09y,11u::Allrl!)h(sN!served I 9 i§9NE
I
I
I
@aspentech
I
I Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
I Description
A Knockout Drum and a three-phase Low Pressure Separator must be added downstream
of the High Pressure Separator in your existing dynamic model. The control system will
I also be modified with PIO, On/Off, and Split Range controllers. Furthermore, a pressure
relief valve will be added to the simulation.
I There are several ways to add equipment. Some users prefer switching the model back to
steady state, making the changes, and then switching back to dynamics. Others prefer
adding the equipment directly to the dynamic model. Aspen HYSYS Dynamics supports
either method. In this workshop, the unit operations will be added while in HYSYS
I Dynamics, which is often the most straightforward approach provided you accmmt for all
the dynamic inputs.
I •
•
Task l - Modify Existing Controls and Add Knockout
Task 2 - Adding the LP Separator
• Task 3 -Fail Open Valve
• Task 4 - Split Range Controller
• Task 5 -Add a Relief Valve
I
I
©2015 AspenTech. All Rights Reserved. 5-6 Aspen Technology, Inc.
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
PIPE.too
Q.JliJ)ha
Bravo
Before adding a Knockout Drum, we are going to change the pressure control scheme for
the HP Separator. A control valve will be placed on the HotVap line.
D Add a Valve to the flowsheet. The inlet stream is HotVap and the product stream
is HotVap Out. Name the valve Knockout Valve.
o Access the Rating I Sizing page for the valve
o For the Sizing lVletbod select the Mannfactiuer specific methods
o On the drop down for Valve Vapor Flow Models choose Universal Gas sizing.
o Then size the valve based on a 68.95 kPa (10 psi)
fc1 2"5.0
1 . Workshops
.
Note: The Dynamics Assistant will initially appear, but do not use it. Click the No option
for the Dynamics Assistant as it is merely pointing out that the new boundary stream does
not have a dynamic specification. The problem still has the correct number of defined
and undefined parameters, just not the way the Dynamics Assistant wants! We will
address this concern momentarily.
CJ Now we will move the P/F specs to the new boundary stream. From the
Worksheet I PF Specs page of the Knockout Valve move the active pressure
specification from the stream HotVap to HotVap Out by deselecting the pressure
spec for HotVap and selecting the box for HotVap Out.
r
6379
1
Flow Spec Basis Molar Flow Molar Flow
Molar Flow [kgmole/h] 2.853e+004 2.853e+004
Mass Flow [kg/h] 6.054e+005 !WS4e+OOS
1 I !Std lde21l liq Vol Flow [m3/hI 1686 161!6
1
CJ Place FC-Alpha in Auto either by making the change in the controller Face Plate,
or on the Parameters I Configuration page.
CJ What should be the action type of the pressure controller? Choose the action type
of the pressure controller, PC-HPSep, to be direct.
1 0 9
.
AMuCtot u,:e,· r"- I ~.,~---·--~------~ I
o Change the controller set point to test if the model is still stable and re-set the
pressure controller to its original SP when finished.
o Save your case as 04-ExpandModell.hsc.
A Vertical Separator W1it operation will be used as the Knockout Drum. The cooled
overhead stream HotVapOut will be the feed for the separator unit.
o Make sure the integrator is off and add a Separator, then provide the following
information:
o By adding the Separator you have created a new boundary stream. Supply a
dynamic Molar Flow specification for stream KO Liq. Check the current flow
rate of liquid into the Knockout Drum to estimate a value for the liquid flow
spec.
o What is the total liquid flow (i.e. liquid+ aqueous) into the Knockout Drum?
rw-:~"~~tT~i~~-~:iili~;;;-i_ _
Wo,kshet!I is;~~mi-l~m,. HotVJpOul Vapcur Phase Aqueou, Phase ::n
Ccmdi.tion, ······• 'Vapou, / Ph8<e F1ac'bo~
0ropert,.., : j Temp~ralur .. JC)
i
G.9~95
2~.S7 o;: ~ o;: ~ o:~ !I
I r~~:~:F=~y: l~~:'i~~l::iol,./h]
Comp<i<ition
User Variable<
: Prem,r,. i<P~)
1
!Std !deal Uq Voi Flow [m31h]
6"379
2.253a---OC\4
6.054a+OIJS
1686
6379-----"""'"'-----''~"~'--li11
2.76<ie•0041
5.62~•-005
1614
711l.1
·--~'~·""=·~·'~"~----,'~"~'~.
@.ao I:
16M
2.oos
I'
Note,; ] Molar fothalpy [kJ/kgmolej -0.909,-0a.! -8.639 .. -0()4 -1.497e•005 -2.362e•005 Ii
Co,t Parameter:; : 1 Mclar fot,-opy [1,Jllcsmol .. -C] 148A 14g_5 127 z 53.64 1!
I
No,.,,,_.,i;zed Yie!d;: j 1-1 .. , Flow /kl/hj ·2.3S9H009 . 1.063~-ooo "4.606e~007 '11,,
ct Run the Integrator. Say NO dynamic assistant. Run it for a second or two to
propagate the calculated data to the boundary streams.
I Cl Move the dynamic pressure specification from stream HotVap Out to the
boundary stream KO Vap, using the value calculated in the previous step.
I,
6376
Flow Spec Active
IPF Specs
I Flow Spec Basis
Molar Flow [kgmole/h]
Ma3s Flow [k.g/hJ
Molar Flor
2.853e+OC
6.G54e+OOS
Molar Flow
871.0
4.559e+004
Molar flow
2.753e+004
5.558e+005
IStd Ideal Liq Val Fkiw [m3/h}
1 1686 74.89 1601
I I I
Based upon previous P/F rules, there should be a resistance device on both of the
Knockout Drum product streams, and pressure specs should be used, as they are both
boundary streams.
When a pressure spec is given to the exit stream of a vessel, then that stream will do
whatever is required to maintain the vessel pressure. The exit stream will either let
flow out of the vessel or let flow into the vessel (negative flow). For this reason, all
boundary product streams have what is called a Product Block.
The product block sets the conditions of the stream ifthere is negative flow. By default, it
I has the same composition as the vessel, but you can make the appropriate changes (for
example, N2 or CH4 for atmosphere or fuel gas blankets).
'Jill
:'.]
,-.--,
\
o To open the Product Block property view for the KO Vap stream, click on the
Product Block button located on the Dynamics I Specs page of the boundary
stream property view.
1· .. Molar Flow
0 Enthalpy <empty>
These types of specs are often used when it is desired to simplify problems, but they can
lead to some strange results. While they help us simplify a problem, we often want to
eliminate these specifications whenever possible.
A Compressor unit operation will be added to the flowsheet to increase the pressure of
the KO Vap stream in the next module. For the KO Liq stream, a valve will be added to
the flowsheet. This valve allows manipulation of the liquid flow from the vessel, and it
will be the control valve for the vessel level controller.
I Product
o The stream To LP Separator wilJ have the same pressure value as stream HP
To LP Separator
I Liql (2689 kPa, 390 psia). Enter it in as a dynamic specification and remove the
dynamic flow specification from KO Liq.
·!!>!• il~!viftP~~t<!rvaive:cs
:l ·f~D~ig~·-j.~tj~g· Worksheet llM~a~;-)
II
Worksheet
Conditions I
Name
Pressure Spec Active
r KO Liq To LP ~epacato, l
i
I Properties
j;;;;::tine 11
Pressure [kPa1
Flow Spec Active
Flmv Spec Basis
r
Molar:~~
• r
Mola~,~~:
2689 I
I
I I
I ,
I
IMass Flow [kg/hl
!std Ideal liq Vol Flow [m3/hl
4.559e+004-
74.89
0.0000
0.0000
Ii irl
•,'1' 1 , I
1 1
Simple re~irtance equation .II
ii'I
.. /
!
I ic,· 2s.ol
1
1
I!
,II
;
i r..-----
r ~ Si~eValve
1
:Km
!Cv[USGPM(60F,1psi)] 21.25
1
0.9iXJO I ij
11
\cg ____________"·-"·- ·-·~!g~_J 11-.,i
1,1'
1
1' irl!1,1
I
I c:· ~.,.:. :·j ' .._,_JI
·(._'_1_,,_,_
Next, you will add a level controller, called LC-KO Drum, in order to maintain the
level of the Knockout Drum. However this will be added in a rather unique way.
o Navigate to the Dynaniics I Specs page of the Knockout Drum and click the
Add/Configure Level Controller button.
---------
~oooo [:;::-' I
____ ,, ......,.,_,, .•..• _, ______ 6376 _ .... ~ .,..• J
o Double-click on the resulting PID Controller on the flowsheet and rename it LC-
KO Drum.
o Add a Face Plate for the controller and set the SP equal to 50%.
a Run the integrator. Once at steady-state conditions, what is the Valve Percent
Opening?
I0
I]
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling
In this section, we will add the three-phase separator. The inlets are the two liquid
Workshops
streams, HP Liql and To LP Separator, and the vessel size is identical to the High
Pressure Separator.
'It]
w
Name LP Separator
D Feed 1
Feed 2
Vapor Outlet
HPLiq1
To LP Separator
LPVap
~
Light Liquid Outlet LP Liq
Heavy Liquid Outlet Waste Water
Rating,
CJ Now you need to move the dynamic P-F specifications to the new boundary
Li streams. Supply a Pressure Specification for stream LP Vap. Use the same
value that is in place on the HP Liql and To LP Separator streams.
rJ o
Cl
Uncheck the dynamic pressure specifications on HP Liq 1 and To LP Separator.
Add dynamic Molar Flow Rate specifications for streams LP Liq and Waste
Water. What values should you use for the specs? How much liquid is going
(11 into the separator? Base your specs on the To LP Separator and HP Liql streams!
~i
~u
-3 r,11~· Sej:):'arato~·i_p:·SePa~toi"'
~---- ----------~
~J
e
1,,,
l~~-~~-~_;iJ#.:i;i~~I~~:~:~iTW~~~-;~-~tT~.~~iil
1
! Work,;;heet r,.,_,.. . . . . . . . . . . ,.,-.................................-..
ij Conditions !Pressur~SpecActive
To lP Sep~raror
r
HP L1q1
r
LP Liq
r r
..........
· 11
,
li11
',_., !
\
liquid level in the LP Separator. We do not want this liquid level to reach 100%
once the integrator runs.
o Run the integrator and run for a few moments. If prompted for changes by the
Dynamics Assistant just ignore for now.
o Does the system stabilize? What happens to the liquid level in the LP Separator?
The LP Separator requires controllers to stabilize the process. Three controllers are going
to be added. We will add one PID controller for the vessel pressure, another for the light
liquid level on the LP Separator, and a Digital Point ( on-ofi) controller for the waste
water outlet.
o Add a Valve to the LP Vap stream. Name it LP Pressure Valve and name the
outlet stream LP Vap-1.
Cl Set the dynamic pressure specification for LP Vap-1 at 1379 kPa (200 psia).
Remove the dynamic pressure spec for LP Vap.
o Go to the Rating I Sizing page of the LP Pressure Valve and size the valve.
Name LP Sep-PC
Process Variable Source LP Separator, Vessel Pressure
Output Target Object LP Pressure Valve, Actuator Desired Position
Action Direct
PV Minimum 1379 kPa (200 psia)
PV Maximum 3103 kPa (450 psia)
Mode Auto
Kc 3
Ti 2 minutes
SP 2690 kPa (390 psia)
Name LP Sep-LC
Process Variable Source LP Separator, Liquid Percent Level
Output Target Object LP Level Valve. Actuator Desired Position
",;,,. . :.<<> - " . -: .- ..
'
Fan1i~~·~~tCo·~figLi~tf9~:.·-
.. "
•"' ·,' ·. ' " .
.•.....··.··· ·.... :·:-_. .- '"
Action Direct
PV Minimum 0%
PVMaximum 100%
Mode Auto
Kc 2
Ti 10 minutes
SP 65%
For safety reasons, the water/aqueous phase level cannot be over 1.98 meters (6.5 ft) or
under 0.45 m (1.5 ft). An On-Off Controller will fully open a control valve when the level
is higher than 6.5 ft and it will fully close the valve when the level is lower than 1.5 ft.
o Add a Valve to the Waste Water stream. Name it LP Waste Valve and name the
outlet stream as Waste Water-1.
o Set the dynamic pressure specification for Waste Water-I at 1379 kPa (200
psia). Remove the dynamic flow rate spec for Waste Water.
o Go to the Rating I S1zmg page of the LP Waste ~alve and size the valve:- --
i
''
];
'
! i
Cl Run the Integrator for a few moments and let the model stabilize.
Add a Digital Control Point operation from the Dynamics tab of the Palette.
I
Cl
This will represent the On-Off Controller for the aqueous liquid level.
I
o If the aqueous liquid level is above the maximum. level (i.e. 6.5 ft), the desired
I actuator position is 100%. Double-click the Digital Control Point block now on
the flowsheet and add the following information:
I Name
Process Variable Source LP Separator, Phase Level, Liquid2
Output Target LP Waste Valve, Actuator Desired Position
Mode Auto
Output Cold lnit OP Default
Auto Operational Parameters Latch
Threshold 1.98 m (6.5ft)
Higher Dead Band 0.00
Lower Dead Band 1.53 m (5.0 ft)
On,Qff tontrollef
J I A~;i;i ---'"I
rr-~-;.;;;_ct~amerers
I
Mode-: 0 Off
rStrip(~varLables
O Manual @ Auto ·1: ·:
'
I [-Output---------------------------- -------·-i I•
0
I i :~:,::, ;P~tatea O Off ~, Default O On I
-I '-----------------------------------------------------------------------------------------------
' I
~~~~,:o~~ad _fl~;;~--11
I
111 Sond _
11 l~:,,:,:::!:: nd
---------- Pv;:¾!;~~j I
I I
. Ii
'""""·------·- ..,..,-----·-·--··-·-""-·-------·-·-·-··-··-- -·---------..··--···--···--·- ..I
- Faceplate PV Configuration---·----------------·-·----,
~---------------------------.
Minimum 0..0000 m
I
_,
1-ax1mum
II I'
I,
l_________________________________J :
·ll::.•_ _ D_e1_,_'________
' '_"'_'_p_1,_,_•_··___'-_-_.:_-~':___'r_:'.:__:..._"_:._~_,-f-_.. :_:___._,,
When the PV is higher than Threshold, OP is ON and the Actuator Desired Position is
Full Open. When the PV is lower than the Threshold minus the Lower Dead Band, (6.5 ft
- 5.0 ft - 1.5 ft). the OP State is OFF and the Actuator Desired Position is Closed.
LP ~P'!r!ltor
I
---~-------··-··------------------------------~---------_>
____ l'' "1
ri
I [,I
I
l
Ii
~
If the signal from the controller is cut off from the valve, the valve becomes fully open.
D Select the Actuator bas Failed box for VLV-103 in the Dynamics I Actuator
page.
o Set the valve to Fail Open. Run the integrator and observe the response.
Valve:V[V-103
-~---·__-.·~-"---~-~~----·---~~--=--'------·
1. Design I Ratjng l. w~~hecll Dynamic~ L-·---------------·····---
1
I r·s~~~ ··ii
J
[}yna~i~s
Pipe
Parameters -----------------·-----------·----------·i
Mode,
1·A~at~r
@ lostantaoeou, C Fiest O,de, O Linea,~
Ti~-~-&;;~ant fse~:;~d~i----- 000:00:1.00 · \
I
j
j i Holdun I
Valve Sti-ckiness Time Constant [seconds:] <empty> II I
I Actuator IActuator Un ear Rate ['%./second] 1.000 I ,I
l Flowl\m1t.s I 1
I Stripchart l Value
K Damp Fac~r .. 0.9500 -~---·-
~ I_,_. . _,_______E~~-~~--~~~--~~~~~~-----·
II i Actuator has Failed
r·Posanons --·-·--·------·- --- · · - -1_ _ J
! Ijl I ] _~_ - _CO' F~~Ope~--~~~~~~~ _C Fa,! Hold _
1!
1
I Min Max ' Current Des:lred • Offset J
D What happens to the liquid level? What would you expect? What happens to the
OP (VLV-103 Actuator Desired Position)? Is this what you expect?
o Change the controller action ofLC~HP Sep from Direct to Reverse. Now what
happens to the liquid level and OP?
Cl Feel free to experiment with the Fail Shut option for VLV-103 as well. Do you
need to change the controller action in that case to show proper response of the
OP? Use the HP Sep level controller face plate to observe the key variables.
a Set the controller action back to Direct, reset the VLV-103 Fail Position to
None, and uncheck the Actuator has Failed box and run the Integrator to re-
stabilize the model.
In this portion of the exercise you will add a split range controller to the flowsheet.
o Disconnect the LP Separator vapor outlet stream (LP Vap) from the control
I o
o
valve LP Pressure Valve.
Add a Tee and connect LP Yap as the inlet stream.
Add two product streams to the Tee (titled 6 and 7) and connect one of them to
the existing LP Pressure Valve. Note that you do not need to specify a split
I
LP
I Vsp-1
...
LP
Vap-2
·---·
., " ---·-· "· .. ,·
[] lg_nore.d
o Ensure the dynamic pressure specifications for both boundary streams are set at
137? kPa (200 psia).
o In order to accommodate the new split range controller, the PID controller must
be removed. Delete LP Sep-PC from the flowsheet.
o Add a Spht Range Controller from Dynamics tab 01 the Fa1ette ·and ·use-i:he---
following table of information to define it:
Split LP Sep PC
!'r"c~~n.~ctio~sl~~-~:i[~~~:__~~jI~~~~7~~~~-------"--
11 Name Split lP Sep PC -
I,
I Proceil Variable S-curce. ··•··············•········•············· ·············· •··········· ··· ······· ······
'I Use this box to
1,_~ect ~::J choose original
e
!LP Separator ·-----· ]
valve 1 or 2
II , :::,::,,
:: '
!1
IIII11 PV
____,. :,, ~ OP
ii I · Remote Setpoint A, I
r
Output Target Object -
'
1
11 i -L.-~~-L_-t
Rs~] Optional j Object ]LPPr~~;J [,_ . Select.OP.~__.]!
[Ii : Variable:
....1
111
!
i
I
SP
Parameters I Configuration
PVMin 1380 kPa (200 psia)
D .'
PVMax 3100 kPa (450 psia)
[J jI 1:Ve_:~~.:::So'="~"=------~'~3~80~.~IK)(J=~kP~•~i J 3100.000kP;! I
) 1;~_ratii,t~l'SlCtperatian _-~' .._:'-.. ____ :._:_' ;_<-- .',,:: ·': :: ·. :'./· . . 'i' ; '.-
Action Direct
i !, Controller Mode Auto
l' __Il SP 2690 kPa (390 psia)
Kc 3
Ti 2 minutes
11
•'
©201 5 AspenTech. All Rights Reserved. 5 - 24 Aspen Teclmology, Inc.
r.,,.,-,
, I
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling
(B
r~onnect,on~
I
___ .
Pacameters
__ _
Pa,,metecs
, Action:
_ _ ._ SplitLPSe1>PC
j S~ln Range SetuelStripchaillm V,ri,b~ili-J. . ______ .
;) Reverse ·~) Drrect ti ._J
-
.
-i
---=1
Workshops
It
I Operation j J Setpoint Mo{le: 0 LccaJ (} R~mnte 1
Ii Contiguratron I I- -- -- ---- - - - ----------- I
1
•••,: rMC Design and PVs ---------------------------------------------------, ,
i ,
1
Scheduling
1:::::,'°""'ns]
1_
i lriitializa:1ion [
r~ --- -- -
~----------·----------
r - -~:~:I
0.00 i
I' ·
1.
I·
1
[ I Range Outputs ---------------- -~---~---~---~·:_·:_·:_··--·············----------------, ! l
' , 1· LP Pressure Valve ~I --- :6,155- "i
I: ' l LP Pressure VaNe-2 -----·--- -·------·--·-----=-~~~
. - II
fi,.
I
Tun_~-~~-~-::r-~.~-=-~=~ 1 A.l9orithrn Type , I,,[,.:-,
I ! IHvsv< ·J
1,j
11 [iZ, 3.00 _ j I
III l~~ ·------------ <em::: J I.. A~go_rit_hoo '"".~~·:::=::... ·-· , II
o Go to Split Range tab and input the following
LP Pressure Valve 0 50
LP Pressure Valve 2 50 100
Re,iiefvalveeRV-100"
Name RV-100
I Outlet
L!~~~~--··---------:1
I Fluid Pack.age
IOil-Ga'> Plant
D Connect From LP as a third outlet from the Tee operation you added in the
previous task.
D On the Dynamics I Specs page of stream To Flare, activate the Pressure
Specification. The pressure of this stream should be atmospheric.
o The Relief Valve requires a value for the Orifice Area to initialize. Open the
2
Rating I Sizing page of the Relief Valve and enter 25.81 mm (0.04 in').
I _________
I
-------------'
o On the Design I Parameters page, enter 2827 kPa (410 psia) as the Set Pressure
of the relief valve and 2896 kPa (420 psia) as the Full Open Pressure.
-~- .- n llltillll
I_'D_esignJ Rati~g TWorks_~{l.Dramrctl____ · ·--------·---- ·--·--·-·------------ ----·--·-----------·--- _
, Design i
[~:~~;~~] ~RV
- - - ------------1+1-N.c,tc:5c_____--jj----------i)o~-----7'~-r-------,)ra,...___ -1--
i
Ii 2827 l896
ii '
'I
I,
i
I
I
ll=c____ _j . ------------·----·-·--J
I
C,~"'1~~-J [j tgnored
CJ Run the integrator and use the split range controller to build up pressure in the LP
Separator above the set pressure of the relief valve.
CJ Is the relief valve large enough to accommodate the vapor flow? If not try a
larger orifice size.
CJ Save the case as 04-ExpandModelS.hsc
I
I
I
I Compressor Curves and
Surge Control
Aspen HYSYS Dynamics:
I Introduction to Dynamic Modeling
I
I
I Lesson Objectives
I
I
I
©2015 AspenTech. All Rights Reserved. 6- 1 Aspen Technology, Inc.
\_
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Compressor Curves and Surge Control
Compressor Curves
t,,~,;;,;,:
,.""''°''""''
J,n,.,,,,,.,.., "I-'
17'7'"''"''' .;
;,,,.,,,,,.o•' ?
,_,
''.:il}r.t-""'o-p."""'f'I.
,[i(J,t,,,,Se,g,,C,J ...
'C;Si,.,.St,,-.,,iC"""'-
rt~~~;;~"·:-;;;;- ·
j2o>$1o,5tago P"
!!~;;;::::
'161?1<..,e:ag, P'
i
"""-"' _,,, ,©000
Fklw(l>.Cl_rnlill)
SurgeLin"A<!!lr<lsaiOn
Stag·e 1: Surge-Coutr_oller
t ·-··- ·-~---- -"-'----------·--·-----~-.
I~(;_~~f;J··p·;;--;;~t~-~.-T~ii~~~Ti~i.~£~a...
j i, Paramoto_r•__ Surg~ (ontrc,l Paramelm ,,,.,,,,,,,,, ,,,.,,,,,,, ,,,,,, .,.,,.,,,,,,,,,, ,, ,,, ,,. ••
!I: Cor.figura~on;
l I; Surg~ Con\rol'
rParomolet-A(;;:,1
IP,camete, B [m/im3/s)]
55.6553
·94.6J«
,
,. !',. ] P-Aram~terC !m/(m6/s2)J
I Ccnlrol Une j~;J
002.KB
10.W
' ; 'lacbp L,~e ]%] ,.oo
1!i !3.~.:.':k..~.l?.~-~·~9- [".'1_<!_ J.000
l!i
JII
...... ,,,
.
.;...~
·~;;·Lr
E-Learning Resources
~. Introduction to
..., HYSYS Dynamics
I c,.,.,--,...,.,o,~.
Compressor Modeling in Aspen
HYSYS Dynamics - Jump Start
Guide
""""''"'"'
:J t
I fl J,:.
" l'.
':{fil~]~;/ S•arr.h Results
..
..,...,,~,
Solld1fb1l\l
"'""'"'"''"'"''"'"''""'""';""'""'ijd,1....,..,
"""""''"""'"'""""'"'q"'·-·
FJa,~)"<am~m#•l""<lol""''"'I"''"""'""-·
J: .,a;;,
~I : .: ":.·
I' Jll,,""'''·l"'
j' 4',.,-..,,=_-,))
I
I ~aspentech ©J0lSJl.5penTi,d1nol0gy,lncJ1.llrlghtsreserved j 9 a&3JNE
I
I
I
©2015 AspenTech. All Rights Reserved. 6-5 Aspen Technology, Inc.
Aspen HYSYS Dynamics:
Introduction to Dynamic Modeling
~aspentech
II Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
I
II Compressor Curves and Surge Control
Workshop
Files can be found in folder: 05_Compressor5urge
Objective
In this module, compressor curves will be used to model the behavior of a high pressure
gas compressor. Using performance and efficiency curves to model rotating equipment
allows Aspen HYSYS Dynamics to accurately simulate the dynamic behavior of plant
equipment. You will also learn how to implement a compressor surge control strategy to
r1
II
!
protect the equipment from a potentially dangerous, low-flow operating scenario.
Description
r1l . Using compressor curves in an Aspen HYSYS Dynamics simulation allows you to
accurately model existing compressors. You also have the same ability with the HYSYS
I
Pump operation. With an accurate simulation, you can detennine if an existing
! ,
'II-···· compressor (or pump) is able to meet the specifications of your process.
l I
Compressor curves also allow HYSYS Dynamics to calculate heads and efficiencies that
are dependent on the flow rate. This results in greater accuracy in the simulation and
allows HYSYS Dynamics to more closely model actual plant equipment.
;
L "
,Q The selected objects hal'e attached streams which h.we not been
V selected.
Would you like these streams to be ex-ported or copied HS welll
(If you choose "!'Jo", then pasting orltnporting of certain types of
ob-jects might not work.)
Hint: If you can't seem to find the pasted compressor, look in the bottom right corner of
the flow sheet. Often pasted objects will appear in that general location.
Note: if a Stream Cutter appears when you link KO Vap to the Stage I compressor, this is
because the compressor comes from a model with a slightly different Fluid Package. To
remove the need for this stream cutter, set the Fluid Package for Stage I to be the same
as the rest oftheflowsheet.
o On the Rating I Curves page of Stage 1, notice that several curves are checked as
active and the Enable Curves checkbox is also checked. On the Dynamics I
Specs page, notice that the Use Characteristic Curves option is checked and the
Speed is specified as 5000 rpm.
I
~
I
i
I !I
II
I l
I °' ,,._J
I
I ..
<-empt,>
r
r
: Pre.SI/re lncrea;~ [kPa] ~empty> r
!He~d \ml r i
, Fluid H,ead ikJ/kg] '"'
25"'8 r !
______JIi
!
---, On
:"'i lgnoried ~
o Run the [ntegrator for a few moments to propagate infonnation to stream Comp
Out. Again, if the Dynamics Assistance appears, do not make any changes.
o What is the discharge pressure from the compressor? ,
o Connect a Valve to the compressor outlet. Name the valve Comp Valve and
attach an outlet stream called To TEG Tower.
o Remove the pressure specification from the compressor suction and move it to the
outlet of the discharge valve. Set the dynamic pressure spec at 6895 kPa (1000
psia).
o Size Comp Valve using all the default values on the Rating I Sizing page.
L
q Add a PID Controller with the following parameters in order to fix the pressure
set point at the same value observed after running the dynamic model just after
you installed the compressor.
Controller Name
Process Variable Source Comp Out, Pressure
Output Target Object Comp Valve, Actuator Desired Position
Parameters
Action Direct
Range PV Minimum 6000 kPa (870 psia)
Range PV Maximum 10480 kPa (1520 psia)
I Kc
T,
2
2 minutes
I o
o
Add a Face Plate for the new controller.
Run the Integrator until the system stabilizes. Note that you may wish to start the
pressure controller in Manual then switch to Automatic so as to maintain the
same discharge pressure you observed after first adding the compressor.
o Save your case as 05-CompControl.hsc.
I perfonnance of the compressor becomes erratic and the vibrations associated with this
erratic behavior can be extremely damaging to the compressor. To prevent this, most
centrifugal compressors have a protection mechanism that ensures a minimum throughput
by opening a recycle valve.
As the drop in throughput can sometimes be very fast, the controller must react quickly
when surge is approached and also control smoothly when the compressor is operating
normally.
The surge controller is an extremely rapidly acting controller. The control algorithms
used to prevent a compressor from going into surge are extensions of the usual PID
control algorithms.
o Add a valve called Kickback Valve to the flowsheet, and enter a valve opening of
0% on the Rating \ Sizing page.
'Vatve: Kkkbpck.'VaJve.
: ,..1'1.11.~.r,~
J
r~~~~~~! R~tin~· 1.w~rks_h~tJ..D<Jna~ic~.l____ ,_,..
1 .. (Valve Operiiting Characteristi(s ," Sizing Condit~n; ..... ·.i/1: Current-- "j u~er Input · ""'i
1 1
-
iii Srzing
.
i
, ,ii!' Linear Iil~let Pre;s~;e [~P;i - ""Ji
I i l Nozzles I () Quick Opening I!Molec.ularWei9ht __ - -- -JI
'1 I! Options I I C Eqwal Percentage
If valve Opening[%] o.oo Ii
ii Flew Limits[
]II I
I ____ (; User Table
I j Delta P [~Pa) <:empty~ I!
'111 i i" Valve V.apcr F!ow Modeis i iFiow Rate ikg/hJ
: I 1 .:·.:.I
i]I I_'. U11~ersal_GasSiztnu -. -_. __ ,, ___ .,.j Mo:thods
11[ () ANSI/ISA method
II ·it Mar.ufac;nJl'er speeific melhod~
II
'I
I
iKm 0.9000
lcv fUSGPM('60F,1psiJ] s.empty>
Itl_c~J ___ __ _ _ _ _
!
i_~g _______ <empty> ..
:r
----'),
IL~,., . .J
c._ _____ _
[J Ignored
-,,-•·<•~·
l
o Double-click the Stage 1 compressor and go to the Dynamics I Specs page.
o Add a Surge Controller by clicking on the Create Surge Controller button.
_,:,o,11!111,
-"-i
---~-,r
U38e->O!J7
_r_::;,,. 1 i[
Adiabatic Effider,cy r 11
I, Pof',1.ropi~ Hfaie~cy
[ Pre=iee IJ1crease [l,:P")
,. , r ii
r !!
r i:
!,½Hd [mj 2~19
i F!i.,;d He~ci [l<l/kg] 15,70 r Ii
, iCap,,.cit"/ JACi_m3/~] 8651 r 11
'''i iILir.k~,.~ca,:~r"\?'.'. .lkJ!hl,e,
Speed [rpm)
. . . . . . .,.<em:~~ .I
P'
r ii
11
a Set the Output Target Object for the controller as the Kickback Valve I
I ! Name
Object:
Stage 1, 5u,ye (ontmll~,
:··P,<><:es;VariableSource • • • •· · ·•
I o,
I Optioru,I -- Up,tr~am
s~rge Ccn!roll,.,- Output
;· Output Target Object
I. ··- - ·J
I
f
I I
,..... ___ ,, ____________ ~-.. ------ --·------- __I
I a Disconnect the compressor discharge stream (Comp Out) from the compressor
discharge valve (Comp Valve). Insert a tee and connect Comp Out as the inlet to
I Cl
the tee.
Next, add two outlet streams to the tee; Back Line and TEG Line. Connect TEG
Line as the feed to the Comp Valve, and Back Line as the feed to the Kickback
Valve.
I Kickback
Valve
.......
I i] ~ Stage 1 Surge
_ Controller
BaokL,le,c-'
'
I '·
~ I
d KO PC
I! I
Tower
I
I
I ~-,
Stage 1
Comp-HP
o Connect the outlet of the Kickback Valve to the inlet of the Knockout Drum
separator using a stream called KO Return.
Note that the surge controller is used exclusively for compressors. When in Auto mode,
the set point is calculated by the controller itself and is not set by the user.
The surge curve of a compressor can be explicitly entered in tabular form as a Speed vs.
Flow Rate curve via the Rating I Flow Limits page of the compressor property view.
Otherwise surge data are implied by the lower ends of the compressor performance
curves. For the purpose of configuring the surge controller, the surge data must be fitted
to the following formula:
Head(m) =A+ B·[Q(m3/s)]+ C·[Q(m3/s)]'
In addition to the surge line, the user must also specify the control line and the backup
line, both of which are described below.
Control Line
The control line determines the ''set point" for the surge controller. This line is set at
some fixed percentage above the surge flow (typically 10%) and the controller tries to
maintain the compressor flow above this control line. If the flow through the compressor
is above the backup Line (described below) .then the control action is the ''normal" PID
action. The control line set point can be determined by multiplying the flow from the
surge line equation by (100-+x)/100, where xis the flow% above the surge line:
Backup Line
The backup line is located between surge line and the control line. If the suction flow rate
is above the backup line, then a standard PID algorithm is used. However, when the flow
goes below the backup line, more aggressive action is taken to prevent surge. Similar to
the control line, the backup line set point can be determined by multiplying the flow from
the surge line equation by (lOO+x)/100, where xis the flow% above the surge line.
The relative position of the three lines is illustrated in the following figure. For a given
head, the flow rate can decrease until it hits the control line, then the surge controller
starts to open up the surge valve, using the regular PID mechanism. If the flow rate
continues to drop and reaches the backup line, the back up control mechanism replaces
the regular PID mechanism, and more aggressive action is taken (i.e. the quick opening
algorithm replaces the PID algorithm, and the recycle valve will be opened rapidly at a
specified fixed rate).
--9--Surge Line
·-t-Backup Line
---e--.Conlrol Line
3500 t-~-----~------hl---,'-------!
~
~
•
2500 t-------------,"','-,,,__--------!
?
~
I Cl
in the table.
View each curve and fill in the following table, using the lowest flow data point
of each curve. Pay close attention to the units of measure!
I
I tJ Go to Rating I Flow Limits page. Click on Surge Curve button. Fill out the
table. Be careful about units. If you input the limit data here, surge controller can
find surge curve coefficients (A, B and C) by using these limits.
Compres.sor'. Stage 1
i iJ !nert-., :
CJ Use Stonew~ll CuNe i Sto~ew~II CuNe.,. I
I!! Elt=dricMotwl ,-{urrent FiO'l'IS ~~d Volume
'I!
il!
Iii
jl!'
i!I
!ii
iii
1/I
lji
iii'!I
jij
ii!
o Double-click the Surge Controller on the flowsheet and view the Parameters I
Surge Control page.
o Click on Fit Surge Control Parameters button. It will regress the A, B and C
coefficients.
Note: ff you don't.fill out the Flow Limits form, Fit Surge Control Parameters button will
be inactive. Why? HYSYS does not assume that the lowest flow points in each curve
belong to surge curve. In reality, they may or may not.
IF.··
j'co(lnection~ Parameter~ Monitor J U.ser V a ~
I Pa;~-;~t~~;·- Surge Control Parameters - -~ '
1.
IParameter 8 [m/im3/s)l -94.6344
o The Control Line and Backup Line are set at 10% and 5% above the surge line;
I keep these defaults. The recycle valve will be opened at a rate of 3% per second,
as shown above.
o Open the Parameters I Configuration page and enter the Tuning parameters and
PV Range as shown:
Controller Settings
Action Reverse
PVMinimum Om3/hr (0 bbl/day)
PVMaximum 20,000 m3/hr (3,019,104 bbl/day)
''
'
--
Kp 0.25
Ti 0.1 minutes
o Set the controller mode to Auto. Add a Face Plate for the controller if you wish.
I o Size the Kickback Valve such that the Cg is equal to 30% of the Comp Valve Cg
value.
o Construct a Strip Chart that shows the Actual Volume Flow for the compressor
I suction flow (KO Vap), the net flow through the system (HotVap Out), the
kickback flow (KO Return) and the Kickback Valve I Percentage open.
o Run the Integrator for a few moments to ensure calculations complete normally
and there are no missing inputs.
I Cl Decrease the flow set points ofFC-Alpha, FC-Bravo, and FC-Charlie gradually
so as to try and starve the compressor of suction flow and force the surge
controller into action.
CJ Run the Integrator and observe the valve open as the control line is hit. If the
I backup line is hit, one should be able to see the valve opening go from PID
control to the Quick Opening algorithm.
I
I ,
~ 1~ ~ I
~
I
~
~"''1rn~ .',,v'.»e--.0:l:c
• i
ru2 ·scc+······················l·,.-------!-------+--------l7~2J.;Nt:-'C,}
I i ·11 l.C~5
"
>
~
0
,
(I!
.e
·-----1------
•->I···············+-----·-··-·-·--·-··--·-·-· --·----·[--·-
·1
0
" ~·cl I
2 fl,-------,--------1---------!-e>.ze~ fk•Jihl
NW
Minutes
'
a Bring the FC Alpha, Bravo, and Charlie set points back to their original values (or
values that are relatively close).
a Save the case as 05-SurgeControl.hsc.
D
1,l
~
L
D
D Lesson Objectives
r1
I',''
.,__.I
Review the procedure for converting a steady state model
1;·-_, into dynamics
k I
~I 1:
i'_l_,I
Prepare a distillation column for dynamic simulation by
using a Tray Sizing analysis
er j Model an LPG distillation column in dynamics and develop
j!
~J._: an effective control strategy
!l'!--i
~
""-.,)
I
Ri:I
I'L
-! I
m1
~!j
iSteady State j
-
Propane
280 psia
tlP = 20 psia
-
C4•
300 psia
The hydraulic I
···"·"-··--·-········· .. ·-··"'··- · Soctio~_l ··
calculations based on l1ntemals Valve
!Numbe, of Flow Path,
the recommended '!JetFlooOing Mothod Gift.sch
tray geometry for i
I Column Geom.,l,y
the column are ISecticn Diameter[m] 3.505 +--{rfay Diamet~~J
displayed in the IX-Seo!iQnal Area lm2]
[Hol•Aroa[m21
"~
0,liil94
Results page IA<ti~eArea [m2] "~
fDC Areo[m2J i.:m
!Tray Spacing {ml Me% +-j Tray Spacing I
iSedicn Heignt 1ml 14,63
I
iHydraulic Results
'.Mox Flooding [%1 64.S4
jM,.DCBaokup[%] 44,;!8
!Mru<DP/Tray[kPa] 0.554
jSection DeltaP [kPa] 10,32 ~ DeltaP I
IMru<WoirLcad [m3/h-ml 70,:!0
!TrayO,.taik
I ,
'
I 1_,.!o.,T\
I_J.\,,.ll
,,u,.,.;s
'~_ ...,.,1,
,,-., . ,.,."'..
ll\;'"''"'"'"''""f/"'ll)
-"'.;:aJ
.J1M
~"
'"'"~"'"""""
.. -~.!~·-·"!
!
:r
'l_J.C,.,,;
~iiW
BJU!' "'""""""'~""'""""""'
·u,_,,..,.,..,..,,""--"'"''"""
._,.,,.,s
,_,.,..,rs
~_.,._r,
~-"""' ,,
,e__,.,.,,,
''-"""''
12 .. ,M,;~l5
;,i_...... ~
I 1:1
I",,
I ,._..i,.,,,;
'''-"""~
'1i_....."''
ll_M,a,T:;
la_M,,01\
ll 1
.-.c"·, ..·,c·,c·,-.'.. ......
I ~-~~-~ . ~-..J
I Dynamics Spec1!1cat,ons
I Pressure Speclflcotlons
within tl1e Flowsheet that are not cannected to conductance
de\/lces (i.e., heat exchangers. coolers, heaters)
Place a pressure specffical,on on all b,Jundary streams
(feed/product streams) v,i!hin the Flowsheet
Tray Sizing Use the tray sizing utility lo eslimale the column geometry
and pressure pro~le
Dynamic specifications can only be modined when lhe Integrator is stopped. Once
the imegralor is started ttie value of ttrn dynamic specification can be changed HIS
value appears in blue), but the choice of dynamicspecific11tlon can not be changed.
r~il
--"-I
;:.,
@)aspentech © J01S A.~ne1>Ted,nol<t!JV, lnc.Allr,yht,.r""""""d I 10 J;ON E
©2015 AspenTech. All Rights Reserved. 7- 5 Aspen Technology, Inc.
\
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Dynamic Column Modeling
To
Ccnderisi:-r
RI
~-----'1 '~-------
Col
Feed
Main
TS
Tc
Reboiler
C4·>
C4+
v,"'
Pr~o';tne1
"
Vahi~
-------t1 1 -"·-·---~-·rJ
I
b~nd~mm I 0-ci°nd Cond.PC
R. • C~M~ns~r I
1}cond-LC
Soiluµ
Flasn
R~2~·~ . . . . 1
'
Steam L-~ [;;k:J~--~••
ci~ C4• C4•1
"' Va~e
I E-Learning Resources
1·----~--------
"""''"""
'':.:ffl"tm_·:-~'"" S,e;i,th Res~lt;
C;ote<Jory "'
@aspentech
I Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
In this workshop you will start off with a pre-built steady state model and convert it to the
dynamic mode of Aspen HYSYS. This will serve as a useful review and opportunity for
I additional practice of all the key concepts covered up to this point of the course. The
workshop will culminate in the addition of a distillation column, which will require some
special treatment - different from some of the other unit operations you have studied in
I HYSYS Dynamics.
Description
I You have been tasked with the construction of a dynamic model for the treatment of an
NGL stream. The NGL will be heated and sent to a depropanizer column for the
I recovery of desired hydrocarbon products. You will also need to study the re boiler of the
depropanizer column and study how it will operate out in the field. Fortunately a steady
state model of the column pre-heat train already exists. Therefore you will be starting out
with your pre-built flowsheet in steady-state and then you'll convert it to dynamics.
. .
MGL
Feed VLV-100
"Sep Snell
'"
s~arator Healer-a
Heal
'""
Pump
Pump Out
.
E;:tnanger
Since the steady state model is all set, you can start by adding the required input for the
model to run in dynamics. Again, this will be a thorough review of the concepts studied
up to this point of the course so be sure to recall the procedure taken to confidently
convert a steady-state model to dynamics:
1£ 1
- Vaive.:.~y..'100 · ~. ci - · ' .
[~~';'~ R~ti~~,.V~o;O~-,ii:,,'-,·.<.Io,._,~,·,h·;-.m,.·.',~,Jc,·e. - -·---·--·---·-"----.-.,."-".-..."..-.-_"_-_-__-,"."__-_-.-._-_-_"_""~""---.-_'""'·.I
~ ~
,I··.:.·
i:
1
t Vlllve Vapor Flow Models .. ---- - -- . ~~-'."..,~.t~~~-~.1__ ,_ ...... _._ 1,16g,,+00S _J_ j ij;
1
H Universa.l Ga,; Si2inQ ... ! i"Scin,i Methods -- - ~,11:, Cv---- ..•...(; Cg .. .. Ir
0 ANSLIISA m,athod
,
[11,
1
- --------'
i i.f·
Manufacturer spedfic methods
i ,·1 ~.·',·
I l. ~-~~ , i~-G_'"_'_"_'_'_,._,)~--------~1 Ii
J
::,I
I -
I ------ ..I
_ _ _ _ --------·-····· ______________ , _____ ,. ____ , · - · - · - - - - - · - - - - - - - - - - - - - - - - - - - - - · - · - - - - - · --··-------·-.. --....... - ...... - ..... 1
II j_
L Del~-e. r _J Ci Ignored
•!,-,-·~~-------~-~~-===---~-========c~'
Rl CJ Repeat the same procedure on the Rating I Sizing page of VL V -101. What is the
calculated Cv for VL V-10 I?
Move on to the separator operation and define the capacity of that item.
CJ On the Rating I Sizing page of the Separator entera Volume of 85 m' (3002 ft'),
The last unit operations requiring sizing infonnation are the Heat Exchanger and Heater
models.
Cl Double-click the Heat ExchanJer and go to the Dynamics I Model :eage. Enter a
3
Tube..volume of33m (1165 ft) a Shell v~lumeof9 m3• (318 ft'). .and
. - .. . . - . , . . -,.:.::.~~t~C~~-er.:~~~·-~~-h-~~)r':. . . -- ,.... --
~~9n~Ratrng] W o r k s ~ ~ O,,,nam1cs L~igQ,ous 5J-,ell&Tub':..l_________ ----·-·--..---·-·-·-·-·----·-
II [!:e7') f< Basic ,"; lnlermed1at-e _ Detailed
!, pee; I
Ii Holdu11
Ii Strip,:hart ·Model - Summary •• - - · -· • - .. · - .... . .._
r I Shell volume m3 I
!! j Overall UA [l:J/C-h]
a Now open the Heater model and view the Dynamics I Specs page. Enter a
Volume of33 m3 (1165 ft3).
You have now sized all of the equipment in the flowsheet. Continue the conversion to
dynamics by entering the required dynamic pressure/flow specifications and
relationships. Take care to check for all boundary streams, as they will require a dynamic
pressure or flow specification.
Also, we must verify that all boundary streams are attached to a unit operation that has
some pressure/flow relationship.
• NGL-Feed is connected to valve VLV-100, so the addition of a valve is not
required.
• Shell-In and Shell-Out are connected to .the Heat Exchanger which will have a
pressure/flow relationship, so the addition of valves to these streams is not
required.
• ColFeed is connected to the Heater which will also have a pressure/flow
relationship, so the addition of valve to this stream is not required.
• Sep Vap, however, is not connected to a conductance device. Therefore, a Valve
needs to be added to this stream.
o Add a Valve operation to your flowsheet, downstream of Sep Yap. Keep the
default name for the valve (VLV-102).
D Choose Sep Vap as the inlet and enter Sep Vap I as the outlet.
o Specify a Delta P of 70 kPa (10.15 psi) and size the valve as you did VLV-100
and VLV-101.
-~---- valve;:Vi_v;1i:Ji' _':"/:o IEII
.-_.- ----~-- - .. _,-.--_,'
...
Now that you have accounted for all boundary streams, you can go ahead and make
I
'
'
dynamic pressure or flow specifications on those boundary streams. In this case all
boundary streams will have a dynamic pressure specification.
Note: Use the Dynamic P/F Specs color scheme for the flowsheet for assistance in
identifying the required dynamic stream specifications!
CJ On the Dynamics tab of the NGL Feed stream make the Pressure Specification
Active at 380 kPa (55.1 psia) and the Flow Specification Inactive.
I
I
CJ Do the same for all the following streams: Sep Vap 1, Shell-In, Shell-Out, and
ColFeed. Again, make sure that the pressure spec is Active and the flow spec is
Inactive.
I CJ Go to the Flowsheet/Modify tab of the ribbon and change the flowsheet Color
Scheme to Dynamic P/F Specs. Upon doing so, you should note that all
boundary streams are green, internal streams are blue, and energy streams are
!>':~X·.
~es f · flow,he<!t/M~d;iy · ·, Format
Up next is to enable the pressure/flow relationships for the conductance devices in the
simulation. This includes the Heat Exchanger and Hater models. We will also verify that
the three valves have the proper pressure/flow relationship option activated and we'll take
a look at the dynamic specification options for the Feed Pump.
a On the Dynamics tab, Specs page of the Heat Exchanger click the Calculate
K's button. Recall that 'k' is the conductance to flow constant for each side of the
heat exchanger.
a Once the k values for the shell/tube side have been calculated, remove the delta P
specification and activate the k (conductance) specification.
Hi,t Exd1il'rigel: Heat f;Xiar\9e(. ,.
'1,·0y~.~;;:.
:Mode1 i
f'
.. Ii"·....::::a:;:::;.~.J
Cakulate K's
!?''''" i ID"h~ p [k;l"~J .. 70,00 I .. 1
I: Hc,'d~p
HS~'1pcha1t I
I
! k [kellhr/«;rt(kP11-kg/rr13}) 299.61......~ ·--- i
ik R;f"""""~ Rc,1•,.\~/h). <non">.,
I ~I\~- p [\(P~j
........... ?o.c-aT·-·t'·- ··--1
Ik [~g/kr/<qr.(kP~-~g/M3)) %IA ~---P .. .,...!
! k_R.erere.~c" ~ ikg,-n_) --·- ~noni,> .I
i!--::...........-------
.: Delel>'
·,!
'' ' ---·----------'
o Select the Heater and go to the Dynamics tab, Specs page where you can
Calculate k for that unit operation.
a Make sure the Overall k is selected and Overall Delta P is not selected before
moving on.
! /3_;,g~Rating} Worl<sceet~o,manc;f~~~~;;;;~~l_____________________ _
!I.!2:':~~~i·~-- Model Detail~
r-----·--------·---·---------------,
iJ];I! Specs i @ Supplied Duty Number of Zones 1 ]
l
I
[II Holdup 1 0 Product Temp Spec 31
iI\ Shipchart i
11• I
C Duty Fluid :~~~;: -·--···--·-·----~·- 9.360::~~~ ..J
111 '
i,i
111
'
II
--tt'
11·1· - Dynaml-c Specifications--·----·-·-..-·----·-·- -··-·------·--·- ...... ·-··-···--·-..-----)
1
j 11 I 1
-70.00 - r -J, I'
[Ij
11 I
I IQ,ecall Delta P [kPa)
I0,erall k [kg/hci;qrt{kPa-kg/m3)] 553.8 1 P' __ I
i
Ill I i _~ __ :·::te· !I
Sp« Zon~.. J
~~T~~~il~~i~~ii~E~i~~~r~~;;i~~-·L. . . .
[,..~~-~':'.'~.C:5.-- Dynamic Sfl<'cifications - --------------------------
1: spe,;, : rH;;;1~i-
11 i Holdup i j Fluid He~d [kl/kg]
:siopc~Brtl 's d,m
I j i Efficienc-; 1%1
,i
11
Power[kJ/hJ 4.7SOe+OOS "'r
C.,pacity !m3/h] 18752
11 Use d1"racterisllc a.rves r
'I !1Pump is act;~g ,s turt,me r
! L!.~~r Power L~ss [kJ/h] --,-,..-,.--,,---~_empty>... r
@ On D Ignored
!
iI
! ! LPressure Flow Relation -----------·------ - P" ---
II
r
-!Ill
I!
ii
I! Flow Limit~ 1
ii"
11 Stripchart , v~~-;;·o~in"iiil·---··- -· --------------50:00-··1 !!
Ii
;
--
-
i,, -I
1
Conductance ((11) \USGPM(60F, 1psi)]
______________,_·'_'"'_,·o_oo_,-,5
1
II
Ii
lj
-
I
11
l !
Now that all the required dynamic specifications are in place, you can add controllers to
your process. Recall that controllers can be added to the flowsheet using the same
methods as for other unit operations. Also recall that each PID Controller will require the
following inputs:
• Necessary connections to the Process Variable Source (PV) and Output Target
Object (OP)
• Minimum and maximum values for the PV
• Controller range (only required if the OP is not a valve)
• Controller action (reverse or direct)
• PID tuning parameters
• If desired, the mode of the controller: Off, Manual, or Automatic
Recall that it is very useful to add Face Plates representing each of your controllers. This
makes it easier to view and control your controller SP and OP (if in Manual) values from
the flowsheet view.
o Add a PID Controller that will control the NGL Feed flow rate to the Separator.
Controller Name
Process Variable Source To Sep, Mass Flow
:V-480;-Aettlator-9estr=eel-PesitieA-
--, Pllraffleters ·
Action Reverse
PVMinimum 0 kg/hr (0 lb/hr)
Mode Auto
K, 0.1
T, 0.2 minutes
o Insert a Controller Face Plate for monitoring the variables by clicking the Face
Plate button on the controller property view.
CJ Add another PID Controller to control the pressure inside the Separator.
I P~ran:iete~-
Action
PVMinimum
Direct
I T,
2.0
2.0 Minutes
I CJ Add a PID Controller to control the amount of liquid in the Separator vessel.
ffl
~
Process Variable Source
Output Target Object
Action Direct
PVMinlmum 0%
PVMaximum 100%
Mode Auto
SP 50%
2.0
T, 10 Minutes
o Add another PID Controller to control the temperature of the Col Feed stream by
mani ulatin the Heater heat du
Action Reverse
CJ Refer to the screenshot below for specifying the OP/Control Valve for the
Heater-TC:
- --------- -- -----· --,~,a-----------7H7,-a7t,-,T~C,-----------_-707:71J,,.~'-\?'.• - - - - -
r··-··-·-·------··-·-,
L... Fw:, Pl~l•'."" __ i
The last step before checking the Dynamics Assistant and preparing to run the Integrator
will be to create a pair of Strip Charts. Recall that the Strip Chart provides a method for
easily monitoring key process variables in a graphical environment while in HYSYS
Dynamics. One Strip Chart will monitor some key flow rates in the model (NGL-Feed,
Sep Vap I, and Col Feed) while the other will address some important variables around
the Heat Exchanger operation. Follow the steps below to create the two Strip Charts.
Q Select the Dynamics tab in the ribbon and then click the Strip Charts button.
o Click the Add button to create a new strip chart. Enter a Logger Size of 5000
samples and set a Sample Interval of 5 seconds.
o Rename the strip chart Feed System.
I
- -" ____;,lil(~·=:~.:~~!:'.
Alllt<m,
'SiwoMloo~
~ ~~Un~op,
I -· ;.SS1reom,
i~~lre,mAnaJysi, ~1: [ - -- • _____::;~_:.'..~.-~.:~:
Legge, Sin (" S.mpl ..)
Cl Click the Edit button to view the strip chart setup and Add the following three
I ~~~
variables: NGL Feed I Mass Flow, Sep Vap 11 Mass Flow, and Col Feed I Mass
Flow.
.,- _.·:T?r.)· ___ ~- '.{;;'.:·'.·~:¥:'.~>:;~;_t.;·?;-~0,~??~'if~~-~,~~F:~..- _ __,-} .-',"'.~{~'--:-·c.- .. • -,-t,:· :~'~,?:~~;!:_~--Iii!
.,.,_jl
!
11
I!
~11====:;;:;;:;;;Arl=_=d:;;:;;===[=__
==D=,=i.;.____J=re====;==-'="'-;_;-·;=-=-J===D=isp=,,=, _ __ j
o Click the Display button to show the strip chart plot. Set up any strip chart
graphing options (by right-clicking in the background of the plot and choosing
Graph Control) to your liking.
o Create a second Strip Chart using the procedure outlined above. Use the table
below to define the desired inputs:
S~tup" . ... .· . .
Process In Temperature
o When finished make sure both Strip Charts are displayed in your HYSYS
window.
o Click the Dynamics Assistant to check for any messages about your dynamic
setup? Are you receiving any messages? If so can they be ignored? Discuss any
potential issues with your instructor.
o Run the Integrator and monitor the variables in your Strip Charts and face plates.
Does the system reach a stabilized condition?
o Experiment with the Separator by increasing or decreasing the NGL-FC set point
or NGL Feed temperature. Observe the effects of these changes on the vessel
pressure and other variables. Be sure to re-set all original set point values and
The pre-heat train is only the beginning of your simulation. RecalJ that you also need to
I include a Distillation Column model to simulate a Depropanizer unit. The Col Feed
stream in your current model will serve as the inlet stream to the Depropanizer. However
adding a column while in HYSYS Dynamics can be rather problematic. It is almost
always easier to add a column first in steady-state and initialize it for Dynamics like you
did with other unit operations.
In this particular model, the simulation is already in HYSYS Dynamics. So you need to
transition back into steady-state in order to add the column. The downside of going back
I into steady-state is that your dynamic inputs will greatly change the structure of the
steady-state problem. Certain items will be under or over-specified. However this will
be a good opportunity to demonstrate what needs to be done by the simulation user if
they wi_sh to transition back from Dynamics to steady-state.
I There are two possible alternatives that may be more convenient depending on your
modeling strategy:
I I) You could have added the column model while you built the pre-heat train in
steady state. Then you could transition everything to dynamics at once. This
would probably be the preferred option when looking to build a dynamic column
model.
2) Build the column in a separate, steady-state HYSYS file. Once the column
converges in this separate steady-state file, you could copy/paste or import it into
your existing case with the pre-heat train (much like you did when you pasted in
the Compressor in the previous workshop).
A
V
.·.....
>
Are you sure you want to ,witch to steady state mode?
Thi;; may result m loss of results.
"i
,. . -!:
~
!li]
~' I
E_J
o The HYSYS steady state Solver will be On Hold, so make the solver Active to
calculate the steady state case .
~ Cut :sr
"%!Copy-; ~ Unit Sets
-! ·~ Process Utilrty Manage: ..••. ~.-., A.-~!H~·=-,,·,-i.·
~ Correlation Manager '(r_; 0 "
l1rfil ,~ Mode.I Summary
:1ll Flo~heet Summary
:• ·, ', Workbook Reports
~Pa~te~ [' i "R; Adjust Manag<"t I
1
,..,,
;___1 Input i
!
Note: It will also be useful to change the flowsheet Color Scheme back to the Default
Color Scheme. This will help in troubleshooting any problems with the steady state
version.
After turning on the Solver, any inconsistencies due to the transition will appear. In this
case you should receive an inconsistency related to molar enthalpy in the Col Feed
stream. This appears because a specified heat duty and specified temperature cannot both
be defined.
The other potential issue is an over specification on the Heat Exchanger. If your Heat
Exchanger model is outlined in yellow, try the step below.
o Add a Distillation Column to the flowsheet. You can add it from the Columns
section of the Palette.
1,r~:_:p·~~-tt€·-'·--< 0 .-aa
[[o l'IJx -- · ._
!i+l~l .·. ·
!-ii , IJp~ti;eam . ~finfog ,,
,~tom. ·!);ii~
~
I Name
Number of Stages
Depropanizer
24
I Inlet Stream
Inlet Stage
Col Feed
12
Condenser Type Full Reflux
Reboiler Configuration
I o
None required, click Done
In the column property view, go to the Monitor page on the Design tab. Notice
that two specifications are Active; Reflux Ratio and Overhead Vapour Rate,
I CJ
but that neither have a specified value.
Deactivate the Overhead Vapour Rate and specify a value of 2.0 for the Reflux
Ratio. Note the Degrees of Freedom becomes 1. This means one more
specification is needed to define the problem.
I
I
!;;;I
l~\c'
-
I .Ic~
\
-.1:1 . .
i- toi1Jmn:Dep1p11anirer / COL1 Fluid_ Pkg'._Basls-1 f Peng-Robinson
-----·~- -·
!···D~~·:~~:·1-_r,;,~_~;~;~·1:·s1d~-~~;T~iJ~~;-~~l J-~~-ri~,;~;;;~;_r,1;;;~~cl~f·. ~:;;i~;;;j·~-;;;~: .
'
,
D5lg"
-,
1;~:::;•CN -"
Temperature vs. Tray Posrtion from Top
~l~L!fl _I I
ii Sp,cs !
Ii >p,,c,Stimmac,, {' .....
~
1' s~b,oc:ih,g.
N"'"'
,: fl~ws
I
ISp~~~~-~~~n~
11·· ....... Sp;,c1Cod SJ•!c• Cum,e,t V>i~• WLEcr~r Acli>,-e Esor,,a,e·cu<r""t
i I a~~"' P.an<l
' [ Os½d V~~ R,ee
i.aoo
~-~-~tp_:
«mfty>
<emoty,
~•mp>p
«mpzy>
~
r • •r
~
I! il~~u,R•1< «rnl?tv> "'"'P'I'" '=J.'~t' r • r
i <emplp '•m~ty> '=ply> r • r "
I Olm, e,cd ~-'!•
!i !i,,
'i' !i
i!
d
'I
IL
!(. . . . """' .____:_1 iJ
ii
:cc:,·
__ R.,_oi ___ ,_j
D Click the Add Spec button to add a new specification with the following
information. Once added, make sure it is checked as Active.
Name Lights
Stage Condenser
Flow Basis Mole Fraction
Phase Vapour
Spec Value 0.95
Components Ethane, Propane
Distillation column models in HYSYS Dynamics require both sizing and pressure/flow
relationship infonnation. You will start by addressing the column sizing.
On the Rating tab of the Column Property View, you can input the sizing information for
the Distillation Column. The information' required to size a distillation column is the
Condenser Volume, the Reboiler Volume, and the Column Tray Section dimensions.
Additionally, on the Rating tab you can access equipment that might require sizing inside
the column sub-flowsheet.
The reboiler and condenser are sized similarly to other HYSYS heat exchangers (i.e.
!ill Heater, Cooler, Heat Exchanger, etc.); you specify a volume.
~
CJDouble-click on the Depropanizer on the flowsheet and select the Rating tab,
Vessels page.
I o Input a Condenser Volume oflO m' (353 ft') and Reboiler Volume of20 m3
(706 fl').
-----------··--·--------------·--··-··-·--·-------------·--------·-·----·-- ...-;-1
i-·-"-··"------
j~:"~ter[ml Ii
ii.e"!lthlml
: l\'c:1""'•[rnJ]
IOn•om,os Hari10ntal
!v..,,.1r,a,olk,0L r
<empty, <<mp~/>
1::~:f::;:,!lm] •=ply>
'i.000
''"'Pt'>
W.00
I '
!
You will also need to size the tray section of the column. This will define the pressure
profile of the column once you re-start the dynamic calculations. Recall that in steady
state~ you are free to specify the column pressure profile as you wish. In the last Task, we
just specified a column pressure drop of 145 kPa (20 psi) and fixed that for the
Depropanizer. In HYSYS Dynamics, the column pressure profile is calculated by the
hydraulic calculations on each stage. Thus the calculated pressure drop on each tray
section is a function of the tray geometry (diameter, weir height, weir length, and tray
spacing).
The dynamic column pressure profile of a column can be estimated with the HYSYS
Tray Sizing analysis feature. The Tray Sizing analysis performs the hydraulic
calculations on each stage of the column based on the current vapor and liquid flow rates.
If you do not know the actual dimensions of your column tray section, the tray sizing
analysis should be used to estimate the size of the tray section before running
dynamically.
Start by adding a Tray Sizing analysis to your model to calculate an appropriate pressure
profile.
a Select the Home tab in the ribbon and pull-down arrow next to Equipment
Design. Then choose Tray Sizing from the resulting menu.
a Click the Select TS button and choose the tray section to size. In this case, select
the Depropanizer and Main TS. Click the OK button.
o Click the Add Section button. This adds the selected tray section to the utility,
allowing the sizing calculations to be performed.
T_Maln Tower
24._M~il! Tower
Design
r
(,:,mplete
fi,:,odir.g
[ .."···-Add·~~"-:._.".. J
[·······. A~itl S~ti~;..... ]
Ignored
0-
calculations based on the recommended tray geometry for the colunm are
displayed.
I If;;~~l:,::oc~:.:, l~~~~L&i~O:L
j;R,,~lts ·· :@}Tray«! )Packed
:i
i! Trayed
Ii Table
i[ Plot
Tra~ Results --
[" Sect;on_ 1
::::::,1i!
' Internals Valw
i
! I![':1,!
1_:r1·.
Number oi How Paths
'
i_·.
I i!
!i
ii
X-Secti011a! Area !m2]
Hole Area [m2]
/l.ct1~Area[m2J
DC Area [m2]
9.650
0.7186
7,186
1.232
:: I !
j i! t
! llf
i I] f
r
I I
I
I
Section He;ght [ml
Hydraulic Results
14.63 ! i !r
i
I If!:
I t.lax Flooding[%] 67.17 i Ji
I I
::~:~:p:l ~~;
I ![::
S..ction OettaP ikPa] 10.32
I i 1
,. i,,, !:,_
:~~==~~~ :
I [Ma:. Weir Load (m3!h-m] 76.02
11
j . ~=.:.:~~=:~=::=::::.=-==~~-·-::;=-___:::;:-·--:~-=:::::;~~~~~=~:~~~~~~==-~~~=--=:;:~----,--•
"-~-'==-~'-"'1.!::=::=::
I '""' ••••••••••••••••••••••••• l'.'.] tgncri,d I'
t
This page also displays the estimated Tray Section Delta P. Notice the Tray
I Cl
Sizing analysis estimates approximately a 10.32 kPa (1.49 psi) pressure drop
through the 24 stages of the column.
When we initially designed our column in steady state mode, we entered a pressure drop
of 145 kPa (20 psi) through the column. The condenser pressure was specified at 1925
kPa (280 psia) and the reboiler pressure being specified at 2070 kPa (300 psia).
Additionally, the Col Feed pressure was calculated to be operating at 2000 kPa (290
psia).
In dynamic mode, the pressure drop at each stage will be calculated based on the tray
geometry. Moreover, the Condenser, Reboiler and Col Feed pressures will be based on
I this dynamic pressure profile. If the steady state pressure profile does not match the
dynamic pressure profile, the column tray pressures and flow rates will osci11ate until an
equilibrium pressure profile is established. As the column tries to adjust to an equilibrium
pressure profile, the column .can possibly go unstable. Therefore, a proper column
pressure profile based on the hydraulic calculations should be entered for the column
before moving onto Dynamics.
o From the Results page on the Performance tab of the Tray Sizing analysis, fill in
the appropriate tray dimensions in the table below:
o Return to the Depropanizer column property view window and select the Rating
tab. Make sure you are viewing the Towers page.
o Enter the section diameter and tray spacing you wrote down in the table above.
}\lso, change the Internal Type from Sieve Valve trays.
Corumn: Depropani:z_er / COL1 Flu!d - 0 ...
o To account for the weir height and weir length, you will need to enter the Column
Environment. Click the Column Environment button and view the column sub-
flowsheet.
o Double-click the tray section (Main TS) and view the Rating tab, Sizing page.
o Enter the Weir Length and Weir Height values you copied down earlier. Also,
make sure that Valve is set as the Internal Type at the bottom of the window.
11 !:;,;.,
j li•a,lms
fl, L.._~ Taps
I J!i Hi,doa,;e,
i[:
[,,1;
I"ii
P:-essure Drop I
'
;
I
j°i~,;,;,,~·IType.
jWeir He;gnt [mml
!WejrLongt11!n,J
iDCVdum~[m3J
IAe1r,!Atea [m2]
I !Fio-., O~lh,
!w~,ng Foote,
IT,•y Thackness [mm]
iFcaming F•ct~,
!Ma:,: D~l!a P (ht of liq) [mm]
<emp1r
J,CJ()Q
woo
comply;,
IM>.< f:cx,d;ng ]%] <~rnpiy~
'-,;;-,1,1,.1..,,":1,-.,,..,..,,..l==L
11i;v.1...
I
Not only do you need to account for the holdups within the column, but you must also
I allow for pressure/flow relationships. Each tray contributes a certain resistance to flow
which can be characterized using 'k' values, much like in heat transfer equipment in
HYS YS Dynamics.
I Cl
~---
Staying in the column sub-flowsheet, select the Dynamics tab, Specs page and
click the All Stages button in the Calculate K Values area.
o Now you can return to the main flowsheet environment by clicking the View
Simulation button in the Flowsheet/Modify tab in the ribbon.
Now that you have sized the column and invoked the k value expressions for
pressure/flow, you need to properly initialize the pressure drop - rather than making a
general assumption. You can use the pressure drop observed via the Tray Sizing
analysis.
o Go back into the Depropanizer column property view and click the Parameters
tab and select the Profiles page.
o Set the pressures of the Condenser stage and Reboiler stage using the following
values (these are entered directly into the Steady State Profiles table).
Consider what you have added up to this point. You've added the Depropanizer column
and its required dynamic specifications (pressure/flow relationships, updated delta P, and
sizing parameters). You must also consider that you have changed the structure of your
flowsheet. A stream that was formerly a boundary stream ColFeed is no longer a
boundary stream while two new boundary streams have been created (Propane and C4+).
As a result 1t 1s necessary to add valves to these new boundary streams and rearrange tlu:~--- -
pressure/flow specifications on the streams.
o Go back into the Column Environment for the Depropanizer. This is where
you will add the required valves. (Note the valves could also be added in the
main flowsheet- either way can work).
o Add a Valve called C3 Valve, close it and activate the Attach mode by pressing
CTRL function key. Then mark Propane as the inlet and create an outlet stream.
After adding the outlet stream, call it Propane Out.
~ub ~~~N,•l
~ Mo,, Into Subllow
/ ~, o ~
0 11
.,ii
'i
"
_ rt.;;:;~.d-~ (COLll.':°:~i~-;,.:l,'.±...______________ ,,,, ...,___________ --~--- -·----··-------·-
......
fj To
C3
Valve
Corulenser
D o
o
Specify a valve Delta P of70 kPa (10.15 psi) on the Design I Parameters tab.
Add a valve called C4+ Valve and using the attach mode (activated using CTRL
key) mark C4+ as the inlet and create an outlet stream. Once created, call it C4+
Out. Again, specify a pressure drop of70 kPa (10.15 psi).
jp~-n,----..t ....,,--P-rn-P~out
0 1
3
Valve
D
r-
,
~•------_J
Reflux
1
~~--------1
Col
D
Feed
Main TS
:1
i. I
,~
L -------"
To
\j f ;;;...; Reboiler
I-----------ry,,,,,-._,,.,--_________,,._
Reboiler
.
C4+ C4+ Out
D
C4+
Valve
CJ Return to the Parent flowsheet and re~run the column. It should converge.
Cl Note that the streams Propane and C4+ on the parent flowsheet are no longer
attached to the column. Reconnect them using the Design tab, Connections page
as shown below:
Q·Cond
<<S'tream ,:,
IM:,~
GBottornUp 0.0/JOOkPa
o Now that the column is solved and the sub-flowsheet and parent flowsheets are
fully linked, go back into the column environment and size the Propane Valve
and C4+ Valve.
I
!
··!---
25.0
0,9000
~85.4
12135
o Return to the parent flowsheet and make Active the Pressure specifications on
the Dynamics ] Specs pages for both C4+ and Propane. Use the existing
pressure values for the spec values.
Hint: To make sure you catch all the required dynamic stream specifications, change the
Color Scheme back to the Dynamic P/F Specs scheme.
() ideal :..iqVol
Mola, Row
o The column and associated flowsheet can now be run in HYSYS Dynamics. No
controllers are installed so the column will run open-loop so it is not controlled in
any way. Since that is the case, make sure to only run the Integrator for a few
seconds.
o Click the Dynamics Mode button and Run the Integrator. Run for a few
moments and review the existing face plates and column variables to ensure the
model stabilizes.
o Save your case as 06_ColumnDynO.bsc.
To complete the column dynamic model, you will add controllers and strip charts. The
controllers will be added in the Column Environment as that is where the outlet streams
valves are located and will eliminate the need for the controller connections to span the
flowsheet transition. If desired, the controllers could be added in the parent flowsheet
and the same model performance would be realized.
Mode Auto
K, 2.0
T, 2.0 minutes
Name Cond-LC
Process Variable Source Condenser, Liquid Percent Level
Action Direct
PVMinimum 0%
I PVMaximum
Mode
100%
Auto
2.0
I T,
SP
10.0 minutes
50%
I Cond LC -Cl~
I. ...... i
i 011/ Mi~imum 0.0000 % !
I • L~.~-~-'.".~_'.".
1· Tunin9 Parameter,
I'""""
i jKc
..
.........................
"i'oii""!
_.1_~~-~...1 i!·
,-Algorithm Type
'[Min Flow
Mobtrflow ,
O.DOOO ~gmol~ !!
-- 3zoo·kgmoi~t.! I I
i !Ti IO..ll I Lt~.~.~. - . ,. ._. . :.! . : : i Ma~ Flc,w ---··
; iTd "'-----· ___ ompty~ I ;" Alpti!l>m Subtype -
\l] Avaitablet:, Controll/!r
i :_ i.PI~ ~~~Nfo.~
1,,
i<'==cc,=·· ...
Ii
-
I
r-..-·--.. -- -- ·,
I !'~Pta~_j Contn;,1_'1~- I
Name Tray23-TC
Process Variable Source Main TS, Stage Temperature., 23_Main_TS
COntr.c;,l_Valve
Control Valve Minimum Flow o kJ/h (O Btu/hr)
ParBm_E!~".!".S ~,-c;onfi9urat_io:ri
Action Reverse
PVMinimum 100°C (212°F)
PVMaximum 200°C (392°F)
Mode Auto
K, 2.0
T, 10.0 minutes
SP 140°C (284°F)
Du,y 5011<<0
.l:r,Qiroc[Q
~
Name Reb-LC
Process Variable Source Reboiler, Vessel Liq Percent Level
Output Target Object C4+ Valve, Actuator Desired Position
~arameters -. C~nfig.(Jration
. ..
..
.·..
. ...
Action Direct
PVMinimum 0%
PVMaximum 100%
Mode Auto
K, 2.0
T, 10.0 minutes
I SP 50%
Cl Add Face Plates for the four controllers if you'd like to track the variables as the
I model runs.
Note: The face plates are shown in the jlowsheet environment from which they are added.
For example ifyou add the controllers to the column from the Column Environment, you
can only review the face plates for those controllers in the Column Environment.
o Click the View Parent button to return to the parent flowsheet view.
Cl Create a Strip Chart using the table of data below:
Hint: The Condenser and Reboiler variables are associated with the Depropanizer
columnflowsheet, not the mainflowsheet!
o Run the Integrator and observe the variables in the Strip Charts and face plates.
o Does the simulation reach a steady-state or does it continue to fluctuate?
Column,.
I I
"
~ II I!
- -----------~----------- ----- ---- -------------------- ------- --------1
I .
,n
ID I I
C
ill
-1 ---1------------ 1
u
C
0
0 . . . I
To complete the dynamic Depropanizer model you will remove the default kettle reboiler
and add a shell and tube heat exchanger to the Column Subflowsheet. This arrangement
will allow you to use steam across the reboiler and adjust that to maintain a desired tray
23 temperature. By modifying the reboiler configuration, you have the option of
modeling the reboiler mote similarly to a real piece of heat transfer equipment.
Once the new reboiler exchanger is installed, you will adjust the control strategy to use
the steam flow rate to directly to maintain a desired tray 23 temperature.
I Before removing the default reboiler and adding a two-sided heat exchanger, you will
switch the case back into steady-state. The reason for doing so is because it would be
wise to ensure that the proper amount of steam is allocated to the reboiler. In addition it
will make it easier to initialize the new column-related unit operations - which would
have been a little bit tricky if you left the case in dynamic mode.
I Cl Change the flowsheet Color Scheme back to the Default Color Scheme.
o Make the solver active to turn on the calculation engine.
o Double-click the Shell-In stream and delete the specified temperature that
appears.
I Cl Go to the NGL Feed stream and enter a Molar Flow of1900 kgmole/h (4189
lbmole/hr).
q You should see that the column is the only un-calculated unit operation. The
o If the column does not solve, click the Reset button and then Run.
o Now the entire flowsheet should be calculating in steady-state. Save your case as
06-ColumnDynl-1.hsc
a Since you will be using a steam-heated reboiler, water must be added to the
Component List. Click the Properties Environment button and select the
Component Lists folder in the Navigation Pane.
All Item,
t·"'"';::···"··'"···"'·'·····•, .... ,, .. ,.... , ..
i ~ ~ Fluid Paehge< 1:11 .--- ------- -----·------·--·····-··-··-·---··--·-··----·-·----···---- -·-·-·---- -----------·--·-·- ',ta,-.:hfor, ,lw_,_«c•I_____~
' (<?,Basis-1 1:11 Campcnenl 'yp• Grn~'P
'.:~ Petroleum Assays Ii!! Etha,,. P~,~ ("mpc"ent
,_,jRe•ctrnn,
C&C~mpcnentM•F•
illi
!ell
P~,~ Ccmpcneat
Simulalion Nam~ fullN
n•But,n•
,-Pant.one
n-Penl,n~ P~ro Cor!l,,cnont
n-He:<3ne Pure Compcn,m
' Jl
ii:
[I Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
n-Elutane
Pure Component
Pure Ccmp0nent
-< Add I
D
i-Pentane
n-Pentane
Pure Component
[1J [: 0 Do you whh tp be left in HOLD!NG mode when entering the Interactive
Simulation Environment?
D o Double-click the Depropanizer and select the Parameters tab, Solver page.
CJ Change the Solving Method to Modified HYSIM Inside-Out. This solving
'l method is preferred when making considerable adjustments to the column
LJ environment.
i
(-1 _·; Program G~nerates Efflmatio";
I I : Mod;fie<I HYSlM Inside-Out
_,
I I Estimate Generator Param<'t~,; ·········· ·····················
' CJ Dyr.arnic Integration for IEG
I
i!
te<e, valv~ and h~at e"1:~a~9er1 ;n thesub-ilow,he~t.
Cl Re-run the column and it should converge with the new method.
a Click the Column Environment button and view the default column
subflowsheet.
Propane Propane1
C
V we
e I Condenser
,-c n-
½Ucond-Lc
Col ~
1 R1.~.~" - - 'l
Feed
- 2
2
Boitup
(J)Tray23-TC
l~---1
Main'::;;
TS
Q-Reb Reb-LC
C4+ C4+1
C4+
ValVe
Name Steam
Vapor Fraction 1,0
Pressure 689,5 kPa (100 psia)
Molar Flow 1475 kgmole/hr (3252 lbmole/hr)
Co,mposition (Mole f{action)
Water 1,0
D Add a Valve with the following conditions: Steam is the inlet stream, Steam In
as the outlet, and specify a steady-state pressure drop of 50 kPa (7.25 psi). Call
the valve Steam Valve.
D Delete the default Reboiler and Q-Reb energy stream from the column
subflowsheet.
D Add a Heat Exchanger operation and define it using the infonnation shown:
Name E-100
Tube Side Inlet To Reboiler
Shell Side Inlet Steam In
Tube Side Outlet To Flash
Shell Side Outlet Steam Out
I
Name Flash
I Inlet
Vapour Outlet
To Flash
Boilup
Liquid Outlet C4+
I CJ The column subflowsheet should now have .the desired connectivity. Review
your column subflowsheet and click the View Parent button to return to the main
flowsheet.
I ------·--·
Propane ··-...C:l1-r·
Vs)ve
--
Propane1
f~ndenser ~ •- l
~1.·1·-·. . r . ·..:;-· ·
Condenser _
Q-Cond
. . ;. _'
Cand-PC
1 Canel-LC
................ ,.,:"''
-
Bailu~
Tray23-TC
s ~ · , ·..~m-,,---
Sleam
Valve
,
To- ~ 0
_ Fla;t,
,J
fo
Rei>oiler E-100 Flash
R,b-LC
C<•
Valee
o You should see that the Depropanizer is now Unconverged. You need to re-
establish the column specifications and pressure profile as one of the previous
stages (Reboiler) was deleted.
o Click the Parameters tab, Profiles page and enter a Pressure of 1925 kPa (279.2
psia) for Stage 27, or the Flash. This re-establishes the 10 kPa pressure drop
from the top of the column (at 1925 kPa) to stage 24 (the heat exchanger inlet at
1935 kPa).
- 0
FILl;d Pkgs
: 12_M~o fow.e, 12 1931) JY,lJ 20.JI
• [
I'· · · · · · · · · · · · · · · · . ·-· . . . . . . . ..
:,Act,Vc;j~"'e
; H_Main fowe,
j l4_M~mT~w"'
ll
1~
1930
)931 96.6J
3931
,1013
29J8
2.~5/i I Pressure vs. Tray Position from
I 15_111ainTow,c IS l>H/ w,,, ./011) 2')9,1 i -,..,_, -,,e,u•
o Next view the Design tab, Monitor page and make the E-100 Heat Balance
------~sp=e~c1'ficanon Active. You may get messages about sneams retumirrg----w-ttre-- --
column below stage pressures. Click OK for these. The column should converge.
" r
"" r"r
~dlu• R..,~c, ~.om; 2,000 -0.00()0
0,1,,;1 v~p Rate ~e!llpty> ~10.7 <emp:y,
R~~w; Rate <empty~ 16~1 <=p~/'
""' "Pt
Stm, P,od R~t,, <empfy> ~•mpty> <emp~f>
L: t,1- 0.9500 i19SOO 00
l),0()00k//i"I 2500 o,ocoo
C:-100\JA <empty> 7.e,~e+OOO -7.4301 I
' '
o What is the outlet vapor faction on the steam side of the reboiler? Was enough
steam allocated?
Now that you have established a steady-state solution, you can follow the HYSYS
I steady-state to dynamic mode procedure to size any required equipment and enter any
dynamic specifications.
I CJ
Ci
Re-enter the Depropanizer Column Environment and view the Steam Valve.
Access Rating I Sizing page and Size Valve as showed below to calculate the Cg
based on steady state conditions.
I i~0::;:~~~~:1t;i-
!
I Decl!.a P [~?a]
·"-· ·-"·- ·-·- ·: -;:;~-: !
50.00 ii
II i-----.-,.,.
Ffow Rate [kg;h]
..... __ ,........ 2.1::57"':.~~-j '
I M~thods --
~) ANS~1SA method
i,c,, __________ ,•,c,-------------
.~ Mam.iacturer specific m e t h ~
() Sirnpje resistarice equation -w
I f(:i"
[ Kn,
1~·
,[USGPM(60F,1psi)] ;~~
Z5.0
0.9000
l
J
i
9 3
1....,-~,---·--·"-------~-·-~-_J
I
I CJ View the Dynamics tab, Specs page and make sure the Pressure Flow Relation
is active.
Open the E-100 Heat Exchanger and view the Dynamics tab, Model p_age,
I
Cl
Sfecify a Tube volume of 19.8 m 3 (700 ft3) and a Shell volume of 9.9 m (350
ft )-
Cl Move on to the Dynamics I Specs page and click the Calculate K's button for the
~ heat exchanger pressure/flow relationship. Make the K's the active specifications.
~
I
I
t'l2015 AspenTech. All Rights Reserved. 7 - 44 Aspen Technology, Inc.
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
a Double-click the Flash separator and select the Rating tab, Sizing page. Enter a
Diameter of 2.44 m (8.0 ft) and a Height of3.05 m (10.0 ft).
a Ensure that pressure is the active dynamic specification for both the Steam and
Steam Out material streams.
Name Reb-LC
Process Variable Source Flash, Liquid Percent Level
Output Target Object C4+ Valve, Actuator Desired Position
:'_P~rn~ters·'
.. "'"-. C9fltlg~Jati()Jl
. .
I
. . ,•
Action Direct
PVMinimum 0%
PVMaximum 100%
Mode Auto
Ko 2.0
T, 10.0 minutes
SP 50%
'.
Name Tray23-TC
CJ All the required dynamic specifications should now be in place. Click the View
Parent button to return to the main flowsheet and check the Dynamics Assistant.
Are there any important messages or warnings? Save your case.
if; Column·
a Click the Dynamics mode button and Run on the Integrator. Does your
adjusted model stabilize?
a Make some adjustments to your controller setpoints to test the stability of your
control scheme. Introduce some disturbances as well. Discuss any potential
issues or problems.
I
I Column Pressure Relief
Aspen HYSYS Dynamics:
Introduction to Dynamic Modeling
I
I Lesson Objectives
I
©2015 AspenTech. All Rights Reserved. 8- I Aspen Technology, Inc.
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Colunm Pressure Relief
Accumulotor-LC
I --------.... -------~------+- - - - -
R~Aux Reflux i~flux
Reflux
Pun1p
I ReA~x
P"meHP II
Propane r,::·.;.
Bypass to
Iv,,..
I ~
RV100
ToPlaco
I Deprop,rnizer
E-Learning Resources
~aspentech
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
Objective
Previously you learned how to expand an Aspen HYSYS column model via the Column
Environment. In this module you will focus your attention on the Condenser-side of the
Depropanizer column and customize that portion, albeit in the main flowsheet. As part of
this expanded overhead system, you will learn how to apply a pressure relief valve to
protect the column from an overpressure scenario.
Description
In this module the default condenser unit operation of the Depropanizer column will be
replaced by an overhead system consisting of various pieces of equipment. This
comprehensive condenser configuration is required in instances when you wish to
perform detailed dynamic rating calculations using a variety of equipment models.
This model illustrates the application of the pressure relief unit operation on a column.
Under normal operating conditions the overhead from the Depropanizer column is
condensed in an air cooled heat exchanger, collected in an accumulator and pumped back
----to the cohimn. (full----C-etlux) The normal operating pressme an the tap tray 0£.the_co.l.umn___
and the accumulator are 2000 kPa (290 psia) and 1900 kPa (275 psia) respectively.
A pressure relief valve for the column will be added and configured to start opening when
the top stage pressure reaches 2205 kPa (320 psia) and fully open at 2275 kPa (330 psia).
In this module you MII construct an expanded overhead system while in the dynamic
mode. In the previous workshop, you returned to steady state when modifying the column
reboiler system and then converted into dynamics. So this workshop will give you some
practice with the alternative approach and also provide additional practice for model
building while in HYSYS Dynamics.
This workshop will be a continuation of the previous module covering the Depropanizer
unit. Before the Condenser is deleted in the Column Environment, its associated product
streams and energy streams should be deleted in the main flowsheet.
I J j ConnectfOns I
:1f,F"~~;
l ! Side D,aw5 1
]J
I
I
liquid lnle.t
r:
I_
ii
j Par.ame.tcrs
Pr~s;ure.> i &fl~ ro~ _____ · . __ j 1
i! User Variables:
ii,, Note~ .
!I
Ii VapO<Jr Inlet liquid Cuti~
CJ Delete the Condenser and associated objects, but keep the overhead vapor outlet
stream (Propane!) and the To Condenser stream, as shown below. Place a
dynamic pressure spec on the Propanel stream using the existing pressure
value.
To
...
.F'
Propane1
Copy
RLM
1
11
Fe~J
Col
Tra'{23-T .
12
:1
I
Main
TS
Steam
.i
'
Steam
~
fu!eam
T I E-1DO
Flasll
Vafve
To
Reboiler
To
Flasn . ··;~c--·· 1
steam C4+1
o"'
o It is recommended that you periodically save your HYSYS file as you add and
remove unit operations throughout this workshop. Save it now as 07-
ColOvhdl.hsc.
The connection between the Column environment and the main flowshet was broken
when the streams were deleted. The two environments must be reconnected before
construction can begin on the expanded overhead system.
o Go back to the main flowsheet and open the Depropanizer. Select the Design tab,
Connections page and enter the name To Tee for the External, Outlet Stream
next to the Internal Stream, To Condenser. This will create a stream for the main
flowsheet based on the current To Condenser stream in the column environment.
I .
·1,a~s1e,s.,;, 0
Split
Slog•N=bering
-~·Top Down
r.tlFla.,h r i~,E,,ttarn Up
I 11·
i''
I ii
Iii
1nt-ema1Srr~m
U+l
· OuU~t Stage
u, vi...
5he'I f-JQO
.........,,.,,............................ ,.,,..
rype · Tran,te, s • .,,
r-H Fla<h
<NoncSe':t
··,i
l I dP1op,
! PTop·
1__ Main fower P··H fl~_,h
Iii
I ]ii
pi,:1
''I
i! <IP Bot:
iiIi PBa~
0.0000 kl'a
f92Skl'a
li1 Ii
I 111
J!i_ _ _ _ . " . .
l.l-----~-~1_:': .... _Ji _
J
1··;:-:::-:: •.•• _,.""'"''";·····"""" -------
Coi<,m~En"'".''?"""t, :_'.]:"_
I!
\~1 Update Oullet,
Since the overhead product stream and the default condenser have been deleted, the
I flowsheet boundary streams have changed and thus the pressure-flow specifications must
be adjusted. In this case, the column overhead stream that had a pressure-flow
specification was deleted, so we added a pressure flow spec on the remaining overhead
stream from within the column subflowsheet to compensate.
;r I CJ In the column environment, open the property view of the Reflux Copy stream
and examine the Dynamics page. Activate the Flow Specification. Change it to
I
I
02015 Aspen Tech. All Rights Reserved. 8- 8 Aspen Technology, Inc.
\
l
',-_1!,_:
o Make sure there is a dynamic pressure spec on To Tee in both the column
environment and in the main flowsheet environment at 1925 kPa (279.2 psia).
o Run the Integrator to populate the updated conditions and let the model reach a
stable condition. Save your case as needed.
A Tee operation will be added to the main flowsheet to separate the overhead vapor into a
vapor bypass stream and an overhead stream, which will be condensed. The bypass
----------------streawiihontinire--ontn--a--fltlfe--sys,lenr.--------------
Name TEE-100
Feed To Tee
drop across the Tee, the pressure in this stream should be the same as the pressure
in the inlet stream (1925 kPa/279.2 psia).
~ Tee: TEFtOO :
~~T~~~I- Worloheet ri.~m~;J -' •. - - """"""'""'"""'"" _____ _
j [:'.;~~~-~.~--- l~Jame _ To Tee Byp;m;toV,11 Ovhd
Ii Conditions I I Pressure Spec Acll\/e r r
i! Properties [ 1Pre-5sure !kPa] 192.5r---,.,,--•a.O.,l.l"t--..,...-''"";;;";.i
Ii_ Compos1t1on: I Flow Spec Active
1
r
i
! j PF Specs ' Flow Spec Type Molar Flo Molar Flow Molar Flow
I! Molar Flow [kgmole/h] 12 100.0 0.0000
I[ [
Ma~s Flow [kglh] 5.783,:-+004 54S6 0.0000
i I Std ideal Liq Vol Flow [m3Jh] 109,S 9.413 0,0000
II I
I I
'
~· .
I
I
I
..!
,~-~
[=
·"
i
I
I'
L ..
()cl.;.: :::::J
o Run the Integrator for a few steps to propagate the values to the boundary
streams.
Cl Add an Air Cooler operation and supply the following information:
Product To Accumulator
ul Configuration
Air Intake Temperature
two tube rows, one pass
25°C (77°F)
U l_
j
'
Overall Delta P
Fluid Volume
70 kPa (10.15 psi)
1.0 m3 (35.3 ft')
CJ Leave the dynamic pressure specification on the Ovhd stream for now and run the
Integrator for a few moments.
ri,_J
\
o Return to the Ovhd Cooler view and select the Dynamics I Specs page. Click the
Calculate K button to compute a conductance value for the air cooler. Switch the
Dynamic Specification from an Overall Delta P spec to an Overall k Value
specification.
- Dynamic P~ramet~rs
I . . . - -- ..
J i Fkud volume [m3] 1.000
I !Mass Flow [kg/h] 9.208e~004
I I
i i E.it T=iperature [(J
I '·-··-·"""'"""""" ______ ,, _______ _
65.26
o Run the Integrator for a few steps to propagate the values to the boundary
streams.
o A Separator unit operation will be used as the overhead accumulator. The cooled
overhead stream will be used as the foed for the unit. Add a Separator to serve
as the accumulator vessel.
-----------------
Name Accumulator
Feed To Accumulator
Vapor Outlet To Propane
Raitirl9_
Volume 1O m' (353 ft')
o A Valve unit operation will be added to the flowsheet so adjustments can be made
to the vapor stream from the Accumulator. Add a Valve and provide the
following information.
Cv 300
q A Pump unit operation will be added to the flowsheet to increase the pressure of
the Reflux stream returning to the tower. Add a Pump and provide the following
information:
t~1:it~\i<>,°-;/.1[;j;';;Q,;~.,W~+lrcir'.iil,mir. R~i@¥itl\ip:tff$iF/(h~'t\ti'!II!
j_- (Curve ~elections ____ ---~-
I
I
[_-.~!
_I:___ : - - __ :~- ---- -- _____________: ____ : ~
ff, [ ~ Seleled I
_ ____, [ ___Eras_,"AJ_I_ _,
l - •- - - ,_
o Move to the Dynamics tab, Specs page to make the dynamic specifications for
the Pump. [n general, two specifications should be selected in the Dynamics
Specifications group in order for a pump operation to fully solve. In this case
select the Speed and Use characteristic curves.
a Enter 85 rpm for speed; make sure no other items are selected.
Pump: Reflux Pump
' ----- -..----- .
.,· -- -.,-,-------"• ---·--·------·--------------.,------·----------~- . -· -·-------'----"·----
o A Valve unit operation will be added to the flowsheet to connect the streams To
----RelkEHmd--Reflw<-{;epy (whish is eY.,ORII:,· ia tho sol-a sYb!fow,heot}.~Thi~ - - -
last piece of equipment will close the overhead condenser loop.
o Add a Valve and provide the following information:
I] Note,
S m m» earn Valve <:N ne5eb r····_EditTray~ ... ]
Reflux P-H flash
iii
I
[:1 Split Inlets
ll
o Enter the Depropanizer Column Environment and remove the dynamic flow
i'llJ specification on Reflux as this is no longer a boundary stream.
~
o Check that all your Pressure Flow specifications are correct. Click the Equation
Summary button on the Dynamics tab of the ribbon and click on the Full
I Analysis and Partitioned Analysis buttons to see whether your model is square.
I -~-r\,}~!i Dynaml«
Mode· ) As;[,lant
i
I
R,atTime I
!
I ~Event Scheduler
Run I Slop, Resat_ ~SnapshotManagH
T-a!<eA 'efac.. Plale,
Sna!)"Shot I b,:::stnp.Chart,
~DCS
I ilf5~~~~5i:~~~
V ""'°'' '11--- ----------·_ ----
i:e, Streams !..i,_ I Number <>f £quatian, ····----110
II [:I
·!
l
f
, c._
I
!:a,StreamAjf I '1NumberafVariablB O , I
I !
I e ta, Equipmc"
~ rvfodel A{
~DataTablJ _
caStrip Chai'-
! U;e,r Spec Equatrllns
iIUm Sp& v....
[flmerna1SpecEqualions
li lni .. m~I Spec Var;
O
I
II!
i
I
ii I
! I
j
I)
I
I,$ Data Fit, I l Redundant Vars O ,
1 1" -----·--- --··- -·-·---·- - 1 1
f
1
1
i[i
!
I'
'
I· i
t,· 1
I'
'I
11
I'i
Ik I1
1· _OyMmia Assistant,. I I
I
=========
foll Arialysis
F l.._
.j l~i
==ccd_J-~_ '
Cl Also review the Dynamics Assistant to check the status of your dynamics-related
inputs. Run the integrator for a couple of minutes and stop it.
At this point you could attempt to run the Integrator, but it would be advisable to only run
it for a very short time period and with a slow integration period. Since controJlers have
not yet been implemented, the model could go into a reverse flow situation and column
may flood/dry up. These situations can be difficult to recover from, so it might be best to
wait for our controllers to be instalJed!
o Add a PID Controller to control the pressure in the Accumulator vessel and add
a Face Plate for Accumulator-PC to better follow the PV and OP.
Name Accumulator-PC
Process Variable Source Accumulator, Vessel Pressure
Output Target Object Propane Valve, Actuator Desired Position
Action Direct
PVMinimum 1725 kPa (250 psia)
PVMaximum 2100 kPa (305 psia)
Kc 2.0
Ti 2.0 Minutes
SP 1900 kPa (275.5 psia)
o Add another PID Controller for Accumulator level control purposes, and include
a Face Plate here as well.
Name Accumulator-LC
Process Variable Source Accumulator, Liquid Percent Level
Output Target Object Reflux Valve, Actuator Desired Position
Action Direct
PVMinimum 0%
PVMaximum 100 %
Mode Auto
Kc
Ti 10 Minutes
SP 50%
Recall the pre-heat section of the flowsheet and the Feed Pump operation. You initially
used efficiency and pressure rise as the active dynamic specs for Feed Pump. You are
now going make the pump characteristic curves an active specification. Before making
the change, however, we will have to record the current operating point so that we can
generate the requisite curves.
CJ In the Feed Pump property view, Dynamics tab, Specs page write down the inlet
actual flow rate (capacity) and the head:
~·
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
l1·.b_;;~J;. ~~~;·1.wi;_~I~0~;;;~ri~~L
1
cCM,oct-eristic(;,""" .. - - - -------- - ---------- ------- -- - P-~mp~pe;,d
.. -d
ii
f;ti~~i]ll~':::·:,.~------- - - _Jl
,,.----..-·-·----------·~ r;:, Generate Curve Opli0ns ~Pump: Reflux Pu~
f Clo,,.,CuM! 1>----'--;:__~------"~--------·_,,:._~----·-·c... - - - - - · -
- --,f:J •
1
-, __ ·::::·--:=:......:-.::::-.'::°:;..1:-1111' ,a'---- -- ------- ------------cca-, , ·
G;;;5
o Choose No to the question "Delete all existing pump curves prior to Adding
Generated Curves"
D Close the resulting pump curve windows that were generated and go back to
Dynamics 1 Specs page. Change the active specs to Use characteristic curves
and Speed set at 4000 rpm.
•/.
·-·-·-1 I
Ii apeG
ij l-io!d\lp
Strpch~rt
i [""°" "'"
' 1Ruid He • 'l,:/il,;al
lSpeed r,.,.,ml
1.116
-4000
r
P'
1
I
Effici,ocy [%/ 1s.oo r '
503.7 r i
r '
P-ressur;, rl,~ [kPaj
I
; Pew;,,- [',:,1/h] SJS9e~004
] Capadcy [rn3,/h) 108.--llJ
IU,.,. c:harararist,c curv~s
"'r
l.~i~:,. 1
;:~~:~~~: :~:;e ....................,,.... _ ~empty> -- r
CJ Create one or more Strip Charts to monitor primary variables in your flowsheet.
Some suggested variables include: Reflux I Mass Flow, Reflux l Pressure,
Propane I Mass Flow and Propane I Master Comp Mole Fraction I Propane.
Include any other you might be interested in.
Cl Run the integrator and allow the model to stabilize.
o Once the process stabilizes, save the file as 07-ColOvhdCootrol.hsc.
When the Depropanizer was originally built in the steady-state mode, it was specified that
the mole fractions of ethane and propane in the overhead would sum to a value of 0.95.
Once the column was run in the dynamic mode, this specification did not apply. You will
change the control strategy armmd the column to reintroduce this specification.
o First, add a Spreadsheet to your flowsheet and use it to calculate the sum of the
I ethane and propane mole fractions in the Propane stream. Import both mole
fractions into the Spreadsheet and use an addition equation (=B 1+B2) to add the
two values and put the sum into cell B4.
D What is the current sum of the ethane and propane mole fractions?
I D Next, set the mode of the Accumulator-PC as Off. The new control strategy will
vary the Accumulator pressure in an effort to control the propane composition.
D Add a PID Controller to the simulation with the following data:
Name IC-100
Process Variable Source SPRDSHT-1, 84
Output Target Object Propane Valve, Actuator Desired Position
::·,.Par~fue~rf.;·;pon_r.·g~~~ic:ul!:
Mode Auto
PVMinimum 0.8
PVMaximum 1.0
Kc
Ti 10 Minutes
SP 0.95
CJ Note that the Controller Action is not given. What action should this new
controller use: Reverse or Direct?
a Add the Accumulator 1 Vessel Pressure to a current strip chart and run the
Integrator.
Does the model stabilize? If not what actions can you take to do so?
o Save your case as 08_ColOvhdPropane.hsc.
This section of the workshop continues with the case that was constructed in the previous
task with the Accumulator pressure being set by the ethane/propane specification.
o Make sure the file 08_Col0vhdPropane.hsc is open and the Integrator stopped.
o Add a Relief Valve to the main flowsheet and enter the following information:
Connections
Name RV-100 (default)
o The Relief Valve requires a value for the Orifice Area to initialize. Go to the
2
Rating I Sizing page of the Relief Valve and enter an orifice area of 1290 mm (2
-------- -------------"·
!Fi
..,='~------------------------------
Reliefval\k:RV"JOfr ;, ·-· · -~ tl •
ci_.~D~-'-,~_ign=J~a-'-;""tin-~---'l-W'-o-'J-'-k,'-h'-e;'"':;:i""""Dy"'-e-'=---k~,1'·_-'__ ~~c.c.,c_-_c,...~_"-___""_""__~__ ~__~_.~__~__-__""__~_.c.-'-'_~_~...~...~.....~__~__"___~__~_~_.c___~_-'-' ;· -- . - .,
i[ I
l~J [J Ignored
11 1 I
I I
'j11
"
I
I'
I,
L':::::··==-==J -~- ::...:::.:.:-
,-----~
I 1~_De1ere..__~f
I o
o
Run the Integrator until the problem stabilizes.
Save the case as 07_ColRelief.hsc.
Now try to test out the Relief Valve by introducing an overpressure scenario. The easiest
way to do this would be to close the Propane Valve, thus shutting off overhead vapor
flow out of the Depropanizer system and simulating a valve failure situation.
o On the Face Plate for the controller setting the ethane/propane mole fraction by
adjusting the Propane Valve, change the mode to Manual and set the OP to 0%.
This closes the Propane Valve.
IC-100
II~;~:~~:::31 ]T~;J
I
\
o Create a new Strip Chart for monitoring the relief system. Make sure to track
Accumulator I Vessel Pressure, as well as RV-100 I Percentage Open, To
Flare 1 Mass Flow, and any other desired variables.
o Is the Relief Valve big enough to maintain the colwnn pressure at the relief set
pressure (2205 kPa)? Will it keep the column pressure below the fully opeo
pressure (2275 kPa)?
,___
fl_eliet_Symm:, . . _
-
.·. __
- ,-1:
'(;_
eel-, -f----,,,1,,-,,-,,+"-,--+I(
I RV,100
%Opening i
To Flare
MassFlow ~
'!f~
~ I
I i
ill
I~
1
__.......l--"'
r.t. ~
l!J,,,,,,.,-,,,-:,,1"''"""''"'''"'' ,,,,,T,_ ,,
m
>
t~ ,,,cf- ,+,,,,,,,,,,,,,+ ,,_,_,__
.8
' '"' 'JI,_
-1-I II
J
I
, L,J,_,,-'' ""L""""'"'"il---1---L--
I -!!
o Stop the Integrator and return the original Accumulator pressure controller
(Accumulator-PC) to Auto and set the setpoint to 2000 kPa (290.1 psia). Tum
the Accumulator controller associated with the ethane/propane mole fraction
condition to Off.
o How much time is needed to return the Accumulator pressure to the set point?
[I
r l;
E
; I The Event Scheduler and
Cause & Effect Matrix
[
; Aspen HYSYS Dynamics:
Introduction to Dynamic Modeling
I
I
I Lesson Objectives
' I
'--' Review the Spreadsheet operation
-
I! i
u
--
~ ,,'
!I:__;'
.,----,
r
/_j
I
,.;,'f-i,,.
·,'. ( The Event Scheduler (1)
L Action C ......../
Jump to Sequence B /
I I
I 1&rl
Aspen HYSYS Spreadsheet (1)
I '
Create custom data input/ output forms
I
I @aspentech 92015A1SP~nl•:d,no[ogV,In<:.11Hr1gl,l,;re""""'" I 5 J!YNE
I Import/Export Methods:
- Connections tab - List of variable imports and exports
I - IF/THEN/ELSE statements
j
t~:·~,
@aspent€Ch "1t11S:Aspen fttln1oto0v, Inc.Allriuhb!,e,,,,,,,,.d J 6 J s)N E
©2015 AspenTech. All Rights Reserved. 9-3 Aspen Technology, Inc.
I
~;
\
Aspen HYSYS Dynamics: Intro to Dynamic Modeling The Event Scheduler and C&E Matrix
1•>'1'"" r
Takes inputs referred to as
i'""'' 'Causes' and sends outputs
'l"'o\s..;"~ : r
v,,...,··;~-J called 'Effects'
ii.urr ~.·,-
1.coa P r , - Each input generates a
Healthy/Tripped, On/Off, etc.
I indicator
- Effect may or may not be
I
.. L
connected to a model variable
f D=,p..,., T"I
I•-< 0/IQc".I
C: ...JlQ,,,~-. .
,,,
i ,;""ec,;~;~•,-, -,- ' , .-_,_,~~--, _,~,"" u,.,,, .-- ... 1
••••ijf),_0... _. ""'
.\r•.... f ___ _
I Ii ·-----"':··~.'"-----
r
1~·-;-c-c' .:.-._,.T··
I.<.;
'.,La, ,,_,,,,.,
1-. : _ri-,r,
fi'. ..... r.
- c~- '):1
r ,_,_,·-·"·--.-......., _ _ 1
·~r··:=:ec:c;,,-n,:+=q .. ,,•,=s•,cshc:.x•eJ-,o"=·,..,...,.,...fr --<:;: __ ,_._ ,,;,:cc, .. ,, , r.,_·-...z ¼., -.,-=, ,.=r.. ; .,o,; ,,,,.,, ..-=i'T .. - ·==""'""csr.,•c, ·-=- _.,
@aspentech ~ :w1s Aspe.,Tccl111nlagv, Inc. lltlri!lhtsr~Sel"-'ed I 9 •1YN E
ll
~
Workshop: Event Scheduler and Spreadsheet
Workshop:
Event Scheduler and Spreadsheet - Tasks
©2015 Aspen Tech. All Rights Reserved. 9-6 Aspen Technology, Inc.
I
I Aspen HYSYS Dynamics: Introduction to
Dynamic Modeling
I Event Scheduler and Cause & Effect Matrix
I Workshop
I
I
I
I
I
I @aspentech
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
Objective
In previous workshops, any change or upset made to a dynamic model was a manual
procedure. For example you would have to close a valve, change a temperature, etc. In
this module you will focus your attention on scheduling events that will automatically
perform certain actions.
Description
With the Event Scheduler, it is possible to have Aspen HYSYS to perform given tasks
while a simulation is running in dynamics. The tasks can be triggered by a pre-
determined simulation time, a logical expression becoming true, or a variable stabilizing
to within a given tolerance for a set amount of time. Examples of tasks that can be
performed with the Event Scheduler would be emergency shutdown, start-up and some
batch processes.
The Cause and Effect Matrix operation is offered as another means to automate certain
tasks in HYSYS Dynamics aside from the Event Scheduler. It replicates a cause and
effect matrix commonly used in designing and operating the safety systems of many
processing plants. It looks at process values throughout the process and, based upon
safety thresholds, determines if certain equipment and/or valves should be shutdown. The
unit operation is similar to a Spreadsheet, though it primarily deals with Boolean
variables (0 or I). It takes inputs called 'causes', and sends outputs called 'effects'.
In this workshop, we will work with the Spreadsheet, the Cause and Effect Matrix, and
the Event Scheduler Manager.
©2015 Aspen Tech. All Rights Reserved. 9-7 Aspen Technology, Inc.
I
I e To Vent
Flare
I Feed
VLV-100
To
Tank
V-100
e
P!C-100
To PCV
Vent
e
•
Q
I Fire
LIC-100
Fire
I
Calculations
To Drain Drain
VLV-102
The process you will utilize in this workshop is as follows. Under normal operation, the
I flow into the vessel V-100 is controlled by FIC-100, the level is controlled by LIC-100
and the pressure is controlled by PIC-100. In this module, a series of events and a Cause
and Effect Matrix will be added to simulate a fire in the vicinity of the unit. When the
pressrire reaches the set pressure, the relief valve opens to relieve the pressure built up
I inside the system. As the fire continues, pressure keeps building up and causes the
dosing of the surrounding control valves. When fire is off, the plant is gradually brought
back on-line. A Spreadsheet is used to calculate the heat added to the vessel under fire
conditions.
I •
•
•
Task 1 - Spreadsheet Fire Calculation
Task 2 - Build Event Scheduler
Task 3 - Create Cause and Effect Matrix
i:
I
I ""'
~I
-1 ~
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
o Go to the Spreadsheet tab. Review that the cell labels are as shown in the image
below:
~
f;~~~ 1fl!:~~sJt~~a=-f Spread;i1e-e, ~~Icula~~_9r~:~J~~~~~~j~~ l N~t;-1_
CurrentC.el1 - --- - - - ---- - - --- -- -- - -
1
Sel Pressure
:uc-mo
Objec,
., ,..
Variabl~
; Vs;pc,ur level
OK n
j ?iC-100 i V"pour /1fo,,
I PrnJuctB!oc.~_Dra,,, j Vapoor ."Ic,,; FIGw
Obj~,t~ilti!r .. · ...1
I PmductB!"ckJfore Vap<>lJr Md~r F!~w
I Prcuioc1B!ock_ Vrnt 'Vapour/•fob,, ·~'All
I Qr:;,.,,
f?V.. iOU
• l............ . ................................ J I /EE-WO
l
i V<1pm,r
1
\/o!ume
'kpo11r Volum~ >Tow
l'e,-.se/ Diameter I
,;:stream;
,-_,_ Uni\Ops
··:,: Lo:gicals
ifr!Dmin 1-,,;gmc_a ,.;1-._,iiili..D:
j To PCV i !!,..;:.d l.cngft, -~r Heig~, .') ColumnOps
T,, PW i Ve,se! Md~ Fmc ,... .,i : '.) Custom f
,:G!'; Flcwsheet
C) Case ;: ~~7,!
V-IOQ I
I;;;;; :;:::~: ·
I Vessel P1ern,re Drop
dyMmlc H[I
[_;J
'----1
i[ Custom., JI
l________":________:_"·- I
C- 6asi;
::'c ~aly>1s ,1 '.,~,"c,',,""·'·········""''"''''''''''''''''..! ! Ve:~::L~:-sf~:::.~ ······-···· " L.,,..,.,,,,,,,,,,,,,,,,,,,,,,,..,,.....
i', ,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,, '
I'
'J·
o Add the remaining required imported variables using the following table:
I]
Cl Enter the following formulas and values to the corresponding cells in the Fire
Calculations Spreadsheet:
r 02. "'"1variab-le:
@lF(B9 =I )THEN(OJHSHBB)
A C D
Q l.7i'9e+006 Btu/hr
Fire l.000
II \i:;~;: 00
1 ,1,
O,·em/1 UA
Pow~,.-
-~All
Ji l1li [IUC-100
------,,1,---------!,t,,,c.•-cw,---f,_,,i\-\[+,roo"'m--------+-+j--------f
Power2 c,str~rns
(JlliiiIDps·- --c+-----
1. i, I_ Prod~ctB!oc-k_Dr~in i~JI j Temp.,rohlreAppro,irl, <:> Logicals
i ProductBlc-r:k_F!ure i ]i I U,er V&rnbb
ii; j I mt I ,11 !Ulflijy{fowro!~ 1
() Ut<1il.Les
I
E : 5 '
!,,
.
j!
I il [I rEE ,00
j To- Dmu,
ii
1!
I' Utili<y F!c!d "'""
t,1i/,ry H~at Fla~r
I 1
I t~::~._J
I
] IJ/(/ily 1,,1,, f-"mp 1 1
.,: ,[ 11 ToPCV Ii 1
U/1.!flymu,,m,m f ow1u•e 11
1
I fo PW 11 (,r1/1ty mlfl mwn fl"'" r<1/e
To Tank I U!«1fyOut1~1 ie•r.p I
!l _iL:, .~e;t _____ "JI________ ___
0
__! _________ , .. J
I
Note: The Event Scheduler will change the value shown in cell B9. If it is equal to
anything other than 1, the energy calculated in cell BB will be exported to Q Fire via the
logical expression in cell D2. Otherwise cell D2 exports a value of zero to Q Fire.
Now that you have created y1,mr fire/heat duty calculation Spreadsheet, the model is ready
to be sequenced using the Event Scheduler and the Cause and Effect Matrix. A few of
the automated sequences will be set up via the Event Scheduler, and others using the
Cause and Effect Matrix. The two features will work together as your model runs in
dynamic mode to give the desired steps.
CJ Click on the Event Scheduler icon on the ribbon under the Dynamics tab.
-·
~- I
Honie
I,~"'
,: .__ ·-'i
;-:;:r;}
Economic>
~ Integrator
.·
: SI· Re<tlTime
Dynamics
~ 1-• ..1
1 '
o
Vlll'W Cust6mize Resource;
l~Dynamlc Initialization
¼t' Event Scheduler
~ ~ Control Man11ge
I,tfu Face Plate.1
\rmm1c,·l1 Dynamic;
ode :: Assistant
i
i Run j_.stop-! Reset
j 'al Snapshol Manager
T-a~eA
Snapshot
I'' t:.:c. Strip CJ-IBrts
)ynamic Simulation. '" ! Run ; Modeling Optiomc r:, I Toolli
o In the Schedule Options group, click the Add button to create a new Schedule.
I
I
D Multi Events
o On the bottom right hand comer of the Event Scheduler view, rename the new
Schedule to Fire Relief Scenario. Press Enter.
l"l'"'
•,----,
i'.2!JCo"'pler,
il~J Fwlly Jp«~l«I
il,'fj Holdlog
il<fi"] IHotL,V<
i r'e:'] I"'""''""
:f1~l
l!IJ "'T<moB,p«d
"' ""'
• ...................... . :_e~Jw,i!i,9
[,l)r,"""'""'"
o Click the Add button on the right hand side to create a new sequence.
o Change the name of the added sequence from Sequence A to Fire Relief.
D Click the View button on the right hand side or double click on Fire Relief.
ii , S"<q,.,otl">l:o0¢iom
1! [-s~ ___ H_l:~ -_Ii ~~H ~ __iL~toru_j'._- __si,.p l!
II
11
-~-~-- -- .. ltr~,~~"'~f«~~~:: : : :".:
©2015 AspenTech. All Rights Reserved. 9 - 13 Aspen Technology, Inc.
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
The Fire Relief Sequence created in this module will hold two Events to be executed at
predetermined times. The first event initiates the fire and the second event extinguishes
the lire. Within each event, a set of actions are performed. Both events are summarized
below. We will provide detailed information on the data entry for both events.
Jump fo
I
I : lCJ All ev~ni'r w,11 run ;n parnll~I. i
1,
!~~- .JI------~-~L-..
. . 1· .
i I
I·
1
..............:. :·....__________ _) _ _ _ _ _ _ _ _ _ _ ___JH!
i l
CJ Click the View button to show the window for Event 1 and view the Condition
tab.
CJ Using the radio buttons in the Wait For section, select An Elapsed Amount of
Tim_e.and enter a value of 120 secon~s .(_2 minu_tes): ~~ .~~it: F'~~ !tel?::: .tll~
~ ' . Eveflt lot' Fi~e-:!Wne(of_H~~-R~ier~.~.r}h'.}
I If
if
!:
Ii
Wait For
Count Up
000:02:0.0
000:00:0.0
(hm,) 11
:l )~~~/E~;b~-----~;:;;·N~;,,-.
j
£~:!~£~£~~~-~' .i?rf~-~:~~:-_:: i
,--- ·---1 [ Add ] j
~d;v;doai A<tion s~,n~os
I . :11
! ,~ ···'"'' ____J j \ i·Conlig1J,ation
!Ii!
::i ;
! v.1 ...
i. _ Cbiect
...-----~l
;··; !~««~<1>iOo,y ''' i
:1!
__ ;.__.L., ___
~~'-:::::'::';~ iL:
Seli?:~·Si>ed.fi,;~on·van~blfl
Obj~ Voriab'.~
- -c_,•1111111
[__ __ I __J,
)f'" Co<e(Main)
::1 "'"'"
'""
: F~ed~,~;rx<._F,"'1
I
!,J) ObJec,Fiiter ;·I
i 'BC 121
!Iii fin, Co/rnlocio.ox <!;·All
l
I
\ii I;
Floe~
!IC·/0,J 'I'
- Uai\Cps
/·-jl_,, __ ...JlPIC-iW
:;;;;~:f!;NB111ga1...- >Co.,,._ - -- --
i ••· : ________: .•• ··- •• ., _____
i Prndo,Hlcck Dro!n
1p,,,,i.,,:%"-r-Jior<
'Lcgl,als.
c') cceumr10p1
I
ri'
··1 \ Produc!Blc-<;k_Veoc ") Cu.tom
,·-·,-,--- ' :[
it:~11:='"'~i ~ ~:""~ 1~:~00
) T/if-100
I re Drain '.[
L_ToPCV __
Nam~ IEv,,ntl ~l,C:)Ar,aly<ls
i1
--~--- -·---{1 :i
---1---- ---,. /
•• L_~~---- :j
o For the Value field, enter a value of2.0
II , I
1
R'" Add He,rt to Vessel !L Delete I Type ( S·p~;fv VMia·~;., ·-----·--···- ····--=~~
(
1
/ i L_ ___ .':_Cl_?_t__:J ! ,. nfigur;tion
llI[ ! i
1
I! I Description S9:
IJ Click the Add button again in the List of Actions section to add the second action
associated with this event.
CJ In the Individual Action Specification section, enter Close Pressure Control
Valve for the Name.
a Using the pull-down list for Type, select Set Controller Mode from the list.
Ii Emble Action Name I Add ' Name Close Pnssurn Ccrnlrol V..lve I
111 fl Add Heat lo Vessel I r=--:-- ·---r:, j
(;! C!<>SePreswre(ont ·...... Dehlte_. __ _.J I Type ~lrollerMode LJ "illll
r
·-·_':?fY__
_I
j
i
!
,- f j Specify lfariable
i. .on 19ur~a1 .'it,art..'iequenc-e
---="L.E__:__::___:.~.:.:1·]
I' [. .· "'""·. I I!.. Current
I i Control!e1 Stop Sequena, lied: Target.•'.-..-.... -.. 1. :,,
I
1
New Mod Ii Hold Sequence
I "...,.ume
--
[
···--············j
-
ence
Play Script
Save SnapS:ltot
1
1'
[i.=c=:M~de __
I
.....•..•.
- 11,
'
D Within the Configuration section, use the Select Target button to pick PIC-100
and click OK
i[
I ......1 [_ _
I 1
lndi~iduai Action ~pec>flcatior,
~ i ! Name (foseP~reContro/Valve
___J ! I Type lsetControllcrModc ···::~:::J
~lete
.......... · ..... --- ...........;
i[i
rl f
:rf'o:::7M:,ol··- ; ,11
j II I i l/C-/OO I ,--~~-_-_=] Il
11! I I I ii
CJ Set the New Mode field to Man using the pull-down list
Cl Check the New OP option and enter a value of 0%.
D Close the List of Actions window for Event 1. Make sure you have all the
following infonnation.
[
- - ' ............... ,
1
---::.dd·-··. ·······-·i Ii I' Narr.e
·1ndividualActionSpedicat;or,-
'
' !
I""
Add Heat to Vessel
C!=e Pressure Ccml
r~D*:--~~ l
L·-----·---·-· ,
! Type 1. Set Controller Mode.. :J I
)J, !i'
1 ji J ll -,;PY
~11
li
1
I i
l_~:e i Event 1 j Action fat Nam~ __,_,_~rt_:::,____ J:
o Close the Event 1 window and return to the Fire Relief Scenario window. On
the Schedule of Events tab and click on Add button.
CJ Select the cell below Event! and click on the Add button.
D Change the Condition name of Event2 to Pressure Stable and Action List name
to Post Fire Actions.
D Double click on Event2 (or select Event2 and press View button) to view Event2
window.
o Using the radio buttons in the Wait For section, select A Variable to Stabilize.
o In the Variability Stability Criteria section, use the Select Target button to select
V-100 and Vessel Pressure from the Object and Variable lists. Click OK when
complete.
I ii
-",-"_:L
Select:Target Yar[a,ble --Cl-·;
Obj«-. v~ri•bO•
ji
'"'] Pnl<luru!/o<;(f/a,r.
'[P,<><1<,cr!l/0.:t_'l,.,1
' Vopcur Molor F•o,v
Vopour,'!<>!e,
, Vap<>!,r\lo/~m,
'
I /ii '~
l;,~~ I
l To PS{
·: .. :: .. ]·, Movi!J"lodcope
i~
I
I>) f!ow<>.aet
: !VLV,100
S«o ")' '~c.,.. i i>'LV-/01
j; () Ba<is 'i• L___
VtV-102
_
c:---c----11 !.!
~f-_._,____t1! (·MO-ly<is
ii
·-li
ii v..
I CJ
fl,
-..b .. O...nption,
Use the radio button to select Bandwidth and enter a value of 10%.
C.~~-= ·:J 0
I IIi
I
f[
JI r
i"Wa:)·~:~
')
~~~;c-t~~=~~;:
An Elapsed Amount of Tim"
•:) A Spooii, Simulafo:,n Tjn,e
True :I!, (~~:=~~:~:~~_'.___J'.'.:; V-100 Vessel Pres,ure - ""'""]
[
I Iij ~--C-c•Wo'O'bSi""'''-------..1
Not Avail
Variable St~bilily in
j[ ::Sm j
ij '·····-·----- ········-·-····---- -····· -······· -········· ·I years j·
I Cl Enter Fire Off for the Name in the Individual Action Specification section. Keep
the default type.
o In the Configuration section, click on the Select Target button to reveal the
Variable Navigator window. Select the Object as Fire Calculations, and the
Variable as B9. Click OK.
Event 2 of Fire Relief of Fire Relief Scenario 0
:: rti,tOfA~ar.,:forThioEvent
i! t:,:,ion N•m•
foe Otf
, !,__, · Dele.te·__ ,J !
\r._coJ>"{ _1:
Obp;:t v,rrui1,
---: i Dt~,n SJ: Vmd !11,.g:1, 1>1 H•ig!il ""----'"';:,,
j : <,ed '/µ_·WPN«~"'
.]
J[:~~~kJead 1·0bj,,:lfilt,r·-· ·[
Mnljp I Fin:Colwk(ior,s
:Litl
: 1·11 1-,,-.. _
p
w..,,., ti
......."'" \j; N..,;ga,orSc~
f1 I ·@ Fk,v.,-~.,..r
L;:oc.••
f:jl.~=~
o For the Value field, enter a value of 1.0.
::,~----
·~-~--~-=
lndi~1du,a;l Acti,;,n Spedfication
1.000
89:
De~cription !I
]!
Curri'ntVa[u,!c 1,000 Units
, ............, .....,., ................................,..,......,. ,.,. ,. .,.....,. , ... _ ............,........... ,ji
CJ Click the Add button again in the List of Actions section to add the second action
il
._J CJ
associated with this event.
Enter Pressure· Controller On for the Name in the Individual Action
Specification section
u
o Select Set Controller Mode as the Type.
. o In the Configuration section, click on the Select Target button to reveal the
.
Variable Navigator am;! select PIC-100 and then click OK
Cl Set the New Mode option to Auto, and check the New SP box. Enter a value of
r!
(1.1
,,.J
517 kPa (75 psia).
~-1
~'
I
I
I
N,olTie Event 2
I
Action L& Name Poi;t Fire Actions
o Close the Event 2 List of Actions window. Close the Fire Relief sequence
window as well.
I o
D
You are back to the Event Scheduler window now.
In the bottom left comer you can expand the Fire Relief Scenario schedule
hierarchy to view the network of sequences and events you have just set up.
I
L~
~;i!
i!J MirltiEvents
----------------- . · - - - - - -
1 .. ® FireReJidScena,10
i .. <D Fire Relief
I .1 ® Eventl
i'~ ® Add Heat to VE-sel
® Close Pressure Control v~~e
.~ .1 ® Event2
® Fire Off
@ Pres.sure Controller On
~·1
I
I 02015 AspenTech. All Rights Reserved. 9- 20 Aspen Technology, Inc.
I
;!F--
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
o In the Sequence Control area at the bottom of the window you can click the Start
button. This essentially initializes the Event Scheduler to run. But note that the
HYSYS Dynamics Integrator is not currently running. Therefore the Event
Scheduler will not initiate until you run the Integrator.
i··;··®"F;;~·~-rd·1~;~i~"
i • <l) fit0Ro1;,1
' •®E""'ll
@AddHoartaV,osol
®Cla,oPrmo,eCantral~alvo
•@ EVOO!l
@R,.Olf
® Pr,m,roCcnlroU"On
o You will not run the Integrator until after you build the Cause and Effect Matrix,
so go ahead and save your case as 08-EventScheduler.hsc.
Cl Double-click on CEM-1 (the Cause and Effect Matrix) on your flowsheet and
navigate to the Connections tab.
CJ On the Input (Cause) Variables section of the window, click the Add Input
button on the right.
Cl Using the Variable Browser that appears, select the Object V-100, and the
Variable Vessel Pressure and click OK.
eo,,..,,,,
Cl On the same line as the variable you just imported, enter Tank Pressure into the
Description field, and HHP-001 for the Tag.
CJ From the Output (Effect) Variables section, click on the Add Output button on
the right.
CJ Using the Variable Browser that appears, select the object VLV-100, and the
variable Actuator Failed and click OK.
o On the same line as the variable you just imported, enter Inlet Valve Shutdown
into the Description field, and LX-001 for the Tag.
I UM-1
EdltOu<twA-
~E~,
Note: When defining Input and Output variables for the Cause and Effect Matrix, it helps
to think about them as independent versus dependent variables. For example, in this case
the V-100 Vessel Pressure is independent. Once V-100 pressure surpasses some
threshold, it will trigger a behavior/response in our dependent variable. The dependent
variable/output will then act in an on-offmanner.
Li'9"'""'
Currently the VL V-100 flow control valve is open, allowing flow into the vessel. Once
HYSYS Dynamics detects that the V-100 vessel pressure is above 655 kPa (95 psia), the
valve will close and feed into the vessel will be cut off. This is a reflection of the on-off
type behavior of the output/effect.
GM-1
I
i
I !r
I
,itt!~
'
I Cl In the first column of the matrix elements section, just to the right of the Inputs
I Cl
(Causes) area, type an X in the Tank Pressure row.
Put an R in the CEM Reset row.
CEM-1
I
I
I RESET: One,;,r more 1 in pots causes a 1 output {a, long a,s !here are noX, To,-( active ar.d All P mustb., 1).
TIMED TRIP, Somo" the TR.IP but the input must have remained ;:e,o [or atleostlhe !imo, p,eriod.
COINCIDENT TRI~ In contrast to all other t~p< a ze,o input kir All the coincid•nt.,gnalo of the .. me g,C>Uping causes a Mro outpu~
0
PERMISSIVE: All P input< must bi: 1 to o•rmit an R to haw the desired ~ffect. Also re<jLiired fora STANO SY 1 effect, a foe~ reset and a local ,w,tch ON,
INHIBIT, A1 will fr,hjbit any trip of the out,:,utwh.Ct, would normally b,;e caused byan X, Tor C
STANDBY: A1 will cau,ea 1 (as lor,g as lhereare no X, T orC a,tr.-,and All P mu;t b~ i) and a Owill'°'""" a Ooutput (no INHIBIT applicable).
1/0Tl~IG: ~fo,t ~~ minimum numborofinp<!t trip• to <~use a:mo output. Ex. V35 or V23, Ali V entriu porc~lurnn mu>tbe identical (on!)' o= V g,oupt
The X input represents a Trip. In essence this means that once a certain defined
I threshold is passed, HYSYS Dynamics will act on some defined output (in our case the
VLV-100 fail condition). So once the listed variable "trips," the corresponding output
variable(s) in the matrix will change to their opposite orientation (i.e. valve fails shut,
controller goes to Manual, etc.).
The R refers to Reset. This object resets the output or effect after the input has tripped.
In our case, this object allows us to ''un-fail" or re-open the valve after the vessel pressure
lowers down to a safe condition once the fire is extinguished. While the Integrator is
running, we will need to manually re-set this Reset object by changing its State. You'll
see how to do this once you run the integrator.
Note: For additional guidance on Cause and Effect Matrix variable types matrix objects,
click the Cause and Effect Help button that appears when viewing the C&E Matrix tab.
1,·.·.
:
~.-0}~', 1,.:,,
Hom<'
~,.
Economin
fr"©rntegrator
: I,;,: RuJTime
~ r_.--10
Dynamic.; ]
f _.:
View Customize R~sourc~s
~~Dynamiclnitialization
, ~ Event Schedulu
~ Control Manager
_,.__. Fc1rn Plates
E:;;;;, Pro·
i Dynamics
Mode
!: Dynamic;
![ As~i'ftant
Run ! Stop I' Reset ii :if Snapshot Manager Take A
S:napshot fr:, 'i.trlp Charts
Dvnamic Sim\J/ation I'.. \
.
r,: ,,,
o Note that a sample strip chart is already created. Modify this strip chart or create
your own to track any desired variables for the simulation; see some suggestions
below. Change the Logger Size to 5000 and Sample Interval to S seconds.
:I !i
I[
11
i,,
!i
!I
lj
ii
1:
II ii
i 11
!i
CJ Click on Display button to view the strip chart.
CJ Select the Dynamics tab in the ribbon and make sure the Real Time checkbox is
I selected. This will run the Integrator at a time step that is in synchronization with
real time, rather than the default which is rather accelerated. Real Time will make
it easier to track the behavior of the system.
1111111
I ~
-· - j:
Home
_::~-- l; ~0l ·
'
Economics
~Integrator
(: :_,?_i Re.al Tlme ]
Dynamics
,.
i-_· ·_
View
IJlllo _~~
I
Customize Resources
Oynamiclnitializatron
' ~ Event Scheduler
•
/[)ynamic~- 11 Dynamics I
I . ,
!
Run 11 Stop--! Re5et ~
[ ~ Snapshot Manager
T-akeA
' Mode 1! Assistant ',
' . .
snapshot
Dynamic Slmulation "' ! Rurt ------2...l. . Modeting Options r. !
When rutu1ing the model with the Event Scheduler and Cause and Effect Matrix active, it
may help to review the next few workshop steps before actually performing them. To get
the proper behavior of this model, it important to make sure things occur in a proper
sequence.
o Make sure the strip chart you built and the Cause and Effect Matrix windows are
both visible. The strip chart is important because it shows the response of key
variables, and the C&E Matrix is needed because you need to click a certain
button to re-set the inlet flow control valve.
Cl On the Cause and Effect Matrix, ensure you are showing the C&E Matrix tab
and that you have clicked on the CEM Reset, Input (Cause) object.
loo,~,c,o",1
D"'"'!''°" ,-,~
T>ni<P,.,,,.,, IIIIP-o)(>I
n"'~""''I
<«,o,.,,.,,.,u,,o,,..,e,...,~,c-.,,".
~s,..v,,.;a;,r."'"'"""""'n.-.
a The button you'll need to be aware of is the State button/setting for the CEM
Reset switch. This Off/On selector allows you to re-open (or "un-fail") the VL V-
100 valve. Make sure you can see this section of the Cause and Effect Matrix
window when you run the model!
As mentioned in the presentation the emergency fire on the vessel is represented by:
I cause and
Effect Matrix
• Add heal lo V-100 via Spreadsheet
• Close pressure control valve
Flag pressure relief event
and close flow control vaWe
Cause and
Reset flow conlml valve
~ct Matrix
Now, as you let the Integrator run, you should see the heat duty to V-100 increase
I signifying the start of the fire. The V-100 pressure will also increase, and once it goes
past 655 kPa (95 psia), the inlet flow control valve will fail shut, thus stopping feed flow
into the system.
After some time, the vessel pressure and temperature will increase causing RV-100 to
I open. The pressure relief will allow pressure to stabilize and bring the pressure controller
back on line (as you defined in the Event Scheduler). Take note as the V-100 pressure
begins to fall
I o
o
Save your case as 08_ EventSchedulerCEM_O.hsc
Click the Run button if you are in Dynamics tab or the green light if you are in
Home tab to run the Integrator.
I -
!i~.l
ltom, E<onomic,
1,
, View C
,~or
Mae+
,; Cul
Hom•
SI
I !:<onom1«
,,.
DJnamk, 1/lm
•· ·;!'Pro,~»Uhl~rM•n•o..
~
~
~esourc,
~
o
a~n r,
cf!,Pa,t,•j
Watch the V-100 pressure carefully. Once you have noted the fire is extinguished
• "(jF1u,dP"l!agol\>10<ia1Lonl: Wo,Kboo
and the V-100 pressure is below 551.6 kPa (80 psia) click the On radio button
under State for the CEM Reset. This serves to open the flow control valve.
o Watch the strip chart. Stop the Integrator once a steady state condition is reached.
StripChart1
"-·-"~---~~..------···· --~"··-. . ' . :· :·_, . -.· .. _. -·---~---·--- ,- ·-·--/-,
1+-+-'--.-i-..-->----i---...;....---1-----!---',,,o,,,,,
a.~ i< ;~:N a.~i, ;.,;;.,.;;oi
~-W::..•)O~ '-~ ,pt~_.; ~- ~
seconds
o You can return the Cause and Effect Matrix to its pre-run condition by clicking
the black ''X" next to the CEM Reset variable in the Matrix, thus turning it back
to a green check-mark.
Ic~~~~J:,;;;;;;~r,&i,,;.'.;T;;_;;._;;1 r·----·-..·--·
11 11
iEffed# 1
r· I Outputs (Hfl:ct;J
j I Ca\Jse and Effect HeJp-.:.....J ] eypass r
,,!
1
! Re,et r
Input; (Causes) ilocal Switch I r
CEMR=t
v,tce::~ ~ ~ ! ~ lI /:
The simulation is now ready for another run. Again, to repeat the procedure you would
Start the Event Scheduler, Run the Integrator using Real Time, allow the fire to start and
be extinguished, switch the CEM Reset state to On once V-100 pressure falls below 80
psia (or any other reasonable pressure), and then continue rurming to a stabilized
condition.
o Feel free to run through the vessel fire event a few more time if you wish. Save
your case as 08-EventSchedulerCEM_l.hsc when finished.
fl
iitl
t
''
'.i'
D Activated
Dynamic Compressor Surge
Aspen HYSYS Dynamics:
Introduction to Dynamic Modeling
Lesson Objectives
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Compressor Curves and Surge Control
•
Dynamics-Stage 1
Different Templates
Unit:
r·.. Stage Ind"-< (omp"-swr Name -- :1
,--···--"-----·······-· .... Stage_ 1 __ . ··-····-···------,.---<empty> __ ,
Prebuilt Subflowsheet
i'tl'E-13!
[j"
sr., i '
L,\c.J
I
I Choose Scenario
~•! K·1<1(1,
~ DynamicAn.l~1zynam'ic:ia-K-1Cii,:"@M;i.in
l)~~:~~~~~~~Ji.~-i1.:~) , • , ~• -.,'.,C"':" , , ".C:.::,.:.·
(! Eq,(~""''!Tipe,if.,,,e,, ' \..,J\t,g.i>II«" An™""J•"•""' a.«1<11!10<~V>"'• H<a1b,..,.._,.v.1 ..
""""'""
•··1..,,.,,
., Pso<< ·_,:_· '' :.- . ___ -'
, -'~'.•~, !i (0,,-9<«10,
OVNl_l,l"'-<fl«-
iOVIU.C=p,"""'lnl
j:om,_,1o1Byp,,1lffl,
Run a Scenario
Head Curves
3
Ffj
l;;,1
II
Stage ~omp
1
Dynamics-Stage 1
E-Learning Resources
Compressor Surge
Analysis
llll;-,,sca;<:i,
,, '"""''" ,s,,
@aspentech
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
Objective
Compressor Surge analysis was introduced in Aspen HYSYS V8.6. It works in a similar
way as Dynamic Depressuring analysis. It is made for steady state simulation. You can
select a compressor in a steady state simulation and quickly build a dynamic surge
control scenario by using Compressor Surge analysis.
I Since it has become relatively common to handle more than one compression stage in
several processes, after HYSYS V8.8 you can simulate up to three compression stages
using the Compressor Surge Analysis. In this workshop we will explore this capability
I with one stage, but the workflow is the same for one, two or three compressor stages.
Description
The Compressor Surge analysis lets you perform compressor surge analysis under
different emergency scenarios quickly and easily. You can run a dynamic compressor in a
steady state simulation. This work flow requires minimal inputs. There are prebuilt
scenarios that you can choose to run. You can view dynamic results, including premade
strip charts.
I "When you activate the Dynamic Compressor, you can run a dynamic simulation of the
compressor, including:
• A recycle
• Controllers
• Pipes
• Valves
• Knock out drums
• Compressor curves
• Flow limits in the compressor. This table is used to construct surge curve.
• Completely solved compressor model in steady state.
]IH
Clone Curve
J
11
1
11
[! I I L· __ ..P_lqtCurv~1 J
L___________________ J '. , Vis< Ai!CoHeccio,,s
lI
J 5,0
I
I l__ __.=·:·::··--·-···· -
Effiden9 [%)
l .........._-··········--·----··-·-· -·
0.0000
. J IUpper bound r·o.-o
c-°'~ r'J Ignored
o Go to Flow Limits page in the same tab. Click on Surge Curve button. Notice
that the table is empty. You need this table ready. This is table HSY SY will use to
construct the surge curve in the compressor. Use next few steps to fill this table
out.
o Assume that all the leftmost points in the compressor curves belong to the surge
curve. Go to Curves page in Rating tab. Double click on each curve and note
down the rpm vs. lowest flow in the table (the first flow in each table). Make sure
the tu1it of flow rates is correct.
a Go to Flow Limits page in the same tab again. Click on Surge Curve button.
Input the numbers from the table you have just built. Close this window.
Wl1
if!l Speed Umt;
I
Flaw Uriih
"·----·--·---- . ----.
I Speed
Z4SB.OOOO
Flow
3733.9100
!
,
i
I I
3733.0000 5060.8700
4977.0000 6913.7000 ,
6177.0000 8635.6400
II
<empty:s <empty;, 11
I II
I
------~
I
o The Dynamic Analysis window is open, select the compressor for the Stage 1
Name, Dynamk~·Stage I
·j Stage#:
I' Template,
'!
L. Enter Flowsheet l
o Click on the Template drop down arrow and notice that there are number of
templates available. Keep the first one (cooler on discharge side) selected.
NOTE: By choosing which template to use, HYSYS will determine which unit operations
are going to be added in the dynamic flowsheet. Please note that so far you can add a
customize template only for one stage.
lJ
fL~O(l1; on '!ischa!9~ ~e - ~- ~ _ f --
"° dowmream scrubbe.-
0.-i
Cooler on dischar-ge ~e.
Cooler on suctiun Yde
~-
I
C~st~:_ ~~~te _ _ _ _ I
CJCheck the Active box to activate dynamic. If you skip this box now, you can
activate dynamic later on.
I o Click on Enter Flowsheet button to enter the subflowsheet. Notice that if you
stay on the main flowsheet there is a subflowsheet icon placed on the main PFD.
This subflowsheet contains the automatically built surge control flowsheet.
I 3
Comp Discharge
I Stage
Out
~omp
VLV-100
CJ Once you are in the subflowsheet, notice that there is a green border; this indicates
that you are in an independent flowsheet from the main flowsheet.
( ~·
I i Cl Move the dynamic analysis window on the side so that you can view the
Li
subflowsheet properly. Click on Dynamics tab in the ribbon. Examine different
options available both under Dynamics tab and in the four tabs of Compressor
Surge windows.
D Click on Scenario drop down arrow either from Dynamics tab or from
Compressor Surge window's Run Control tab. There are four scenarios to choose
from. Choose the first one (discharge valve failure).
Unit: Stage 1
II r~:~:b~~-_ [I_~~~~~-~-~~-
r-
Emet"gency Shutdown
j Current Time
Lo:5____ ~-··sernnJ=1
0.0000000
'"
NOTE: To review the differences on each scenario, refer to HYSYS help by pressing FI
••
I . I ,-'"'""''""'"
II-'·'"''"''"''·'·";
11,,_·)l-.,,.,£''1•" "'""'
.,,,.,.,,,,,__,o,,,,,;,
.,.,,q. si,
'""·'"""'
•1,r"'''''""'""''' 1,,,,1 ·'"'·"'""'" ,1,•,•u ·n<ir,,srrn,
'""l'-;.,_,r,,,, """"'-"''''·""'~defoHla,,,.,._-,,n,c1,,
I
5ceM,in d:q,.(!,,_,.,, , SI, ,,.,:.c~ "'" ~I ;;,o ~,!Lo-,.,.,~
,·,, ";,•o,e;lo ""~">;; 'o,,,~c,1!""''''"•A,,llo1·...,~,., " U,isj51hall1art<
• F.c,,1<1"1(rlho(amr,,c-c«·•
~"'~''Mo,)el
I now that size plays an extremely important part in dynamic calculations for any
equipment. This tab currently contains default sizes for all the equipment placed
in the subfl.owsheet. If you want to change any of the sizes, you will use this
particular tab. There are pages for valves, vessels, pipes and compressors.
I
I Ve~s;;,.f,:;
Pipe~ [! Mass Flow [kg/h]
,, 4.077e-.Q05
Antisurge V11lve
6.11& .. cos
637.4
Check/Blad< V11lve
4,077e+005
37'4
Hctbyp:,,u Valve
434.8
4,(}77..,,.005
Compre-ssor ,i Inlet Pressvr" [kPa] 6350 8223 8223
I
8245
!i
1t- - - - ~ Ii Pre-ssure Drop [kPa] jQ.O 1.92~a-003 2ao
1
!: Opening[%] 50.00 1000
I<,.-
. ::
1000 ,O(lO
I
I
Notice that compressor curve status and surge curve status are "input complete". Fit
Surge Controller does not show a status here. However, as you have entered flow limits
already, the surge curve should be ready. You can verify that by opening the Compressor
Surge Controller's Parameters I Surge Control page.
r
i c~~~ect~JPa~ameter;-i-Mon1t~U;e~ Va~;bJ~----~ ______ - _-·-
)! --Pa~meters Surge Control Parameter5 ---- ----------- ----- ----
I fl Pa@;;;te7A"[~J- - ------ ----- --~4--:sru :
I
j ,I - - -
I .
udion
I_ Surge Control IParameter B [m/(m3/s)J 76234-1
L...Fi;;J---+ j I Parameter( [m/(m6/s2}J 585.217
't•·;-11
.' ,
1 ) , Control line [%] 15.00
i[
s. 1I I· Backup Line_L%1
1 5.00
I
IQuick open<ng [%/s] -----·--"-----·-·--· 500.~
I
iI
II I L . .fit_Surge Control Paril:meters
-~--"-~---~~-~
I1 - ··" ----·---·---------··-------"---·--------------·--·-··"'
NOTE: Ij you cannot see the Dynamic Analysis window anymore, go to Dynamics tab>
Summary.
Resource;
[>, I11;1
, 1
o
VieaN Customt::~
~Event Scheduler
(
~CofltrofUmoger
/'sh
Face Plates
-ij
. .... ·,;- ', ..-, L~~"-. I_st~prEW~d :_ ~--:·--~-·-:·-: '.~.~_!:.E!~!~-~~ .. 1-~~!~;;;_~-~~; .- _ p~~-e~"t_,_
_ f:.!J?!,:·:/,--.:":: ·-:-.;·:,_ · · · -·-.<- Dynam_icAciaiysii~mics~s't,.ge,1@M.ifn-· .. ·-:·----,.-:.··;.. · ··,
D Go to the Strip Charts tab of Compressor Surge window. Review the three
prebuilt strip charts. You can modify them or add new charts if you want.
!i'.~~~:~~~!~;;;J:c;,;,;~;;;~
j 11 Strip C~ortName ; LoggerSi,e l~ S..,mpl• S..,rn~I• lnlef'l>l
!j i DYNI_M""" Flow, "1,1100<>004 000;00.1l.1
ii [DVfoU_CompttHOrfol 1,000.•004
Ii ]DYNI_Hat Dy- (nf. 2.000,,~004
1[!
I
o Close the Dynamic Analysis window and go to Dynamics tab. Click on Event
Scheduler in Dynamics tab in the ribbon. Review the events and their actions.
llilllll Home
I rScheduleOption, ·, ,-Legeod .• ,.
lnodive
!~ln<:omplete
I
I
!!
c-···-0;1;. ~:. J
: [ . . . . C~~i-_=J
:r___ -~o,t.:. . ....i ' [~J Runnin~
!
i r· lm~rt,,. J
Ir ___ Sort".- J t I• 1 T1moElap<ed ...... E,port_. __ _
!. @. .~~-~~-~--
l;.,]smartTree
I @A<tioal
1 -' ® DVN1_Conlr~led Sh"tdowa
i @ 0VN1_Emergency Shutdown
If= ,_ _ . DynainicAnalysi!t-Dynafuics-Stage-ri
~il~~is;;;~g·T~;~p~~~_;;:c~~;~T_S~i~-c~;:;;1_ - · ·
I N=e: Oynan,k;;·Stage 1
I U"it: St~elnda
I
I Scen,;ri"'
I
I
I
Tempi~;~, Coo!er on clm:hilrge :s:le
I] :· lntEgr3ti!Jn C<>ntrols
i , :·u~;i;.
, i Current h'Tl,a
! j iRLln Ti""" Lengih
ii L~.~:P..~.~~.:;.....
1B00.000
5.0000e--002 i j""'"""""~~~-=-~ i
'
o Monitor strip charts. Customize color and thickness of the curves if necessary.
J j. i
I
I
I
II
I
i
I
t·
I .J . . . . -lIl I
II I
I
·-;:,-," f·
111 111i11··rn
I I
Minutes
~-=
DYN'1_HotBypassll}fo'
Workshops
-.: O_. .
----------- '--------------------------- - ------------------- ---- 1
I
I i ....... ··-···"·· ·r ·- -·-········ ·1···1
! ----~ ---------L-----------1--------------f --~I
I ~
i ,~..
I
---f, - ---------!'
!
I I
I
I
i II '11
i
"- 111 ',rui:iJl1 1"'1/llHfil'.!Ji1,,,1~,J11,1Js.,11l,
'bll 1
• 1+1· I I 1·1 1
,, ' '
LUL.i . !. + iI
- JJ,·,w~--,, I I
I G
~ i
I
1' I •• (F ~~-:~; 11,'
11,. --1
i !
I ;0.00,½1
II
,
~ I! I
I i
> ! I I
i r--- - --+---------------------------- r ''
-.f.-!
~-<')
: 'f I 11
I I
I r
"-~)
i
................ -~·-··
r--
I
I
I
1-------------i--------------------ii
I, ! Ii
Ii
···= ·~ I,
I
-HOl 2.il-:>:> ],(m
Minuies
I
I
<+s[J - -1 l r ~r: :r--- -1- _J .
m I . 1 C J__ : .1
I -"'
:.-.::
___· ;I: Ii,I , _ _ _- .... 1!,o- ---+-----,1----+---+---t:
1 ---+ re~,,,,;,~;
i I II
,~ ,,c/.;,.:,J"···j ---+ -··c -····----:- ,...,........ i··-·- ·-·-·-·· i·-· W,,Up!
. I, I I I ]'"'''"
I "
rn
~ I
1,
I I
+ f j 11
I Minutes
4.iiCVJ
'
-
--r-- ilcJ!)O:>.ir,,.
lSOO -E~~c-i'a-~c"'F"c'""cs__+---+/+---+----+---+----l
-
1aoo +---+----!-~-,'"·
i
-.+-,-"---+---+----1----i
,-t----~~
I 61n for SU.ge P:
I CJ Close Event Scheduler window. Go to the flowsheet. If you don't see it, go to
I -"·-~-~~~
View tab in the ribbon and click on Flowsheet button.
Qzoom
~.Zoom In
q.zoom Out
Economi,,,...,-.u<~am1cs
~I Pag,;: Wi,jtil
Frowsheet Model
View Customize
,a __ ·;
EJ_ I .
I; M~ssage-l
I ~
II -·----::__--=,
Res
cto.seA
- - - i ; ~ Pare-tte Pane-I !- Farms
I CJ
Zoom Show
Double click on Check/Block Valve. Notice that the valve opening is 0%. Who
closed this valve? The even scheduler did.
I
I
I
I
;=':1'==='==
_ Delete
J
['.j fgnore.~
Even though there are four prebuilt scenarios, you can run the model outside the
scenarios. For example you have decided to run the compressor in nonnal operation with
Check/Valve 50% open.
o Double click on Check/Block Valve. Change the valve opening (in the Rating tab
or Dynamics tab) to 50%.
va1ve-;.q1eck/6lock Valve
o Run the integrator from the ribbon. Observe strip charts and compressor curves, if
you close them you can bring them back by going to Dynamics tab> Display
results.
o If you have time, select another scenario from Run Control tab of Compressor
Surge window and observe its behavior.
Note: Whether you initiate a run from Run Control tab or the Run button of Dynamics tab
in th~bhfm,JiY.SXS. will run the currently selected scenario. Once the actions of the
selected are completed, you can manipulate specifications on the PFD to ru_n_ClrlOrmal ___ _
operation. You can build your own scenario in the vent scheduler, and run it from event
scheduler interface.
Recommended Reading
nm
l!
~
[l
Lesson Objectives
--~
' '
I '
L!
r-,
I_,
©2015 AspenTech. All Rights Reserved. 11 - 1 Aspen Technology, Inc.
\
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Dynamic User Variables
User Variables are created and edited from the object they
are attached to
- User Variables tab of unit operation
Worksheet tab of material stream
lCorn:iecti_==Fararneter5 l Fo.:U,~.M1.Spre.:~neetJ C~lation ,Order f u5-~r Vanabi~~ ·1 Note~.!
i I -- - - - - - - - - - - - - 1il~"i±=t~:~r;. 1---1,
i ' ·--"_! ······--···"'"'""" ____ ,,.,., ... l.... ___ ,_,,_,_,,,, .. _.~J _______, __ _1
View ,fy
cJNotH
~ co,w~rt toT;:mp.Jate
U~er Matro language Matro, Re9i1ter Oata
Var\ablu .. Editor 1:i«eri.s1or1 ! Table:$
Ttio\~ Case:
Sep Liq
Time Relative Time Phase- Temperature Phase. Pressure Phase. Molat Flow Phase- Mass Flow
seconds seconds F psia lb mole/hr lb/hr
JOO ·210,5 49,55026 44..96362211 4062.483869 250286.6191
360 ·150.5 49.54'936955 44.96307196 4078.43.5637 2s12n.945
420 -90.5 49.54508566 44.96317449 40&5.760003 251lli.8675
480 -30.5 49.54740138 44.96-154593 4(}84.565536 25164S,2156
510.5 0 49,547572 44.96091421 4081556061 251462.8434
I
I
I E-Learning Resources
I ~ Operations Support
... .,, El Ill Ii J:.:::,:.. ;::.:~_,., :~: ..
•..,, .., .,. ~.;;'%. .. '"""'' ~-~'""'"" ~.... ... ..,.,~""""""" -~t~.;_,~~. CBT: Getting Started with Aspen
I ·-- "-i""M
I > ~--O!l:I ._. __ ....,.,... ~ 1_..;.,,.,1o.,,,..,,_~...,
~~~···(~,~(:f,_i,;_i~/~\.,;;;_; :~h4/;...,.,,,,
~ illllml: T ····-··----------~··"
L.. "'" ""'"
,,..,.._,..,,,~,...
Simulation Workbook for HYSYS VS
New in va.o - Create Excel Reports
and ASW Interfaces ln Minutes
How to Setup Tables to Display Plant
Data In ASW
How to Setup Conditional Formatting
in Aspen simulation Workbook
How to Map Plant Data Tags to
Simulation Model Var!ables in ASW
How to Map Tag Attributes in Aspen
Simulation Workbook
FAQs for Plant View in aspenONE
Engineering VS.2
@aspentech
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
Objective
The module introduces you to the basic concepts necessary for creating and debugging dynamic
user variables in Aspen HYSYS Dynamics. Key concepts covered in this module include the
creation, export and import of user variables. In addition, navigation of Aspen Simulation
Workbook (ASW) and how to liok it with an Aspen HYSYS Dynamics model and process
variables is also explored.
Description
User Variables allow you to increase the functionality of many Aspen HYSYS objects. They are
essentially small bits of code that can be attached to objects in the Simulation Environment.
Once created, User Variables are indistinguishable from regular variables in terms of
functionality. For example, they can be attached to logical operations, or linked to Spreadsheets.
Aspen Simulation Workbook is an add-in in Microsoft Excel that enables the linkage of An
Aspen HYSYS Dynamics model to an Excel spreadsheet. Once the HYSYS Dynamics file and
Excel are linked, you can identify model variables to display in Excel, which are updated real-
time as HYSYS calculates. In this workshop, you will use ASW to create Profile Tables in
Microsoft Excel. Profile Tables are tabular outputs of HYSYS Dynamics model data, which can
then be graphed or analyzed.
User Variables, which utilize VB syntax, access objects using the HYSYS type library. The User
Variable Editor also contains a full feature debugger similar to the Macro Language Editor
environment.
The process for adding User Variables is dependent on the object to which they are being added.
For example, User Variables associated with unit operations are added on the Design I User
Variables page, whereas stream User Variables are added on the Worksheet I User Variables
page. Regardless of the object the User Variable is attached to, the User Variable form will have
the following buttons available:
Note: User variables attached to stream are not executed in dynamics. For using user variables
in dynamics it should be attached to unit-operations such as Mixers, Heat Exchangers, or
Spreadsheets.
Notice the various buttons that appear in the User Variables menu. These eight buttons are
defined here:
Create New User Creates a new User Variable, opens the Create User
Variable Variable dialog box.
Edit User Variable Opens the view for editing an existing User
Variable.
Delete User Variable Deletes the selected User Variable. i.., l
,f"',,
Confirmation is required before deleting.
Sort List
Alphabetically
Sorts the list of User Variables alphabetically according to
name.
llIJ
Sort List by Sorts the list of User Variables according to order of
Execution Order execution.
Move Up Moves the selected User Variable up or down in the
Move Down execution order.
Show/Hide variable
enabling check box
Shows or hides the enabling check box that allows the
user to turn the user variable on or off. D
©2015 AspenTech. All Rights Reserved. !1- 7 Aspen Technology, Inc.
I
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
Pressing the Create New User Variable button will bring up the Create New User Variable dialog
box.
The dynamic user variable will run on the Dynamic pressure flow step if the check box is
checked for Dynamic pressure flow step.
Detailed explanations of the role of each control can be found in the Customization Guide
supplied with the latest release of Aspen HYSYS.
I For the purposes of this workshop, it is not necessary to use each control in this window.
However, as you develop more complex user variables, the understanding of these fields will
become more important.
I In this workshop, a pre-built User Variable will be edited and it will calculate the accumulated
flow from a process stream. If material is actively flowing through the stream, the dynamic User
Variable will calculate the total material passing through the stream. The User Variable will
I integrate the values of any variables you put in the 18 1 column of the spreadsheet, and put the
accumulating totals in the 'C' column. It ignores all variables except flow variables.
I cc. i - ·
I
' r---
1
~ 1 ::::
I
i i8 JI
II II 10 9
i.:1.
.,
1.1_· . . ·.......... -~·····--------- ___..:===:-..::::::::;=i_j
c---·~"o~~---·: i'"""""""F~~,ti~~H~~~----] L Sprea-15h~Only:__ I LJ Igoored
L"----~----------------------------
Some features:
• The Spreadsheet does unit conversions automatically.
• It sets the variable type of the 'total' cells (in column C) as appropriate (moles, mass, or
volume).
It resets all the totals when the integrator is started from time zero. No matter how many
time steps you have, the Spreadsheet will only update its calculation every 10 seconds.
The User Variable in this case has been prebuilt. You will have to review some lines of code
before running the User Variable.
rr::-"'·'-·f·:;r~1~1'1·i·i=i~ 1
· ·
Jj]\ 1·A~~·~-~~lator ·---·--,.-----·--·-ooi);o1:21·:oo'
ii I
o Review these steps to understand the User Variable code.
r·\lariabl~ -·--··-···-
! .__:;, ,1,utomatic
Ploc: :DynPles,uraFlowf'roSlep ., !
t
t_
I:
;;,.,J:, !i;,-nP:,:e...""-"""'"lc',JP,:"-S~~? 11
an c:::·, ,:,c Res ML<, !le:<;o
,!) U,ar Enabled
f~J Enable ,n
----~,
L.~_j
--------- ----------------- ---- --- -- ------------------ -- -- --------- ------------------------ ------------------ - -- ---------------- - !9
Note: The Unit Type is set to Time. The desired unit type can be selected from the drop-down list.
The user variable will run at the dynamic pressure flow step, when the dynamic solver is
running. For this, you have to activate the dynamic pressure flow step check box, as seen above.
User Variables connect to the object that owns the code in Aspen HYSYS through a special
object called the Ac,tiveObject. This object serves almost the same function as the ActiveCase
object that is also used in the MLE (Micro Language editor), with one important exception. The
ActiveCase command linked to the entire simulation case whereas ActiveObject links to the
specific object that contains the User Variable. Now review the code below for user variable.
The points below review the setup of the User Variable code. You DO NOT need to enter or
type in any code on the following steps. Just review the code that exists in the Spreadsheet User
Variable and continue on.
I 1. Set the mySS object to reference the active object. If active object is not of type
spreadsheetop then exit the calculation.
I 2. Retrieve the imported values for spreadsheet cell in the mySS object and set the unit.
Note: The user is first going to import the variable to the spreadsheet column B.
Fory-1 To9
myUCType2 ~ 42 'uctVolume
myUCTxt2 = "m3"
Else
GoTo LoopEnd
End If
Set myCell2 ~ mySS.Cell(2, y)
myCeI12.CellValue ~ 0.0
End If
myCell2.VariableType ~ myUCType2
'we 1re just writing the value, so we have to do the unit conversions ...
Set myUCSet ~
Active0bject.Application.UnitConversionSetManager.GetUnitConversionSet(myUCType2,
- --- -----8-etmyBe--=myBeS-et.Ite1n(111yuetxt2Jl------------
incrlnt ~ myUC.ToCalculationUnit(incrlnt)
incrDisp = myUC.FromCalculationUnit(incrlnt)
End If
End If
LoopEnd:
Nexty
oldTimeVar.SetValue(currentTime, nseconds")
oldTimeVar.SetModifyState(O) 'Calculated
Hint: use the Object Browser, if needed, in order to determine the correct object to use here.
u o
o
o
Go to the Spreadsheet tab of the spreadsheet operation
Run the Integrator
Review the accumulation level on column C of the Spreadsheet.
I
,C'
I I
lJ
Reflux
To
Flare
To [::ill Ovhd
Tee ~--.,,~__,,.,t::::za Cooler
Ovhd ToAccumu!ator
Q-Reb
DePropanlzer
C4+
c:J Select the User Variables tab and click the Create a New User Variable icon.
~- · · - Spreaqfi.,;;tSPR[lSt-1ff
i c.onnec~~ [Parameters j F_?t____!:?~~!J~.e:~ad:sh~t ~kula~n Or~~ Us.er Variables I~-----
riAl;~=-====::i_i llll ~L)5:j[1[~jf t: I!Jp]
i 1· -~--------------------------------
1I
I o
I I
Name the User Variable Accumulator, set the Units as Time, and check the
DynPressureFlowPreStepO box.
I ti,( .. D~te ·New-u~eDii.ffah_ie"' . ->
"C_'.'.,"%"•>•.::.:.s::.~,
~:~~~~-~,~;~;·----
'. '--•·,-_,.,_. ___ "<"~,, .. ·,,..;,•, ,o·,",·,·-'· ·,·,_,z
I
Type
o Open the provided Notepad file included with your course files, titled Accumulate.txt.
I the text in that file and paste it in between the hvo lines currently shown in the user
I Name
Tog
Accumulator Type ~-------------,--------------,
L
rI r
PreExecuteO
PostEx.ecuteO
I
!
Dimensions
Ir DynCompositionPre51 I
I Unil:5
L£1. DynPu,ssuref!QwPreS _,_ _____ i
I
02015 AspenTech. All Rights Reserved. 11 - 14 Aspen Technology, Inc.
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
o Run the integrator. Watch column C of the Spreadsheet to check the accumulated
quantities.
NOTE: To Flare quantities will only accumulate if there is flow to the Relief Valve so you may
need to introduce some sort of upset.
o Hint: Try closing the Propane Valve on the vapor outlet of the Accumulator. This will
close in the overhead vapor flow and force it through the relief valve To Flare. You can
close the Propane Valve by putting the Accumulator-PC controller in Man mode and
setting the OP as 0%.
ToPropa.ne
Accumulator
~
DePropanizer
0-Reb
C.4+
•
SPRDSHT-1
RefiuxPump.-a
~ Spreadsheet: SPRDSHT -1 - 0~
. . . . ]i!
ii
I
o Save your file as 10-ReliefAccumulator.hsc.
NOTE: Users can also, export the user variable from one Aspen HYSYS file and import it into
another Aspen HYSYS file from the Customize, menu option within Aspen HYSYS. The
Enable in Spreadsheet option to be checked after bringing the user variable into spreadsheet.
Vrew
~Note~
~ Convert to Template i
:
User Script Macro language Matros Register Data
Variables-~ Manager Editor E".Jcte:nsion T<1bles
Too!s Case
: "",,.: ·: ·:n;'
~·~c: :_(~~'i~r~ti:~t
.{>1 User Enabled
3-tlb D-:,,:,E::e:~3ureFlc:,wFre5-.;;"p 11
:J.i Enableio
On '··-,-,- R<e-"Uflle H"xc: 4
I SPRDShT-1
'
D Close any Aspen HYSYS windows that may be open on your PC. The necessary
simulation will be re-loaded from within Aspen Simulation Workbook (ASW) when
appropriate.
o Open Microsoft Excel and create a new, blank workbook.
a Select File> Options in Excel. Then select Add-Ins from the resulting menu.
f'?!
11
Ir,
E:<.eel Options
I
General
Forrnura,
If',1 [;j}
ii
'I Add-lM
-
View and manage Microsoft Office Add-ins,
I Proorln~
Save
jl
,]
!j [.~~~.~.~ •• ¥ ..
location Type
Languag, IAspen Pim 1111.0 64 bit E:<cel Calcu!ator(ATL)
I I Aspen Pim \lo.2 64 bH: Eltel Calcu!ator(ATL}
COM l\dd-in
COM l\dd-in
I I ;l,;Nan<ed il
iii i
! A,pen Plu, \/SA ii4 bit Excel Calculatgr(ATL] cru.1 A.dd-in
I Customiri Ribbon
i Aspen Pim VS.6 64 bit E~cel Calculator(ATL)
IA,p,n Pktl vg,g 64 blt E~cel Calculator(ATL]
COM ><dd-in
COM Add-in
fl;:::·::~"
Ii
JI I
A!pln
Aspen
Asp,n
Asp,n
A.span
Simulation Workbook ~'B.O
Simulation Workbook 1/S,0
Simulation wo,kbookVS,2
Simulalion WorkbookV8,2
Simulation WorkbookV8.4
C,\ .. n Workboo~ V!l,0\A5WtLAddinloader,dll
e,... n Workbook va,O\AS,WLAdd1nloader,dll
~:~::~ ~~::~::~~::~~:~~~:~~::::::::;
C,\ ... nWorkl:loo~'va.4\AS\NXLAddinloader.dll
COM /..dd-in
COM Add-in
~~;~ :::::~
COM Add-in
1il1 i1·
i !1 i
I .ii ! I
A.1pen Simul~tion WorkbookV!3,4 C:\ ... n Wor~boo~ VSA\A.5WXlAddinloader.dll COM Add-in 111 ' I
!.
I i
i
i
ii
ii
ii
I!
tY.141-iU i•itiJl'rii§ii.iil·bf.i k4
AspenTech,APSMBO.htelJntegrationUtilitie,
Custom XML O•ta
Oal,(XML]
Euro Currency Tool;
F1f&,\,M@#=HMWui-f.ri@f.i.i,Qi,IIM•itfME\.
D\. .. O.ErceijnteqrationU\ilities.~,tolv<tofocal
(:\, ..)\Microsoft Office\Offl<t14\0FFRHO.DLL
C:\ ... 5\microsoft ;hared\SmartTag\MOFL,DLL
C:\ ... Olfice\01'1i.el4\Libra,y\EUROTOOU:.L>M
COM l\dd-in ] Ii
Oornm,nt tn,p,cror J
Adrnn
:;~:dd-in
El.
,1:
' . :i.'i
iii
,
]
i.
!I
I
ii I lmii<ible Cont.•nt
s.W,,,,,r.<,lL~c:'Jl'_">.LQ.~"-"'--'-- C;\,:·~:~.~~'.~.'-o"'.'._~~~~~~-~cd4\0FFRHD.OLL ..... ~!~.'. ~: ~.:~:~_:: . :J j I
ii Add-in:
Publisher.
A<pln Simulation Workbook \IB,8
Aspen Tedinology, Inc,
,I
I ii
"]]
IIii
Compatibility.
Location:
oe,crlptiom
~-lo compat1bility information avalla~le
C \Program Files f:,rS6J\AspenTech1Ji,spen S1mulaL1onW0rkbook V8 8\AS\,\f)(LAddmloader dll
11
ii
I I
L.. _.
11
__IL_
Manage: :EndAddajn;
_..c..i}~
I o You should see Aspen Simulation Workbook V8.8 listed as a COM Add-in. Close the
Add-ins window if this is the case.
I It may be possible to have multiple ASW versions on a given PC. To ensure you are using V8.8,
follow the next step.
o Open the ASW COM Add-in Selector, to make sure the ASW latest add-in is checked.
The Add-in Selector can be accessed through the Start Menu I All Programs I AspenTech
I Process Modeling v8.8 I Aspen Simulation Workbook I Aspen Simulation Workbook
Add-in Manager.
I
©2015 AspenTech. All Rights Reserved. 11 - 18 Aspen Technology, Inc.
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
Currentu~r
o Make sure A_spen Simulation Workbook V8.8 is the active add-in and click OK after
activating the proper ASW add-in to Excel.
a Go back to Excel and select the Aspen ASW tab on the Excel ribbon bar. Click on the
Enable button. This will tum on ASW.
~"""" ''""' ~,,,
,-_.,,,,,.
Ji,Q__ _
Jc,ioc,,,
c•,,t,r
'·'"'
Coal
»NH,,a
i'a~,
Q~)aspentech
ft
D
Workshops
Wait for few seconds until the ASW add-in is active. Once ASW add-in is active, the
Enable button will instead read Disable.
Home. lme.rt Page Layout Formulas D;
~ Check Tables
I Backup
Protect )( D.~kte
_ _ _ _ _ _V'iorkbook Desrgn i:.,
I o Click the Organizer icon on the ribbon. The Organizer is the main setup/control window
for ASW.
D ~.)
Disable D
Refresh
~ Backup ~ (h,;,ck. Table>
Protect X ,,,ie,,
i:J Ctii'rte Table.
,8 Insert Icon
I
~.AHign M11cro
Workbol)k Design
o Once the Organizer appears, click the Simulations menu item. It is located in the
hgT_,
\i ~el•ldos
~i
•·
"'"~le Table,
S=om, Table< :J:'[
,½ T:,g->1-lodel ii
~.;.'.ff~~-:-f/-'.:J:{i;.;1u ·,:;.~i-'ti!
i;1
,,j
!:G<>~urallC!n
A,:,pic~lt<r.1
<l l!:~I
i~,·--'•"•'"'•'•"•'----."_[
.,.,_ _ ,,, ,,,,, :-jl
S!n,uJaOoc.s
o Next, you will select a HYSYS Dynamics simulation to link to ASW. Do this by clicking
the Add Case icon in the top toolbar of the Organizer. It looks like a green plus sign.
!Mi¼i-,c-
. :v,·. j
o Navigate to the file saved at the end of the last workshop task, 10-
ReliefAccumulator.hsc. Click Open once you locate it.
o Back in the Organizer, you can click the Activate button to tum on the selected HYSYS
Dynamics file. This completes the linkage with ASW.
file Qptions t!etp
1?,~PJsf ~,aJ L;,»~r.~- ~~~-- ~~l!_e-._f'!.,~-- -~- -~~--~-t~-~- ~..-.-. .-.. ·~L±- £M
~!J
o Once activated, the Organizer status bar (at the bottom of the Organizer window) will
briefly mention that the simulation was successfully activated.
o You can now view the HYSYS Dynamics file in its own HYSYS window. Click the
Visible icon in the Organizer to do so. This is the procedure fo~ showing a HYSYS file
linked to ASW, rather than opening HYSYS separately.
i fHe Qptions Help
~/@_ 10~11~.~Ac~-~~~ator
o Once the Aspen HYSYS window appears double-click the LiquidRetum stream on the
--··--------t1owsheet and view its Conditions page.
[] I
fWorxsh~t-lA~;;;:~~I.Dy~;~-k~}__.
w.,,.;;., · isi:;;~,;;;·-- liquirlReturn • •·· - _-· Va0
1·· cond,~ons IV.apour / Phase Fraction '·"'"'
ii11 ·
,
q 1 Compo~t1on
Oil & Gas Feed
I Pressure Jp,;1a]
I
, Molar F!ow !fbmole/hr]
145.5
317.2 !i,
lJ II
jI
I Petroleum Ass8y
KValue
UserV,.riables
:IMassFlow.llb/hr]
i j Sld lde~I Lrq Vol Flow /barrel/day)
1.229e:~::
1.64se~o04
IiIf J:_:
1I
iI
Notes : I Molar Enthalpy [Btu/lbmole]
I
Cost Pa~amet..rs I Mclar Entropy [Btu/lbmole-F]
-5-0J6e~OCl4
26.23
,,! ;
-~
D ii
The easiest method for linking HY SYS model data to Excel via AS W is by copy and paste.
It is as simple as selecting the data items you wish to link in HYSYS, copying those data
items using any copy method, and then pasting them into the ASW Organizer.
o Copy the Temperature, Pressure and Molar Flow of LiquidReturn using the keyboard
command Ctrl+C or by using the Copy option on the right click menu ..
[] _,
'" 't h:i~\;tiii~~tr~~i;hf L1ljiJil~~~fflf4/:''i 'W,:;;,.; )
I- I,, I
~~JDyo~
i _I Stream Name liquldReturn
Vapour/ Phase Fraction. 0,0000
,-1I'
I
Temperature [Fl
Pressure [~ia]
146.5
317.2
tJ Molar F l o ~ e c t All 2717
Mas-s Flo. C 1229e ... oos
Ctrl+C
Std Jdea! opy 1.545e+004
Molar Entti Paste Ctrl+V
-5.046e+004
IMolar Entr]I 2623
I~eat F~~~ !
Send To
-1.371e+OOS
o Return to Excel and the ASW Organizer and select the Model Variables page form the
left-side menu.
o In the Model Variable window, right-click and select Paste Variables from Clipboard.
Conversely, you can click the Paste icon in the Model Variables toolbar.
Status
Tag , na ,es
Tag QUaJityMap
Create Table
Variable Mapping ~
Create Profile Tab-te
Tag->Model
Create Scenario Table
Once the copied data appears listed in the Model Variables section of the Organizer, it has been
successfully linked into ASW. The next step is to prepare the data for display in Excel.
Tag \lariab!1=s
T,;g Qu~litv M<lp
o Click and drag along the linked variables to select them for use in Excel if they are not
selected anymore from the last step.
o Right-click any of the select variables and choose Create Profile Table.
a
Name rValue
liquid .. , 1.46 .. , F
lluquid . 317, ,
luqu]d , 2716.,
Units
p:;1o1
: Status : Variable , , .
Cil!cul. .. Phase -Te...
Ca!ruL.
Object IDl
--
: Container
Create Tabfe
'C0!1t:alner.,,
a Set the location for the profile table in your Excel workbook. We recommend clicking in
cell Bl, and clicking OK
,--~--~---·
Bl ,: ,,, Ix i
--·--··'
+--A-_,,JB .
1
2
L......:
. ··-,
3 '
' ------1
41
·---1
5
...... j
o The Profile Table Wizard will appear. Set the Number of Rows, Interval, and Title as
shown below. You can also set any table formatting options you like. Click Next when
finished.
lfm Profile Tabfe Wizard . El
Table R.angeS,;..el~en~g,!:..,_ _ _ _ _ _ _ _ _ _ _ __
MdresS:: j5heet1!S8Sl.SFs8. ~
Override: INone
· · Titni:i lnlerv~ Se!.lfngc'---~
Nombe'l'ofRows: Js :fl lnter~al: 110 Unit9: lseconds
Tctal lime span: 50 seconds
h ,;. ·TableSeUings
• Ti~e: P° ShcNTille
i]_£}
i
Oufel"Bon::'-ers:
h"OSlde Borders: I
[=~~~~~~~~~~~~==~·;\... Table Style:
Trne St>1le: ~---,3_.d
i .Autoformat: : - - - - - : : :iJ; Headings Sl)i!e: 3.L)i
!r
' P' Merge ;;md Center Title
' /;; Show Colu1rtli Headings P' Show Ur.its in Headings
:W Shcr/. R~"~'-'_'~~T-,me~,_c_,_P.1rn_."____________________,j ,
0
Nexl) Finish
o The Profile tab allows you to change the variable order in the table and add/remove
variables. We will keep our current list, so click Finish.
i!!t • ~
Profiles: Properties·
Head1n Variable
D Phase· Temper .. LlquidR.:lum.Ph.
E Phas<! • PressLir.! IJquidReturn.Ph .
F Phase· Molar Fl .. UqLlidReturn.Ph...
·~QProflles
__,_Brl
_ __,_ _ _ ~J I Fini~h
o You should now see a table on the Excel workbook. You can re-size the columns and
Workshops
SepLfq
Relative Phase - Pha5e- Phase-
I Time
seconds seconds
1470 -32
nme TemperattJre
F .
Pressure
psia
Molar Flow
lbmole/hr
~ 149-0
1500
-H
-2
1502 0
I o You are now able to populate your table by clicking the Run Simulation button in Excel.
The button is located in the Aspen ASW tab of the ribbon.
I D.
Home
I
FS; A.sign Moero
W~r!d:iook DESl'J~.
Note: When you run the dynamic model, the profiles will be filled. When the entire table is filled,
I the data will scroll upwards (older data are removed.from the top row as new data are added to
the bottom row of the table).
I D tii
Disable _
;! Refresh
r]
Backup
Protect
<'.'&, Check Links
~ Check Tables
)( Delete ,
~
~:.·;_,<
Orgamzer
i:i Creat~ Table
K Insert-Icon
~. Assign Macro .
10-Re IietAccum u tato r
~~~l
!QJ Visible
Context Simulate
~lode
:i"l ~
Dynamic
II a 14
I ---=---
I -
I 7 '
'1
Relative
Separator Uq
Phase -
Tempera Pliase-
Pliase -
Molar
8 Time Time ture Pressure Flow
I 9~
10
_!_1-:.,
seconds
820
"30
seconds F psia
-35,5 143.2.928 275.6812
-25.5 143.3032 275.7645
lbmole/hr
2489.677
2492.862
iii, 12, 840 -15.5 143.3139 275.8443 2495-.928
·----1
Iii _,!3 ;
14:
. __ _J 855.5
850 -5.5 143.3253 275.9188 2498.693
0 143.3318 275.9576 2500,061
From this point, you have the option of adding more variables to broaden the scope of your
Excel-based model, or further analyze the existing data. You can also create a plot, similar to a
Strip Chart, from your Profile table. See the procedure below to do so.
a Right-click anywhere in the background of your Profile Table and choose Simulation
Workbook Tables> Create profile table plot.
Cut
£opy
Paste Options:
liJ C'~J
Pa~te ipecial. ..
!r.5ert,.,
Qelete.,,
Clear Con_tenb
Filtt,r
S.9.tt •
ii
In,ert Comment
.E_orm::it Cell5 ..
a Select to include all three reported process variables in the plot; temperature, pressure,
and molar flow.
Note: When building a Pro.file Table plot, you have a variety offormatting options. You can
rename the plot and axes, plot time as absolute or relative, plot any desired variables from
the Profile Table, or place the plot within the current Excel worksheet tab, or in a separate
worksheet tab.
I r
I OK Cancel j
A·
o Click OK when finished formatting the plot.
o Click and drag across the Excel worksheet to size your plot accordingly. If you specified
to place the plot in a new chart sheet, browse to that tab in Excel.
o Click the Run Simulation button once again to run the model. Watch the data points
change on your plot as you run.
1·---··
·I.
~
' I 3000 T
Sepliq 1
2500
1500
-a-Phase - Pressure psia 1
1000 -
500
I o
L________ _
Pipeline Hydraulics
Aspen HYSYS Dynamics:
Introduction to Dynamic Modeling
I
I
I Lesson Objectives
I
I
Bubble Mist
Stratified
f
I
'r data
Fltexperlmental
i,
E
· mpmca
. . I
J using
. dimenSlon_ l~ss
parameters
\.-=--~-~
!,-'--.."·..···"-··--,--,--,...................."·,.~bevelPPeci~ations
1
i.(, M____ e.-·_.·ch_. .an.is___ t._ic.·.J. to rood.el particular
. : ~ow pattern -
·,,.-",·. .-·,.... , -,_-,_-·, "-.-·,
Considerations
• Many correlations available
• None perform across all conditions due to development from
specific sets of experimental data
• Errors in measured data
Pipe Segment
- Standard feature in HYSYS
- Optional add-on license to use OLGA 2-phase, or 3-phase
correlations within the unit operation
Compressible Gas Pipe
- Designed for transient calculations with gas phase flow
Pipe included in Valve (shortcut option for Dynamics)
- Not visible on flowsheet; integrated into Valve model
PIPESYS Extension
- Requires separate PIPESYS license from SPT Group
~J
,.
~:
Piping Model Capabilities (1)
~
Three main capability differentiators
~
(
I
I @aspentech ©~D15~aPenTcchnolcoi1Jnr. ,llni;;ht r~e[\ej I 9 J@NE
I
Operation
I
SS/SLISP SS/Sl/MP SS/NETISP SSJNET/MP DYNISUSP DYNISUMP DYNJNET/SP OYNINET/MP
Pioe senment X X X X
Compressible Gas Pioe ('\ X X X
Pipe included in Valve X X
~
~i
,ij
Pioesvs
Link to Pinesim, Prosoer/Gao
X X
X X X X
Aspen Hydraulics X X X X X X X X
Link to OLGA
I.
(')Only gas phase calculations
X X X X X X X X
J3
Out
I l. Branch 7
:::·J
87-Q
87
I
Out
?
IXI
3
r
14
9
For a single pipe, specify any two items out of P,n, Pout &
flow rate
- Alternatively, give all three (P,n, Pout & Flow) and it will calculate
length (for a single segment only)
For a branched system of three pipes:
- For example, specify Pl and inlet flow rates
- P2 is calculated
- Set Mixer to equalize pressures, therefore P3 = P2
- Back-calculates P4
- Calculates PS
P1 P2
flow P5
\
P4 P3
flow
I J3
~
Branch 7
1 --jL._ _, ·) 87
Out Out
I 87-Q
I !.'"':'·'
,.~'"·=•
ti"'
©2015 AspenTech. All Rights Reserved. 12 - 9 Aspen Technology, Inc.
;
'---1
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Pipeline Hydralics
{i[;).,:-,
OLGA link
Aspen Hydraulics
Ii
~
Requires additional license:
- HYSYS Upstream in steady state
- Aspen Hydraulics license in dynamics
Aimed at modeling pipelines and pipeline networks
- Limited choice of fittings (valve, swage) in pre-V7.3 releases
Full range of fittings available since V7.3
- Can model heat loss in detail
- Fluid, pipe wall, and multiple layers of insulation
Two and three phase transient analysis
u
Pipeline cooldown calculation for shut-in pipe
I
Pipe Segment - Aspen Hydraulics Comparison
Options
HYSYS Pipe Segment - Part of Aspen HYSYS
Aspen Hydraulics Sub-flowsheet - Part of Aspen .HYSYS Upsj:ream
ll'I,
Solver Solver
I
_j HYSYS Pipe
Segment
Aspen Hydraulics
Sub-Aowsheet
!~
' '
lJ
©2015 AspenTech. All Rights Reserved. 12 - 11 Aspen Technology, Inc.
\
Aspen HYSYS Dynamics: Intro to Dynamic Modeling Pipeline Hydralics
~""fC,}
<1 Aspen Hydraulics in Steady State
l
Topology
- Straight run
- Convergent branched
-"'~""T~~-,;-T ~
~ ~
,~ I
' _,
1-'l.~-OOZ
.... ,.... ~-
Slug prediction
Terrain-induced
I
I w,.• =o ~, ,,,,,, ·= ''°" ,.,,, ,i,;:,;, """ .,,,., !'
• Flow-induced L-------~--------~"l°'="'i~l -~-------·". _J:
[
Aspen Hydraulics (2)
~ '
•
Flowsheet icon represents sub-flowsheet for the Aspen
Hydraulics calculations
!'
1:
""'"'~-- ~-,.,..,,...,
\.:>>: - _. ...-_. ~c,
- Specific palette of unit ops allowed in Aspen Hydraulics
tf~~}z~~J~~Z\-.:f~~\:t:=t~~-,--_.:
t
,,
"
!'
""""·''"""""·~;.,.,.,_,',-'_
;:
!
'
;·;-_;,;;;~;- -;;.;..::_,
'--~~-----
J;:~:,;,J>'~!~iiD!~j~~--;,;,,.;;;,;;·.-}~:.:.:::.:u:~J:t~i~".i;,J.1~~4,"_I:~, - .
:,·.,<. --_- _ ," , ._;_::::_._t,_:-.-1
·- _- _______ : -1'.i
J:
,!: ~::~~::~:~:~~::7i;i ~:· . . . J ':,:',:~:'i;;;;;;e;;·,·:;;;;:.:;1
1,4<,-,,_,-,,,,•.,,..,._..,ry-~c""'p~
· "··· ,,. i/l
!11I·
I
Jw\o/C,ca"''l'°'"'"''"'"'
Aoi,t«o"'/"'c•=«F.._..,,,
''O\n.,Loop7*'•r<a
M>xO-.,..-,,,,,,,.,,,,, ;1
I
1,r,•
,-,,,,,1.,,,tN.,...~,'"-"'""f"r-"''""' :.. ,•
:,o,.,,,:s~,'l-,1.oaF,c!o, 1.00,:,,,,(>I)~ ,[,I
;1a.,,m,,."'f,,,J"O:~,p "-~"' ;fl
.~:\::::;;; •1o-~::~=
I :o,,,,,.,_a;.,,~~,,,r,.0,1,,
:t=ID,Wn
011
nH
-1-1
:1,
ilj
i
ti
I ·· ....... ···~······ n,.'.
!fi
'Ii ~-~------~
fl: Model pipeline
I
',fn,>l>l,Ml>b'<"<9<'"'""""
pigging operations
i
I! ~1\;~L~"
j:
['L~~:;c~~~~~~j
I, L..
I=
Task 1 - Aspen Hydraulics Review
Task 2 - Pipeline Pigging Model
Task 3 - Merge HYSYS Dynamics Simulations
~
•• ~1
m,_,,.!J
'-:;;;;:,
@';i
""
I®
'I
I
.,' ]
;:i
l E-Learning Resources
~ Pipeline Hydraulics
I
I
I
I Aspen HYSYS Dynamics:
Introduction to Dynamic Modeling
I Pipeline Hydraulics Workshop
I
I
I
I
I
I
I ~aspentech
I
\
Objective
After completing this workshop, you will be able to provide sufficient information to
fully configure and use the pigging operations within Aspen Hydraulics. Additionally,
you will learn how to use an Aspen Hydraulics sub-flowsheet within a HYSYS Dynamics
case.
Description
Aspen Hydraulics is intended for use within the Aspen HYSYS Oil & Gas Option and in
particular with the Dynamic Pipeline Solver embedded within Aspen Hydraulics. The
Dynamic Pipeline Solver is designed for modeling transient multiphase hydrocarbon
flows in wells, pipelines, and process equipment. The Dynamic Pipeline Solver solves
mass, momentum and energy equations for each phase using a one-dimensional finite
difference scheme. Appropriate flow pattern maps and constitutive relationships are
provided for wall and interfacial friction, heat transfer, and a model for multi-component
phase-change is included.
This module is not intended to go through the construction of the Hydraulics sub-
-------ll<>wsheet--a,--,my---<>fuer---H¥8¥8--{Jp1s!Poal1,__.,i')ti,,..,:.--JJl>telre.t<:d--=<=-Sh<mld attencLthe~---
Aspen HYSYS Upstream course for more details. The purpose of this model is to
illustrate basic features in Aspen Hydraulics, and how to integrate this information within
an Aspen HYSYS Dynamics model.
In this section, we are only going to inspect and run an Aspen Hydraulics-based model
from a pre-built starter file. The purpose is to provide a basic overview of Aspen
Hydraulics and some if its calculation and reporting functionality.
I
Bravo-2
Alpha-2
•
AH-100
ABCD
Charlie-2
.~J.'·~·"-'";~.
,,
c::::=::?
,._-,,.
~-;--,,,----c=c,---,,-..~==-,,,,,-.'-=>-,,.,to
[___ C:-'7.,
Cl Note the Hydraulics sub-flowsheet consists of Only piping operations. These are
special piping models with different calculation capabilities from standard
HYSYS Pipe Segments, Mixers, etc. This sub-flowsheet consists of Aspen
Hydraulics Pipe models, T-Junction Mixers, and Swages.
CJ View the pressure profile across the piping network by using the keyboard
shortcut Shift-P. To return to the stream names, press Shift-N.
o Notice that three incoming flows (Alpha-2, Bravo-2, and Charlie-2) merge into a
single downstream source, stream 108. What is the mass flow rate at stream 108?
Pipe-106
Qa
Mixer-1 Mi>cer-1 1
Pipe-101
Pipe-103
Ch·i- ...........
o Inspect the elevation profile for the lines in the piping network by navigating to
the Design I Data page for each pipe.
o Pay particular attention to Pipe-104. You should see that Pipe-102 declines 60 m
and Pipe-105 exhibits a 60 m increase in elevation. All other pipes have no
elevation change.
Pipe-104
Mass Flow 7.80ie+005 kgih
Pressure Drop 9,870 KPa-
~
lnlernal Diameter 600.0 mm
''nglh-
Elevat:on Change 0.0000
,o
-m
Pipe-102 Pipe-104 Pipe-105
-· ·. . . -·>·
103
}-----11-- --·-·-·-·--··'*i:
106
··-··--.
ABCD
Plpe-102 Pl~e-105
M3SS Fiow r .605e+D05 kglh Mass- Flow 7.909e+OD5 kglh
~
Pressure DroD -11.4"\ kPa Pressure Drop 72A8 ,ea
Internal Diameter 600 0 mm Internal Diameter 600.0 mm
Lengtll mo.a m Length 100.0 m
Elevation Change -60_00 m Elevalion Change 60.00 m
·--
o You can also view an elevation profile table for the entire network. Return to the
parent flowsheet and double-click the Hydraulics sub-flowsheet icon.
o Go to the Performance I Profiles page and click the Add button.
II
I
I o Select Pipe-100 from the list of Available Unit Ops and click Add. Repeat this
process adding Pipe-106, Pipe-107, Pipe-102, Pipe-104, and Pipe-105. Make
sure these operations are listed in order!
I
c l- - ' ~ · ~ · " ~ -
Pife-/04 1----'
P,))e-105 i L__ -- ·.- OK__ -- . - I!
Ir=:~"'""' J:
I I
I
I I
I
I
o Back on the Performance I Profiles page, highlight Profile! and click the Table
button.
CJ Note the drop and rise in elevation (i.e. a low spot in the line) between the
midpoint and terminus of the main trunk of the piping network.
II 340.0
360.0
-2.4.00
-36.00
6572.
6574
55.02
65.04
10.46
10A4
"IOA5
1DA3:
II
11
380.0.
400.0
--100,0
-4B.OO
-60.00
-60.DO
6576
6581
6581
55.06
65.07
65.07
10.44
10.43
10.43
10.43
10.42
10.42
11
,III 420.0
440.0
-60.00
-60.00
6579
6S-77
65,11
65,09
10-42
10.43"
10.77
10,81
IiII 460.0
-480.0
-60.00
-60.00
6'i75
6574
65.07
65,06
10.43
10.43
1D,83
10,83
1-0.91
i 500.0 -60.00 6571 65.05 10.43
5-00.0 -60.00 6571 65.05 10.43 10.91
520.0 -4B,00 65-56 65.03 10.'13 10.46
540.0 -36,00 6542 64.92 10-44 10-47
560.0 -24.00 65-28 64S2 10.45 10.48
11 58:0,0 -12.00 6514 64.71 10.46 10.49
a We can review the liquid hold up for the piping network as well. This is done by
returning to the Performance I Profiles page and selecting the Plot button. After
clicking on the Plot button, the plot window appears.
o Use the pull-down list at the top to select the Plot Variables as Liquid Holdup vs.
Axial Distance.
~) ' ,·Pr<>filec{C Plot . - E! -
---~[_,21~a:1ah~~·;;;·d-·H;1d:~~~~.----~··~··-~·-::~·!i,____________
I ~;q~;~ ~;~~;i~~~::xial Distance
_J
, -~
r
t
.
4.00IJ;o-002
~
!" .
~
0,000
'
<l.OOC 100.0
CJ You can also review the liquid holdup versus distance for individual pipelines.
Return to the Hydraulics sub-flowsheet and double-click Pipe-104.
CJ Navigate to the Performance I Profiles page and click the Plot button at the
bottom of the window.
o Use the pull-down list at the top to select the Plot Variables as Liquid Holdup vs.
Axial Distance.
·1··.·
•.
(c
~ Aspen Hydraulics Pipe Segment Pipe- 104 @TPL 1 - t:l ?·f;r i~ 18.8 • aspenON
[ii
II [:E:;~::::r· J;;:~'.Jil~t:~~!~o, ' "' :.:· · · [~e,i~:~;~:~~,, :; :;:~~ome . . •. . : . ,.c·fllll
= ~~·
--
11 0
1
1
I
1[~:·~, ,: ~; :!!
I Droperty Profil5: 40.00 O,of
Liquid Fraction vsAxial Distance [:
I
11 i M~~••,;~ ii 60.00 0.~ r::
jji ii so.oo O.Of. ~000 .. 002 f
iii :[ 100.0 o.or ~ :j
I i!i111
I'
1i!
1
!![III
i
,l ~
ii
I §
tl-'.DO".riS-001
I 1.• ,.•
l'J
:!: ,I I ,',r- :5l
§ / 1,
I
Ii! 1
I f 2000 ...~2
C.DOO
)1
Note that the liquid holdup increases along the length of Pipe-I 04. If you review the
liquid holdup profiles for other lines in the network (i.e. Pipe-102 and Pipe-105) you'll
see that holdup decreases or stays constant along those lines. This increasing holdup will
be an item of interest in later portions of the workshop.
CJ Close all the plot windows when you are satisfied and return to the Main
flowsheet window.
; 1.·...·
I.-,_,
I ,-~
I-'.
o Double-click the Hydraulics sub-flowsheet icon and select the Dynamics tab.
o Click on the View pig Options button near the middle of the windo¼'.
!'.. ,..~ ·. . . · .. _. ·. . -------·· ·-· __ -·-._.· . . -__ Asperd::lydf:aUl!c;s_SUb--FtOl'ist,eet.Al·!--100 ....__.. - ··~:.____ _. ......~--~--- :--.":.r:i . . I
j p=·~;i~_i1~.~·i:r~-~·~:E~;~;_:c~~;):~;;3·o;;·~~~;···tf~i;;;:;~.~·1y~.~·~1i;1r,_~.;;;-~:s~:rt~;·~~·~:T~~-~'.'i ;p
ti
I ~h-.,
i tr:{;:::j"s.;;;~~'t"I~!~'~;;-
', I, jMoximumAvlc R,cov•ry Anempls
iA.,.,to P.e<<>'l<O"/De,:,-.-.,, Factor o.sooo'" !II
iI
i!~
JAu,~ Recowr/i"ccease F'"'" 1-.'iO!I
Ii I .\l;"1Sem,c s~;,,,,, L,m,tatio~, ]Oct,e, LOO!) Tolernoc, 0.1000
,"lil111
1 (hc!dup, ace lcad,"d 011he net-,,o,i,; ~ ,a Oplioa b•J"-"', _ •••u., --."= ~oe 0
Ii !liqer,;:I Mod•I
ii :l-ieatTr.1rdi"'
!D,,.,pat,<>n Ouriog !-!"" Tran~·~,
.,.!ti
iip]i .'''·"""·"'"';"" 1
Cool D,;wn
j c1,~.~c..F~ ...
Off
Iii
°"
ii[i jr . . . ···.y,~~ P.~op,;·~-~.: . ·. _JJ idI'
E"JTGo~.,,·~t"1n· Iii
•1· I' ~~1~,~" inl•t,r,-um. The ,~~,~n,!ream'c
Ji · cocresponcii~g compo~t,on, ,.,;11 I,;, used to~ene,ate
!fl
Ip
, i (ho ~VT \ebi~f~rtC.e,eb~ew<l".. ot i1J
1 !l,i
Jii '!.'
i1
jii 11.I
,1,
!:
I[I I :l'°) f,~abl~ P'l;Tabl~Rcg•ner.!icm p
-------4t1. .·,;,i:t:;::t{;;.;-t;t~.:_;;:;'·'~ ---,V,- I
o Delete the existing pig shown in the first column by highlighting that column and
clicking the Delete Pig button.
I!N~-;;;~ - - PIG-1
[Model Pig moves wilh const;,r
Entr1P1pe Pipe-104
I] Entry Location 0.0000 m
IEio:it Pipe Plpe-104
I E..xit Loc11tion 100.0m
1
leakage 0.010
V,cclocit>J O.COOO,:n/,;-
Status Finished
Current Pig Segment
j Pig Po,ition 100.0m
I Slug Front Position 100.2 m
Tr.;ns1t Time 000:04:10.50 seconds
Position Reference Cu1Tent Segment Origir
1
I
I ·c-~~-- ------- Ov c._-,
I
==-~~--~~:::::=::_:'.::::5~~~======:__-
_j
I
..... ··---·---···- ---·. ----·--·-·---1
I D The column should clear out. Now click the Add Pig button to add a new pig. A
set of default settings will appear in the fust column.
I N,11me
Madel
PIG-1
Pig moves with ga5 vel,
Entl")' Pipe
I En try Location
Exit Pipe
Exit Location
leakage
0.0000m
0.1)000 m
0.010
Velocity 0.0000 mis
I !
i
Status
Current Pig Segment
Pig Position
Not Specifii:d
0.0000 m
Slug Front Position 0.0000 m
I I Tr<insitTime
Po5ition Reference
000:00:0,00 secortds
Current Segment Origi1
I
L ------------
Cl In the Model row, use the pull-down list and select Pig moves with constant
velocity.
co In the Entry Pipe row, use the pull-down list and select Pipe-104.
o In the Entry Location row, enter a value ofO m (0 ft). This value implies the
entrance of the pipe.
CJ In the Exit Pipe row, use the pull-down list and select Pipe-104.
CJ In the Exit Location row, enter a value of 100 m (328,084 ft). This means the
pig will travel the specified length within Pipe-104.
CJ In the Leakage row, accept the default value of 0,010.
CJ In the Velocity row, enter a value of0.4 mis (1.3 ft/s) for the pig velocity.
o The pig is now configured to launch once the HYSYS Dynamics Integrator starts
running. The input data window should look like the following:
:!
1
l E11tr; location
E,,;itPipe
I fa,t Location
0.0000 m
Pljl""-104
100.0 m
1r
[I
1 ~:::!;
I Status
. o:,J';;}
Ready to laun,:;h
Ir
i f!
I
r----------
!..a1..a,ch Pig r-
~
Delete Pfg _-_J,
..
CJ Click the Strip Charts button on the Dynamics tab on the ribbon. Note that a
strip chart titled Waves has already been created.
WFF
r--~~~
1 ·-
Home
-~I ~,
·_· :II
Economics
~© Integrator
Re11l1ime :
Oymimic;
W1,:_·i:·1, 0
View
, ~Event5chedu!er
Customi:?.e Resourcn
Cl Click the Edit button to view selected variables for the strip chart,
"'_yj~~:c
(IT Setup ; f-h,to,;-..1] (Llfl:enf I
l,1 : Object
· 1·.
'. I
" Prp,-1(1.1
Pipe·IC~
Pro hf~ L,qu,d
l'Tofik Liquid
Holdup (Profll~ loqwd
flaldup (Prollle Uquid
Huldup 2)
Ho!dup_J)
j I: Pic•-1:J..! r,oflle Uquirl f!.,l,tup (Pr<lfllc l.lqu/d lfolrlup_4)
11: P,pe-104 P,olife Liquid Holdup (Profile li<juid Holdup}>)
:l:
.,1,.· . ~.iP..~::.'.~.. P~~-111~ _u~oid_ flnldu~ (Profll~_l_iquld_ Ho!~up-_&l....
- 1 1- " - "_ _J Iii
___ I
I Cl
-r ![!
Add one more item to the strip chart: Pipe-104 [ Profile Liquid Holdup (Profile
_... _ Di,p_lay _ _. __'i
I Liquid Holdup_l).
Recall: To access variables in a sub-jlowsheet you need to select that jlowsheet in the
Variable Navigator window. The default is to only show objects and variable sin the
I main flowsheet.
-)J'.1t':~
Object Vari~ble
:"ll
Variable Specifics
' . ~OK_-.__ rn
I ; B,wa-2@TPl 1
' Cl>!Jrlie-2 @TPL/
, HydmulicRe/13/ock_ABCD ©
j Hy,,ra.,/icRe/f!l<Jc.~_A~!m·2
i /--!-,,drn;;/icRe/!l!ock.Srm"<>·2 1
Pm(i/e DF.tcnre
Pn,;i!e E/eentioa
Profile F/,;,d No;, Fr~w
Prcme Flliid Vehdy
flroli/e/j'l'fid 1-/!Hrluc 1
I I Profile l,qrnd H'1idup_2
i 1Profile liqu,d Hoidup_3
! ! Prof/!~ Liqa;id Ho!dr,p_ ~
i
i""]j Profile Liquid l-!o/-dup_5
L_·._~__
-!!(,All
J[:
:j 'l1ieeH00@-(Pl.1
.:'""':.''.'.':'!"'::.'c""'""'r·i!Ui~ero:e~,!·~'C::''"~'::";"~'':C""!'-J
I i -!1 'I _/)yc,f,J, Uqa;id Holdcp_6 () StrEarns
ro ·"' .. ,q,;,, a" ·r.m"y [°"·ii i) UnilOps
[ ·1! i
i
- - - - - - - _________ JMi,er-Wf'.JJTPU
P'.;,e-/OO@TPli
jP"'l'ileL,qu,d,'1~«."lo"'
!Profiie Liquid Nau Frocticn ¼--! ! ;-') logical•
Navigator Scope - - -- ,. .. ,
· P1pe IOI @TPl '
Iripe: ,02 ~T~;
I[
PM{ile L,quid 1'1oieF,acri<c,,
Profile L,q.,id /"fo!~aiar (•frig/
!
I
!
j
0 Co-k;mnOp,;
0Basis
I Prn/!Je 1-1,m Oen;ity
IPr?fJe_"-fo/or Vapc_wr_:cnK/ion ~ I
! I
L.k,.,, •.,11,-,-•,:..........'. .. i I_'. 1
........... , .. ,.• .1!'.,.,....-...,....,....! __' _____ ! __ I
...... .J
CJ Click the Display button to view the strip chart. Modify the appearance of the
strip chart to your liking using Graph Control in the right click menu.
D Move the Waves strip chart so that it is visible and accessible, and then click the
Run button to start the Integrator.
D While the Integrator is still running, return to the Dynamics tab of the Hydraulics
sub-flowsheet window and click the View Pig Options button.
D Select and highlight the column for the pig created a few steps ago and click the
Launch Pig button. Observe the system behavior in the Waves strip chart
windmy.
Wa'ie's _-r:i--
,c
1:~
]~ ~;:;s;a 1·-!·····-1------li- ·- 1-----fl ---------------------------- i---- - ·-!-------------·-··-·· -lr----------1----1·---------i------------- -
1:S
.P.
{i ol--
'·1.- a·,:.;.; i-· -!---·····"··
s
I
I ,.~.,
lC>:l.l
Minutes
• ..
o You can follow the progress of the pig as it moves through Pipe-104 by v_iewing
the Pig Position cell.
· 1f' Dynamics Pig Modelling A
::::::::.::.:::::= ... ::::::·- ·::::=.====
Name
==::. . :_::-.::
PIG-1
rl M-odel
I1 Entr/ Pipe
Pig moves with consta1
Pipe-104
11 Entry Lo-cation 0.0000 m
f IExit Pipe:: . Pipe-t04
] E."<it Locatron- 100.0 m
J ILeakage 0.010
I VeloCltv 0,0000 s
i Status finished
j I urrent 19 egment
I Pig Position 100.0 m
,I Slug Front Position 100.2. m
i TransitT1me 000:04:10.50 seconds
II Position Reference Current Segment Origi1
Ii
IJ Experiment with different speeds and different spans of the pigging operation.
Observe the different conditions in the strip chart window.
IJ When you are done investigating the pigging parameters and responses, stop the
integrator, and save your case as 11-Pigging.hsc.
To conclude the workshop, you will utilize an Aspen Hydraulic sub-flowsheet within a
pre-built HYSYS Dynamics model. This will be a helpful overview of how to merge
multiple HYSYS simulations to meet some modeling objective.
CJ In your HYSYS window, open the original workshop starter case, 11-Pipeline-
Starter.hsc.
I CJ With the main flowsheet view open, use the mouse to click and drag over objects
in the flowsheet. This selects all objects that you box in.
CJ From the Home tab in the ribbon, click the Copy button.
o Open the case, 11-TEG.hsc; it is included with other course solution and starter
I files.
D From the main flowsheet view of 11-TEG.hsc, go to the Home tab and click the
Paste button to paste the copied objects from the 11-Pipeline-Starter.hsc file.
CJ The pasted objects should appear in the lower right of the flowsheet window.
o Run the integrator for a short time to update the merged model. You can monitor
the messages in the lower left window, or click the Integrator button in the
Dynamics tab to view the Integrator to make sure the case is actually running.
Stop the Integrator before continuing.
Note: Ifyou receive any run-time pop-up messages after running the Integrator, click OK
to continue running. TO verify that the model is solving properly, press Shifl-F or Shift-P
on the keyboard to view the model-wide pressure and flow profiles. Make sure there are
no negative flows or unreasonable pressures.
CJ Break the connection from the ToSep stream to the HPSep separator.
a Connect the ABCD stream (the outlet from the Aspeo Hydraulics sub-flowsheet)
to the inlet of the HPSep separator.
f; ____
°'":;~:;· - •- - _- _-~~---·- ------,~-,---"'·-~~----------·-
Separator.. HP Sep
di I
Move the existing dynamic stream pressure spec from ABCD to ToSep.
0
l'i
:,1
!ii
ii
ij!
i:i
ii.l
Up to this point, you have essentially replaced one piping network with another piping
network in this pre-built dynamic model. The existing piping network was based on
HYSYS Pipe Segment operations. While these operations are functional in HYSYS
Dynamics, they have somewhat limited functionality.
The new piping setup is based on the Aspen Hydraulics sub-flowsheet. This piping
network, while schematically similar, has many functionality and calculation
improvements over the Pipe Segment. Specifically, we investigated one such
improvement in the last task, the ability to model a pigging process.
Integrator
I
i•
~~::::L~~·::::,J,o:::;~"'?'~·] . . . . . --·-· · ·
j Execution rates as per mtegratortime step;
i
1,.
Click the Run button to start the Integrator and the combined simulation should
I
Cl
begin calculating.
I
I
~aspentech
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
Objective
After reviewing how to set up a model for HYS YS Dynamics, it is worthwhile to see
what is being calculated and how it differs from a steady-state HYSYS model. This
appendix is primarily a theoretical overview of the HYSYS Dynamics program and
should provide a thorough introduction to some key dynamic modeling concepts.
Description
Take some time and read through the following theoretical selections in this appendix.
Explanations are devoted towards the assumptions made by HYSYS Dynamics, strategies
for flowsheet analysis, sensible selection of pressure/flow conditions, and troubleshooting
of dynamic specification errors.
In terms of pressures and flows, perhaps the simplest way to view the pressure-flow
solver in Aspen HYSYS Dynamics is to consider the flowsheet as a Boundary Value
Problem.
If you were to make pressure or flow specifications on all the boundary streams
(feeds/product streams in a flowsheet), then all the internal pressures and flows would be
solved simultaneously at each integration step by the pressure-flow solver. The internal
stream pressures and flow rates are calculated from the pressure gradients m the
flowsheet. Flow rates are determined from:
We will begin with pressure nodes. All unit operations with hold-up represent pressure
nodes. Some unit operations may contribute to one or more nodes. For example:
heaters/coolers with multiple zones, heat exchanger (shell/tube sides), and columns
(multiple stages).
Vessel equipment has a fixed geometry and thus a fixed volume. Mathematically, this
means that:
1
' I
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
,' -· J
dV = O
1j dt
I•
Therefore, for a fixed volume, a pressure node ( vessel pressure) is calculated as a
function of the vessel temperature and the vessel hold up.
Q In dynamic mode, the rate of change in vessel pressure is related to the rate of change of
temperature (enthalpy) and the rate of change of material hold-up (level):
dP
D dt = fn(V, F, T)
Example:
Consider the operation of a separator in dynamic mode that is initially at steady state with
f.'1
I,,
a level of 60%:
Flow In
Flxed Geometry
But in Dynamics, if the separator feed flow increases with the product flow rates (vapor
and liquid) remaining unchanged, the level (hold up), temperarure (enthalpy) and pressure
of the vessel must all change from the steady state condition.
an increase in the feed liquid flowrate with a constant liquid product flowrate results in
the liquid level (hold-up) increasing.
The increase in liquid level also causes the vapor hold-up to occupy a smaller volume
within the vessel, causing the vessel pressure to rise.
o Set the liquid percent level to 65%. How long does it take for the liquid level to
stabilize?
o Re-set the level to 40%; how long does that change take to stabilize?
o Now try changing the pressure of HP Sep. Put the setpoint at 945 psia-will this
work? How about 935 psia?
o Can you set the HP Separator to run at 925 psia? Why not? How about 965 psia?
Why wouldn't that work?
Another option for improved model analysis in HYSYS Dynamics is to setup flowsheet-
based data. You can change the name of each stream to show a variable for that stream
instead; i.e. pressure, mass flow, or temperature.
D Make your PFD the active window aod press Shift+T on your keyboard; note all
the stream names convert to temperatures.
D Now try it for pressure (press Shift+P).
CJ View the pressure gradient across the flowsheet - recall that in dynamic models
there must be a downward pressure gradient from inlet to outlet. This should
reinforce why certain pressures for the HP Sep may or may not work.
PC-HP
s,,
PIPE-1UO FC-A.Jp!rn
'950
psla
Q-8~0 LC-HP-
•. L :
S,p
~
I
PIPE-102
'960
psla ~~ '390
0-Cha~ie psla VLV-103 PSIS
CJ Re-set the HP Sep liquid percent level to 50% and pressure setpoint to 940 psia.
Run the model until it stabilizes.
Aspen HYSYS uses lumped models for all unit operations. For instance, in the
development of the equations describing the separator, it is assumed that there are no
thermal, pressure or concentration gradients present. In other words, the temperature,
pressure, and component gradients are the same throughout the entire separator.
Aspen HYSYS does take into account the static pressures in the fluid and vapor phases.
This can result in a d.P/dz effect in a vessel. However, Aspen HYSYS does not solve any
partial differential equations.
F - k,JpM'
Pressure/Flow Networks
The simplest case is that of incompressible flow with no accumulation at the nodes. In
this situation, the flow equations are a function of the pressure gradient and equipment
parameters such as the pipe diameter and roughness. The material balance at the nodes is
simply that the accumulation is zero.
I • Flow rates that are determined not only by pressure gradient, but also by weir
heights (columos) and density differences
Since pressures at nodes are a function of the flow rates in and out of the nodes, and the
flow rates through equipment are functions of the upstream and downstream pressures,
the relationships between pressure and flowrate equations in Aspen HYSYS Dynamics
are significantly coupled. To find a solution to the pressure-flow relationships in Aspen
HYSYS Dynamics, a simultaneous solution of the flowsheet is performed. Solving for
the flows and pressures requires the simultaneous solution of a set of linear and non-
I linear equations.
I
I F,
I •
•
P,, P2, PJ, etc., represent Pressure Nodes (Vessels with hold up)
F 1, F2, FJ, etc., represent streams with flow rates
I The grouping of the equations also permits a different solution strategy to be applied to
each group. In particular, it is possible to solve the pressure/flow relationships
simultaneously across the entire flowsheet while the other equations (composition and
enthalpy) are solved on a module-by-module basis.
If you suspect that the P/F solver is failing because of the interaction with the VLE
,
correlation, then you can do one of the following:
• Reduce the integration step size. This can be accessed from the Integrator, via the
Dynamics tab in the ribbon.
• Change the frequency of integration steps per step size for composition and
enthalpy. This can be accessed from the Integrator window as well.
----fa Modttle-r,we-introduced--the-eooe~eeifi€aliensc+h~ultaneous
solution of the pressure-flow relationships within the flowsheet requires the user to make
a number of dynamic operating specifications.
• P = Pressure
• F-Flow
1
Vap or ~~ I Pr~ct1
-+---1~ 00
Feed1
VLV-100
L____~--
Llquid VLV-'I02 Product2
In this flowsheet, there are seven variables that define the system. They are:
• Feed!
o One variable for pressure
I • Productl
o One variable for pressure
o One variable for flowrate
I • Product2
o One variable for pressure
o One variable for flowrate
I • V-100
o One variable for pressure
I .,
In addition, four equations define the pressure-flow relationships in the flowsheet:
• VLV-100: Resistance to Flow equation FvLv-100 = fn(Cv, Pi, P2)
• VLV-101: Resistance to Flow equation FvLv-101 = fn(Cv, Pi, P2)
'I
• VLV-102: Resistance to Flow equation FvLv-102 = fu(Cv, P1, P2)
~ • V-100: Pressure Node Relationship dP/dt- fn(V, F, 1)
With seven variables and four equations, a degrees of freedom (DOF) analysis, yields
DOF = 7 - 4 = 3. Therefore, three P/F specifications need to be made to define this
system.
I~
~~j Making Consistent Pressure or Flow Specifications
As mentioned earlier, Aspen HYSYS Dynamics users can select from a variety of
I,, pressure-flow specification combinations to solve the process flowsheet. These include:
•
•
Pressure specifications on material streams
Flow specifications on material streams
,ij~-
~~
•
•
Fixed pressure drop specifications across equipment
Pressure/Flow calculations for valves- resistance to flow (Cv)
~l
• Conductance calculations (k) for process equipment
In the previous example. we had three Degrees of Freedom (DOF), thus requiring that
three specifications be made to define the system.
P, F - ?
Vapor Product I
\/LV-101
P, F - ?
Separator
Feed·I
VLV-100 P-?
P, F - ?
Liquid Produc.t2
VLV-102
Specify:
• Feedl Pressure
• Stream 1 Pressure
• VL V-100 pressure drop
Although making these three specifications will satisfy the DOF analysis, the choice of
specifications would not make sense. Preed!, Pi and PvLv-100 are all related by the
__c"fo"'l"'loc,_wing equation:
I ~-
Vapor
V-100
VLV-10 1 Product1
I F~1
I L_~-
Liquid VLV-10 2 Product2
I Specify:
• Feed l Pressure
• Productl Pressure
I • Product2 Pressure
In this case, we set pressure specifications on all the boundary streams. This solution is
consistent because the pressure in the vessel is calculated by the hold-up equation. The
I stream flow rates are calculated using the turbulent equation or the resistance to flow
equation.
I Guidelines to Remember:
• One P/F specification should be made on each boundary stream {feeds/products).
Make pressure specifications on boundary streams attached to process equipment
that use resistance to flow/conductance relationships.
• Aspen HYSYS® Dynamics will use the equipment conductance or Cv value combined
with the pressure of the Inlet and outlet streams to determine a flowrate through the
equipment.
Internal flow rates will be calculated by pressure gradients (resistance to
flow/conductance equations) throughout the flowsheet.
Dynamics Assistant
The Dynamics Assistant provides a quick method for ensuring that a correct set of
pressure flow specifications is used. The Assistant can be use4 when initially
preparing your case for dynamics, or when opening an old Aspen HYS YS dynamic
case .
Mak" changes
Dioable stream pressure speci&ations
Disable stream flow specifications
Enable stream pressmS' .1pKific11tic-ns
Ena bite pressure flow equiotions not pressure drop
Volt.mies not known
,
r ·1
__ ---------·-·-----·"-·----·--------·--·"--
About, .. ~~ces..~
---------- .. ····"·--·-------~-- i'
L_-~_uincei__ ··J
The Assistant makes recommendations for specifying your model in Dynamics mode.
You do not have to follow all the suggestions. It is recommended that you are aware
of the effects of each change you make.
:--"'~ffi.il!Jfa5WJ-!i~.¼f-\¾h:~4tf\_'.fo{l\~~''""~:~f,:,'~;:~:-,':-:_. :,-, . . ·,
.f" Gener111-"[s1rearlli_J:Pressure Flow Sp_e~lii~known s ~ J j'~-~~~1~ r lte~ L
The assistant has identified lhe follcwing items for consideration,
If you are using non-uniform tray you may lose the inform11tion by chosing "Make Change".
l'i
.i
II I
: i
I
Analyze ~ain
, _____ ____ __________ _
r
,, ,,
Make Changes
[J Save steady state case
Cancel
Some of the recommendation you can accept not to make changes. Once you click on
the green check mark, it will tum into a black cross mark. Make changes button will
not implement the changes which are not green check marked.
Color Scheme
You can select multiple color schemes for process stream on the PFD. Some of them are
based on Dynamic pressure flow spec or they can be based on temperature. Many more
schemes are available.
i Ji_:
L'
I·.',,.,
'I
, __I
! I
LJ
©2015 AspenTech. All Rights Reserved. 13 - 13 Aspen Technology, Inc.
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
~----
resulting in no pressure gradients in the unit operation.
Vapor Product
Sep:ar:ator
F8ed1
L _ Liquid Produ,:t
It is possible to have flow specifications on all unit operation streams as long as the
vessel pressure is controlled.
Separator
Feed1
Sep PC
~
I
L__
I Liquid Product
I
I
I
I
Ii,,
111
~:~
"'I
II
I
I
II
rJ
I Aspen HYSYS Dynamics:
m"
f'~
Introduction to Dynamic Modeling
I
Appendix B: Basic Control Theory
I
I
I
I
I
~
[~
'"'I
~aspentech
I
Aspen HYSYS Dynamics: lntroduction to Dynamic Modeling Workshops
Objective
After reviewing this appendix, you will have the basics of Process Control to define the
process controller inputs of an Aspen HYSYS Dynamics simulation flowsheet.
Additionally, you will be able to examine General Guidelines for implementing
appropriate control strategies.
Description
This appendix introduces you to some of the basic concepts necessary for creating
process controls in the dynamic simulations in Aspen HYSYS. You will use Aspen
HYSYS controllers to define PID parameters (proportional, integral and derivative) to
stabilize or make changes to the process variables.
Process control, on a working level, involves the control of variables such as flow rate,
temperature, and pressure in a continuously operating plant. Process control, in a general
sense, attempts to maximize profitability, ensure product quality, and improve the safety
and operability of the plant.
• Design and test a variety of control strategies before choosing one that may be
suitable for implementation
Stress the system with disturbances as desired to test for plant perfonnance
Even after a plant has started operation, process engineers may look for ways to improve
the quality of the product, maximize yield, or reduce utility costs. Dynamic simulation
using Aspen HYSYS allows the process engineer to compare alternative control
strategies and operating schemes in order to improve the overall performance of the plant.
In short, the engineer can accomplish a lot of analysis off-line with a dynamic simulation,
instead of disturbing the actual process.
Three major topics will be covered in this module. First, we will discuss the Process
Dynamics section. Next, we will discuss the Controller Setup section. Finally, the
General Guidelines section will outline some steps you can follow to implement a control
strategy in Aspen HYSYS. Included in this section are several techniques that may be
used to determine possible initial tuning values for the controller operations.
Process Dynamics
I the input is applied to the system, and the nature of the system itself. Therefore, it is
important to understand the dynamic characteristics of the process system before
proceeding with the process control design.
I
©2015 AspenTech. All Rights Reserved. Aspen Technology, Inc.
\
dV AdH (2)
F.-F
I 0
dt dt
'----C><Jf---F,
H (3)
Fo - R
-
I~
~
lAl
AdH = F. (4)
I dt I
H
R
I d/ I
I
I
I
The change in liquid level, H, is the change in the output of the system, y(t). The change
in the input to the system, u(t), is the change in flow into the tank, F;.
Similarly, the time constant, t, and the steady state gain, K, can be expressed as:
, = AR and K= R (7)
When a step function of magnitude U is applied to the general first-order system, the
output response, y(t), is as follows:
A
Promr;'l...:i.ohl,
'1' APVi
63%ol'bPV
G
... __y . ________ .'4'__
i
>
TIME
As shown, the output, y(t), attains 63.2% of its final steady state value in one time
constant, t. The Process Variable (PV) can be assumed to equal its final value after
approximately four time constants ( 4t) have passed.
The dead time of the process is represented by the Greek letter 9. The dead time is
defined as the amount of time that passes between the time of the change in the
Controller Output (U), and the time that the first change is seen in the Process Variable
(PV). In the flow example given above, the dead time will be virtually non-existent;
however~ it can become significant for other systems.
The following is a list of characteristic parameters that may be defined in terms of the
first-order response illustrated in the previous example.
Process Gain
The process gain is defined as the ratio of the change in the process output to the change
in the process input. The change in the process input is defined in Equation 6 as u(t). The
change in the process output is defined as y(t). The first term in Equation 5 is transient
and becomes zero at steady state. Therefore, the gain can be calculated as
Time Constant
The time constant, -c, defines the speed of the response. The response of the system will
always follow the profile shown on the previous page. After" time units, the response y(t)
equals 0.632 x 11PV or 63.2% of the final PV value. This will always be true for first-
I order systems.
Dead Time
While capacitance is a measure of how fast a system responds to disturbances, dead time
is a measure of the amount of time that elapses between a disturbance to the system and
the observed response in the system. Time delays in a system can become significant
depending on the nature of the process and the location of measuring devices around the
process. It is usually the time associated with the transport of material or energy from one
part of the plant to another that contributes to time delays observed in a system. The dead
time of a process may be easily modelled using the Transfer Function block operation.
I Capacity
Definition 1
I Capacity can be defined simply as the volume or storage space of a system. The
capacitance of a system dampens the output causing the response to take time to reach a
new steady state. For electrical systems, the capacity is defined in terms of the resistance
c~-R1: (9)
I Since the capacity of a system is proportional to the time constant, "• it can be concluded
that the larger the capacity, the slower the response of the system for a given forcing
function.
In first order systems, the capacity of a system has no effect on the process gain.
However, the capacity varies in direct proportion with the time constant of a system.
Definition 2
A system's capacity is also defined as its ability to attenuate an incoming disturbance.
Attenuation is defined as:
Response Amplitude Out of the System
Attenuation = 1
Disturbance Amplitude Into the System (IO)
Controller Setup
The PID Controller operation .is the primary tool that you can use to manipulate and
control process variables in dynamic simulations, You can implement a variety of
feedback control schemes by modifying the tuning parameters in the PID Controller
operation. Tuning parameters can be modified to incorporate proportional, integral, and
derivative action into the controller.
A Digital On/Off control operation is also available. Cascade control may be modelled
using interacting PID Controller operations. Feedforward control can be incorporated into
the simulation model using the Spreadsheet operation.
··---l'erminology- - - - - - - - - - - - - - - - - ~ · · -- _ _ _ _
Before reviewing the major control operations that are available in Aspen HYSYS®, it is
useful to describe some terms.
Disturbances
A disturbance upsets the process system and causes the output variables to move from
their desired setpoints. Disturbance variables cannot be controlled or manipulated by the
process engineer. The control structure should account for all disturbances that can
significantly affect a process. The disturbances to a process can either be measured or
unmeasured.
CONTROLLER
[] Control Valve
A common example of open-loop control is the control of traffic in a city. The traffic
lights change according to a set of predetemiined rules.
~l simplest and most widely used control structure in chemical process systems.
"I I
I I
l __ )
CONTROLLER ~ - - - - - - - - - - - 1
Disturbance
I
I I
I I
I I
I I
I I
INPUT
• PROCESS
I
OUTPUT
Feedback control attempts to maintain the output variable, PV, at a user-defined setpoint,
SP. There are some basic steps that are carried out by the controller in order to achieve
this task:
Measure the output variable, PV.
iI
·1.*'
,j
02015 AspenTech. All Rights Reserved. Aspen Technology, Inc.
Fi
LJ
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
• Compare the measured value, PV, with the desired setpoint value, SP. Calculate
the error, E(t), between the two values. The definition of error depends on the
whether the controller is direct or reverse-acting.
• Supply the error, E(t), to the general control equation. The value of the desired
percent opening of the control valve, OP%, is calculated.
• The value of OP% is passed to the final control element which determines the
input to the process, U(t).
• The entire procedure is repeated .
(II)
OP(t)=K E(t)+ ~c )E(t)dt+KcTd d!(t)
C i t
Dlsturb<1nce
SP + E·t Process
FEEDBACK CONTROL
That is, if the PV rises above the SP, the OP, or input to the process, decreases. If the PV
falls below the SP, the OP increases.
For a process with a negative steady state gain, the error should be set as direct acting:
That is, if the PV rises above the SP, the OP, or input to the process, increases. If the PV
falls below the SP, the OP decreases.
A typical example of a reverse-acting controller is in the temperature control of a
reboiler. In this case, as the temperature in the vessel rises past the SP, the OP decreases,
in effect closing the steam valve and reducing the flow of heat.
I Stability
The stability of a system is a very important aspect to consider when designing control
schemes. Many systems have oscilJatory responses, depending on its controller tuning
Case 3
Case 2
y(t)
Case I
t, time
Stability Response Cases
The system is generally considered stable if the response proceeds to a steady state value
and stabilizes. It is considered unstable if the response continues to fluctuate. A stable
open-loop response is said to be self-regulating. If the open loop response ofa system is
not stable, it is said to be non-self-regulating. For instance, a pure integrating process,
such as a tank with a pumped (constant) exit flow, is non-self-regulating since a bounded
increase in the flow input to the system from steady state will result in the response
(liquid height) to increase continuously.
A prerequisite for closed-loop control is that the closed-loop response is stable. The
closed-loop response can vary considerably depending on the tuning parameters used in
the feedback control equation. In general, a higher controller gain gives tighter control.
However, the value of Kc cannot increase indefinitely. The response will remain stable up
to a certain value of Kc. Increasing Kc beyond the stability limit will cause the closed-loop
response to become unstable.
A number of factors can affect the stability of a closed-loop system:
Tuning parameters
• Non-linearities in the process
• Range and non-linearities in the instruments
• Interactions between control loops
Frequency of disturbance
• Capacity of process
• Noise in measurement of process variables
ModellingJfardware Elements
Modelling the hardware elements of the control loop may simulate the plant more
accurately. Non-linearities may be modelled in the VALVE operation in the Actuator
page of the Dynamics tab.
Sensors
Sensors are used to measure process variables. In Aspen HYSYS®, the sensing
instrument is incorporated directly in the PID Controller operation. You can choose the
range of the sensing instrument in the Minimum and Maximum PV parameters in the
controller operation. It is assumed in Aspen HYSYS® that the PID controller is perfectly
accurate in its measurement of the process variable.
I and the Valve Type. Valve type may be defined more easily by expressing flow as a
percentage, Cv (0% representing no flow conditions and 100% representing maximum
flow conditions). The valve type can then be defined as the dependence on the quantity of
¾Cv as a function of the actual valve percent opening.
I
I
I
I
I
!02015 AspenTech. All Rights Reserved. 14 - 13 Aspen Technology, Inc.
Aspen HYSYS Dynamics: Introduction to Dynamic Modeling Workshops
There are three different valve characteristics available in Aspen HYSYS. The valve
types are specified in the Ratings tab in the Valve Type and Sizing Methods group.
0 20 40 60 BO 100
Feedback Control
Digital On/Off
Digital On/Off control is one of the most basic forms of regulatory control. In Aspen
HYSYS®, it is implemented using the Digital Point operation. An example of On/Off
control is a home heating system. When the thermostat detects that the temperature is
I below the setpoint, the heating element turns on. When the temperature rises above the
setpoint, the heating element turns off.
Control is maintained using a switch as a final control element (FCE). On/Off control
parameters are specified in the Parameters page of the Digital Point operation in Aspen
HYSYS®. If the OP is ON option is set to "PV < Threshold", the controller output turns
on when the PV falls below the setpoint. This is similar to the thermostat example given
above
OP= O¾forPV>SPor OP=lOO¾forPV<SP (14)
I The opposite is true when the OP is ON option is set to "PV >Threshold". This setting
can be used for pressure relief valves. The valve is open (on) when the PV is greater than
the threshold pressure.
One main characteristic of the On/Off controller is that the PV will always cycle about
the setpoint.
I
!00%,>---~
OP
0%>-----'-----'----L..---'-----'----
PV
t, time
On-Off Controller Response
The cycling frequency will depend on the dynamics of the process. Those systems with a
large capacity (large time constant) will cycle less frequently. The On/Off controller is an
appropriate controller if the deviation from the setpoint is within an acceptable range and
the cycling does not destabilize the rest of the process.
The value of the bias, OPss, is calculated when the controller is switched to Automatic
mode. The setpoint is defaulted to equal the current PV. In effect, the error becomes zero
and OP,, is then set to the value of OP(t) at that time.
A sustained offset between the process variable and the setpoint will always be present in
this sort of control scheme. The error becomes zero only if:
The following shows the effect of the magnitude of Kc: on the closed loop response of a
first order system to a unit step change in the setpoint.
1.0 .. . .. -- .. "(5rfset·· -- -
I y(t)
Increasing Kp
~
fl.! t, time
Closed loop response of a system under P-Only Control
I That is, PI control will take longer to line out (dampen) the process variable than P-only
control. The output of the proportional controller+ integral controller is defined as:
The integral term serves to bring the error to zero in the control scheme. The more
integral action there is, the slower the response of the controller will be. The integral tenn
continuously moves to eliminate the error. The closed loop response of a process with PI
control and P-only control is shown as follows:
I
©201 5 AspenTech. All Rights Reserved. 14 -17 Aspen Technology, Inc.
\
Sctpoint"'-.,_
·------------··---------·· ---~--------···-----------------······-
Pl Control
y(t)
P-Only Control
t, time
Proportional and Pl Control
The integral time, Ti, is defined as the amount of time required for the controller output to
move an amount equivalent to the error. Because the relationship between T1 and the
control action is reciprocal, increasing T1 will result in less integral action, while
decreasing Ti will result in greater integral action. The integral time should be decreased
(increased integral action) just enough to return the process variable to the setpoint. Any
more action will only serve to lengthen the response time.
If the response of a PI controller to a disturbance is not fast enough, the derivative action
in a PID controller can reduce the natural period of oscillations even further. By
measuring the rate of change in error, the controller can anticipate the direction of the
error and thus respond more quickly than a controller without derivative action. The
output of the proportional+ integral+ derivative controller is defined as:
(18)
I
OP(t)=K,E(t)+ ;, E(t}it+K,T, d!?)
Td is defined as the time required for the proportional action to reach the same level as the
derivative action. It is, in effect, a lead term in the control equation. For a ramped input,
the proportional only response will be ramped, as well. For the same ramped input the
derivative only response will be constant.
As the slope of the measured error increases to infinity, so does the derivative action.
While a perfect step change with a slope of infinity in either the setpoint or the measured
I process variable is not physically possible, signals which have short rise and fall times
can occur. This adversely affects the output of the derivative term in the control equation,
driving the controller response to saturation.
I Derivative action control is best for processes that have little or no dead times and large
capacities. Processes such as these, having large lags, benefit from the additional
response speed that derivative action provides. While the integral term in Pill control
schemes reduces the error to zero, it also adds a considerable lag to the response
compared to P-only control. It is the derivative action in PID control that shortens the
controller's response to be comparable to the response of a P-only contro11er. However, if
a controller has a very noisy input that cannot be filtered or minimized in the process,
I Pill control is not a suitable control scheme. Derivative action cannot be used in systems
where the PV signal will contain noise.
I
I y(t)
t, time
Pl and PIO Control
Feedfmward Control
Feedforward control may be used in cases for which feedback control cannot effectively
control a process variable. The main disadvantage of feedback control is that the
controller must wait until disturbances upset the process before responding. With
feedforward control, the controller can compensate for disturbances before the process is
affected. Cascade control is useful when measured disturbances significantly affect the
input to a process. On the other hand, feedforward control is useful if there are measured
disturbances that affect the output of the process.
With feedback control, the controller requires information about the controlled process
variable(PV) and the setpoint (SP), in order to determine the value of the desired valve
percent opening (OP%) of the input to the process. In order to determine the value of
OP%, the feedforward controller requires information from two variables: the setpoint of
the process variable (SP) and the disturbance affecting the process. A steady-state process
model is used in the feed.forward controller to determine the value of OP%.
Disturbance
I P,ocm0 I
SP Feedforwanl
Final •
Control Process 1---"i+&e'P-'V'--+
controller
Element
FEEDFORWARD CONTROL
-~ -~====::i==:'\:::::E:'XJ:::t=:=;~
--
F
~--1--~---+-~Contl;nsate
TI
Steam
FFC
It is desired to control the Exit stream temperature, T2, at a certain setpoint, SP, using the
Steam flow as the manipulated variable. However, the process suffers from frequent
changes in the Feed temperature, T1. In order to detennine the value of OP%, the values
of SP and T1 are required by the controller. At steady state, the overall energy balance
relates the steam flow to the disturbance of the process, Ti, and the temperature of stream
Exit, T2:
(20)
(21)
OP(t)= C, F(SP-'./'.)SteamValveSpan
A ' 100%
The feedforward controller contains the reciprocal of the process model. Even if the
LJ process model is accurate, a time delay in the process model implies that a predictor is
required in the feedforward controller. Unfortunately, it is impossible to predict the
nature of disturbances before they occur.
It is important to note that the process variable to be controlled is not measured using
feedforvvard control. There is no way of confirming that the process variable is
attenuating disturbances or maintaining a desired set point. Considering that an accurate
1-1 model of the process is usually not available, that the process or valve dynamics are not
I I
1J accounted for in this control scheme, and that the valve opening percent is not related
linearly to the flow in most dynamic simulation applications, there will probably be an
offset between the actual controlled variable and its desired set point. Therefore, feedback
control is often used in conjunction with feedforward control to eliminate the offset
associated with feedforward-only control.
General Guidelines
Capacity
The ability ofa system to attenuate incoming disturbances is a function of the capacitance
ofa system and the period of the disturbances to the system. Attenuation is defined as:
Attenuation 1
The time constant, 1:, is directly proportional to the capacity of a linear process system.
The higher the capacity (time constant) is in a system, the more easily the system can
attenuate incoming disturbances since the amplitude ratio decreases. The frequency of
incoming disturbances affects the system's ability to attenuate these disturbances. High.-
frequency disturbances are more easily attenuated than low-frequency disturbances.
Note: With capacity-dominated processes (with little or no dead time), P-only control can
achieve much better disturbance rejection. The system itself is able to attenuate
disturbances in the frequency range that the controller cannot. High frequency
disturbances can be handled by the system. Low frequency disturbances are handled best
with the controller.
Dead Time
The dead time has no effect on attenuating disturbances to open loop systems. However,
it does have a significant negative effect on controllability. Dead time in a process system
reduces the amount of gain the controller can implement before encountering instability.
Because the controller is forced to reduce the gain, the process is less able to attenuate
disturbances than the same process without dead time. Tight control is possible only if the
equivalent dead time in the loop is small compared to the shortest time constant of a
disturbance with a significant amplitude.
It is generally more effective to reduce the dead time of a process than increase its
capacity. To reduce dead time:
You should consider what type of performance criteria is required for the setpoint
variables, and what acceptable limits they must operate within. Generally, an effective
closed loop system is expected to be stable and cause the process variable to ultimately
attain a value equal to the setpoint. The perfonnance of the controller should be a
reasonable compromise between performance and robustness.
A very tightly tuned or aggressive controller gives good performance but is not robust to
process changes. It could go unstable if the process changes too much. A very sluggishly-
tuned controller delivers poor performance but will be very robust. It is not likely to
become unstable.
It is apparent why the PI controller is often the most common controller found in a plant.
There are three possible conditions that a PI controller can handle, whereas the PIO
controller requires a specific set of conditions in order to be used effectively.
The following rules are approximate. They will provide you very close to tight control.
You can adjust the tuning parameters further if the closed loop response is not
satisfactory. Tighter control and better performance can be achieved by increasing the
gain. Decreasing the controller gain results in a slower but more stable response.
Generally, proportional control can be considered the principal controller. Integral and
derivative action should be used to trim the proportional response. Therefore, the
controller gain should be tuned first with the integral and derivative actions set to a
minimum, If instability occurs, the controller gain should be adjusted first. Adjustments
to the controller gain should be made gradually.
Flow Control
Since the flow control is fast responding, it can be used effectively as the secondary
controller in a cascade control structure. The non-linearity in the control loop may cause
the control loop to become unstable at different operating conditions. Since flow
measurement is naturally noisy, derivative action is not recommended.
The liquid pressure loop is typically very fast. The process is essentially identical to the
liquid flow process except that liquid pressure instead of flow is controlled using the final
control element. The liquid pressure loop can be tuned for Pl control, depending on your
performance requirements.
Liquid level control is essentially a single dominant capacity without dead time. In some
cases, level control is used on processes which are used to attenuate disturbances in the
process. In this case, liquid level control is not as important. Such processes can be
controlled with a loosely tuned P-only controller. If a liquid level offset cannot be
f'
I-~ tolerated, PI level controllers should be used.
There is some noise associated with the measurement of level in liquid control. If this
noise can be practically minimized, then derivative action can be applied to the controller.
It is recommended that Kc, be specified as 2 and the bias term ( OP:rs) be specified as 50%
I for P-only control. This ensures that the control valve is wide open for a level of75% and
compl~tely shut when the level is 25% for a set point level of 50%. If PI control is
desired, the liquid level controller is typically set to have a gain, Kc, between 2 and 10.
The integral time, T1, should be set between 1 and 5 minutes.
Gas pressure control is similar to the liquid level process in that it is capacity dominated
I without dead time. Varying the flow into or out of a vessel controls the vessel pressure.
Because of the capacitive nature of most vessels, the gas pressure process usually has a
small process gain and a slow response. Consequently, a high controller gain can be
Temperature Control
I PI controllers are widely used in industry, however PID control can be used to improve
the response time if the loop is slow.
Tuning Methods
I amplitude. At a system's stability margins, two important system parameters, the ultimate
period (Pu) and the ultimate gain (K11), allow the calculation of appropriate proportional
gain~ integral time, and derivative time values.
The ATV (Auto Tuning Variation) teclmique is used for processes which have significant
I dead time. A small limit cycle disturbance is set up between the manipulated variable
(OP%) and the controlled variable (PV). The ATV tuning method is as follows:
• Determine a reasonable value for the OP% valve change (h = fractional change in
valve position).
...,. . .. ·········--
'
Conu-oller '
Output. or
I,]!/ \ I \ I
I I \ I
/ Ul!1m:ile Gain
I Kir ~ ~11'(.\ l~aJ Ull11nm,· l'criod: I_
~
/\
P,
"
I
/
\
\
~
I
I
\ I
I "\
\. I \. I Process Variable, PV
t.time
Ec1uation
Tuning Parameter
Ultimate Gain K = ±t!
" 1ta
The Ziegler-Nichols2 (Z-N) tuning method is another method which calculates tuning
parameters. The Z-N teclmique was originally developed for electromechanical system
controllers and is based on a more aggressive "quarter amplitude decay" criterion. The Z-
N technique can be used on processes without dead time. The procedure is as follows:
Autotuner
The new autotuner function provides tuning parameters for the PID controller based on
fi
I " 1
0
gain and phase margin design. The autotuner itself can be viewed as another controller
object that has been embedded into the PID controller. The autotuner is based on a relay
00
feedback teclmique and by default incorporates a relay with hysteresis.
The PID controller parameters that are obtained from the autotuner are based on a design
methodology that makes use of a gain margin at a specified phase angle. This design is
quite similar to the regular gain and phase margin methodology except that it is more
accurate since the relay has the ability to determine points in the frequency domain
accurately and quickly. Also, the relay experiment is controlled and does not take a long
time during the tuning cycle.
In the present autotuner implementation, there are five parameters that you must supply:
0.\0$~$1.0
30°$~$65°
Relay hysteresis 0.01%:5:h:5:5.0%
h
Relay amplitude 0.5%$d$10.0%
Note: In the present version of the software there are default values specified for the PID
tuning. Before starting the autotuner, you must ensure that the controller is in the manual
or automatic mode and the process is relatively steady. If you move the cursor over the
tuning parameters field, the Status Bar will display the parameters range.
--c
1 .
'
Parameters
i'. Config1Jratio11 Design Type '§,; PIO )Pl
ii Advanced
i
j Atitoti.mer
I :IMC Design
I I Sck-cduling
Ii Al1:1rrns
Ii PV Conditioning
'j I. Signal Processing,!
!
j FeedFO,<Ward ·-··-····-· ... ---- _ ---- _ _ _ _ ·····-· _ -- ----
I
<
I! Model Tes.ting
j jiriitiali:.:i!ition I
I' Automatically Accept [C'j
I! I [K~- 1,00 '
i
II I [:~--- -------·-----·--··---------
["
.
<empty)
·-·-·-·<empty:>_ i I.
I
. Ji
11
11,]
i
i
, i_L::.-::::::::_:.:::::·
[
--- Delete _....
_ _ _._ _ _J
I L Fat_e,-Plate.•
This section outlines a possible way to create a control strategy in Aspen HYSYS®. You
should first follow the guidelines outlined in the Dynamic Modelling Manual in Section
1. 4.2 - Moving from Steady State to Dynamics in order to setup a stable dynamic case. In
many cases, an effective control strategy will stabilize the model.
You can install controllers in the simulation case either in Steady State or Dynamic
mode. There are many different ways to setup a control strategy. The following is a brief
outline of some of the more essential items that should be considered when setting up
controllers in Aspen HYSYS®.
Plan a control strategy that is able to achieve an overall plant objective and maintain
stability within the plant. Either design the controllers in the plant according to your own
standards and conventions or model a control strategy from an existing plant. In Aspen
HYSYS®, there are a number of variables which can either be set or controlled manually
in a dynamic simulation case. You should distinguish between variables that do not
change in a plant and those variables which are controlled.
Set variables do not change in the dynamic simulation case. Variables such as
temperature and composition should be set at each flowsheet boundary feed stream. One
pressure/flow specification is usually required for each flowsheet boundary stream in the
simulation case. These are the minimum number of variables required by the simulation
case for a solution.
Reserve these specifications for variables that physically remain constant in a plant. For
example, you can specify the exit pressure of a pressure relief valve since the exit
pressure typically remains constant in a plant.
In some instances, you can vary a set variable such as a stream's temperature,
composition, pressure or flow. To force a specification to behave sinusoidally or ramped,
attach the variable to the Transfer Function operation. A variety of different forcing
The behaviour of controlled variables is determined by the type of controller and the
tuning parameters associated with the controller. Typically, the number of control valves
I in a plant dictates the possible number of controlled variables. There will be more
variables to control in Dynamic mode than in Steady State mode. For instance, a two-
product column in Steady State mode requires two steady state specifications. The
simulator wilJ manipulate the other variables in the column in order to satisfy the
provided specifications and the column material and energy balances.
The same column in Dynamic mode requires.five specifications. The three new
specifications correspond to the inventory or integrating specifications not fixed in steady
state. The inventory variables include condenser level, reboiler level, and column
pressure.
II Note: A good controller strategy includes the control of both integrating variables and
steady state variables. By maintaining the integrating variables at specified setpoints,
I controllers add stability to the plant. Other controllers maintain the desired steady state
design specifications such as product composition and throughput.
You should choose appropriate controller structures for each controlled variable in the
simulation case.
The controller operations can be added in either Steady State or Dynamic mode.
However, controllers have no effect on the simulation in Steady State mode. You must
specify the following in order to fully define the PID Controller operation.
Connections Tab
The Process Variable (PV) can be specified in the Connections tab by clicking the
Select PV button. The controlJer measures the process variable in an attempt to maintain
it at a specified setpoint, SP.
The Operating Variable (OP) can be specified in the Connections tab by clicking the
Select OP button. The output of the controller is a contrOl valve. The output signal, OP,
is the percent opening of the control valve.
The operating variable may be specified as a physical valve in the plant, a material
stream, or an energy stream.
The output of a controller is always a control valve, unless the controller is the
primary controller in a Cascade control setup.
It is possible to have a flow reversal occur in a valve if the pressure drop across the
valve becomes negative. The flow reversal can be avoided by checking the Check
Valve.
I Energy Stream [fan energy stream is chosen as an operating variable, you may choose
a Direct Q or a Utility Fluid Duty Source by clicking tbe Control
alve button.
f the Direct Q option is chosen, you must specify the maximum and
I inimum energy flow of the energy stream. The actual energy flow of
he energy stream is calculated similarly to the material flow:
Energy Flow =
~
0
fJ~)(Flowma.< - F/owm!n) + Ff ow min
.
.
f the Utility Fluid option is chosen, you need to specify the maximum
d minimum flow of the utility fluid. The heat flow is then calculated
sing the local overall heat transfer coefficient, the inlet fluid
conditions, and the rocess conditions.
Parameters Tab
The action of the controller, the controller's PY range, and the tuning parameters are
specified in the Parameters tab.
A controller's action (direct or reverse) is specified using the Action radio buttons.
A controller's PV span is also specified in the PV Range field. A controller's PV span
must cover the entire range of the process variabl_e the sensor is to measure.
Tuning parameters are specified in the tuning field.
Set the range on the control valve at roughly twice the steady state flow you are
controlling. This is achieved by sizing the valve as Linear with an opening of 50% at the
Steady State pressure drop and flowrate. If the controller uses a material or energy stream
as an operating variable (OP), the range of the stream's flow can be specified explicitly in
the FCV view of the material or energy stream. This view is displayed by clicking the
Control Valve button in the PIO Controller view.
The final control element can be characterized as a linear, equal percentage, or quick
opening valve. Control valves also have time constants which can be accounted for in
Aspen HYSYS. It is suggested that a linear valve mode be used to characterize the valve
dynamics of final control elements. This causes the actual valve position to move at a
constant rate to the desired valve positions much like an actual valve in a plant. Since the
actual valve position does not move immediately to the OP% set by the controller, the
process is less affected by aggressive controller tuning and may be more stable.
""p
8ra~ol Mass Flow
Char!ie1 Mass Fk,w
HP Vap
I Mas; F!ow
''"··"····
D i
""'' "
.I
; flj
I
I
u l. ~
E
I No more than six variables should be active on any given strip chart; having more than
six active variables will make the strip chart difficult to read.
i
I Select the Display button to see the strip chart. Size it as desired. Right click on the plot
and then select Graph Control. There are several tabs in the Strip Chart Configuration
window where you can set:
r-:1 •
L. The numerical ranges of the strip chart for each variable
The nature of the lines for each variable
• How the strip chart updates and plots the data
1·--:
~ Add additional strip charts as desired by going back into the Dynamics tab and clicking
the Strip Charts button.
rI I .
4. Set up the Controller Faceplate,
Click the Faceplate button in the PID Controller view to display the controller's
u faceplate. The faceplate displays the PV, SP, OP, and mode of the controller. Controller
faceplates can be arranged in the Aspen HYSYS® work environment to allow for
monitoring of key process variables and easy access to tuning parameters.
' I
. I
:: _I
\
The integration step size can be modified in the Integrator view in the Simulation menu.
If desired, change the integration step size to a smaller interval. The default integration
time step is 0.5 seconds. Reducing the step size will cause the model to run slower, but
during the initial switch from Steady State to Dynamic mode, the smaller step size allows
the system to initialize better and enables close monitoring of the controllers to ensure
that everything was set up properly. A smaller step size also increases the stability of the
model since the solver can more closely follow changes occurring in the plant. Increase
the integration step size to a reasonable value when the simulation case has achieved
some level of stability. Larger step sizes increase the speed of integration and may be
specified if the process can maintain stability.
-o~~:
1
: : ~: ~:,l Optio,, :,:::::oss_i ____ ------------
' '------ --- -- ----- - --- - - --- - - -- - -- --
1 l Iotegrnfoo Time
[I IV.nits - minut~·1
:I ! Currs=nt Tlme 0.0000000 I
,! I A.:::c-eleration 1.0 ]
· 11 i
i_
,~!,~: :_ --------
[Display Int€rvol ------ - ---- - - --
__i:c'.:~":':~:Jl
- - 1.0000
I I !
I1 I I
,-Ioteqca,tlooS.tep --- --------- ----------------- ---- -,
--------------------------
Units
---------------~----1
seconds [
I
!
iStep Sire
1
o.soooo_ [
!Mir,im1.1m
II ,____IMaximum -·-~·--·-·---------------·20.000J
-- --------- --------- - - ------- --- ------ --------- --- ,
L-------------------- -------- -------- --------·----------·- . ____ J
i
f-__- ~ I
I If reasonable pressure/flow specifications are set in the dynamic simulation and all the
equipment is properly sized, most process variables should line out after the Integrator is
run. The transition of most unit operations from Steady State to Dynamic mode is very
I smooth. However, controller tuning is critical if the plant simulation is to remain stable.
Dynamic columns, for instance, are not open loop stable like many of the unit operations
in Aspen HYSYS®. Any large disturbances in the column may result in simulation
I instability.
Once the Integrator is running:
•
I Slowly bring the controllers online starting with the ones attached to upstream
unit operations. The control of flow and pressure of upstream unit operations
should be handled initially since these variables have a significant effect on the
stability of downstream unit operations.
I •
Finally, pay attention to the accumulations of the condenser and re boiler and
control those variables.
Start conservatively using low gains and no integral action. Most unit operations
can initially be set to use P-only control. If an offset cannot be tolerated initially,
I •
then integral action should be added.
Trim the controllers using integral or derivative action until satisfactory closed-
loop performance is obtained.
• At this point, you can concentrate on changing the plant to perform as desired. For
I example, the control strategy can be modified to maintain a desired product
composition. If energy considerations are critical to a plant, different control
strategies may be tested to reduce the energy requirements of unit operations.
Stability
It has been shown that the stability of a closed loop process depends on the controller
gain. If the controller gain is increased, the closed loop response is more likely to become
unstable. The controller gain (Kc) input in the PIO Controller operation in Aspen
HYSYS® is a unitless value defined in Equation 23.
(23)
I K =
'
OP%
Ll PV / PV Range
In order to control the process, the controller must interact with the actual process. This is
achieved by using the effective gain, Ke.ff, which is essentially the controller gain with
units. The effective gain is defined as:
Note: The process gain has units that are reciprocal to the effective gain.
Note: The stability of the closed-loop response is not only dependent on the controller
gain, Kc, but also on the PY range parameters provided and the maximum flow allowed
by the control valve. Decreasing the PV range increases the effective gain, Keff, and
therefore decreases the stability of the overall closed-loop response. Decreasing the
final control element's flow range decreases the effective gain, Keff, and therefore
increases the stability of the closed-loop response.
It is possible to achieve tight control in a plant and to have the simulation case become
unstable due to modifications in the PY range or Cv values of a final control element.
You should also consider the effect of interactions between the control loops existing in a
plant. Interactions between the control loops change the effective gain of each loop. It is
possible for a control loop that was tuned independently of the other control loops in the
plant to become unstable as soon as it is put into operation with the other loops. It is
therefore useful to design feedback control loops, which minimize the interactions
between the controllers.
References
• Svrcek, W.Y., Mahoney, D.P., and B.R. Young. A Real Time Approach to
Process Controls John Wiley & Sons Ltd, Chichester (2000) p. 125
Ogunnaike, B.A. and W.H. Ray. Process Dynamics, Modeling, and Control
Oxford University Press, New York (1994) p. 531