Escolar Documentos
Profissional Documentos
Cultura Documentos
Appendix 1
l
ia
nt
rv ll 2 se 9 e
se e l u 00 fid
ly
Guidelines to
re yw a 2 on
09 on
s e rn ril C
ig Ho in A nd Modeling in
UniSim Design
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
Dynamics
yr Aff o S eta
op ll/ t ri
C e d op r
r S ss l P
e
el
u
w
ey
I
h
on
H
Fo
2
2
on
ey
Fo w
I el
r S ss l P
h
C e d op u e r
op ll/ t ri
Appendix 1
yr Aff o S eta
Al igh lia h ry
l r t te ell a
ig Ho in A nd
ht n te p
s e rn ril C
re yw a 2 on
se e l u 00 fid
rv ll 2 se 9 e
ed 0 nt
09 on ia
ly l
Appendix 1 3
Introduction
l
ia
nt
This appendix contains various information which may be useful
rv ll 2 se 9 e
when working with UniSim Design dynamics. It is split into three
se e l u 00 fid
broad sections:
ly
re yw a 2 on
Practical Model Stability
09 on
Model Speed
s e rn ril C
Working with Large Simulation Cases
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
yr Aff o S eta
op ll/ t ri
C e d op r
r S ss l P
e
el
u
w
ey
I
h
on
H
Fo
3
4 Appendix 1
l
ia
nt
rv ll 2 se 9 e
Elevations - If Using Static
se e l u 00 fid
Head
ly
re yw a 2 on
09 on
s e rn ril C
Using static head contributions adds additional fidelity to dynamic
simulation. However it also introduces the potential for additional
stability issues.
ig Ho in A nd
There are two static head options available on the Options tab of
l r t te ell a
the Integrator window:
ed 0
ht n te p
Al igh lia h ry
elevation x .
Fo
4
Appendix 1 5
l
ia
CTRL O: Replaces the stream labels with the elevation of the
nozzle on the equipment the stream is a product from.
nt
When dealing with two phase systems (vapour-liquid) it is
rv ll 2 se 9 e
generally recommended to create as flat elevation profile as
se e l u 00 fid
possible and thus avoid any slight changes in pressures due to
changes in elevation. The most common example of this is in
ly
re yw a 2 on
overhead condenser systems. In all systems it is generally
09 on
recommended to try and change elevations with the use of
s e rn ril C
separators, but this is particularly important in two phase systems.
ed 0
changes can add stability to a model.
ht n te p
Al igh lia h ry
top of the column and the condenser can greatly increase the
stability of the column and ensure that if reverse flow does occur
that it is likely vapour and not liquid or two phase.
op ll/ t ri
C e d op
level and the boot height is set such that the body of the separator
is at the correct elevation. Using this method ensures that any
ey
pumps which feed from the chimney tray will function correctly.
I
h
on
Fo
5
6 Appendix 1
Column Sumps
High purity systems - behavior of the system is approaching
l
ia
pure component behavior or is pure component (steam
systems)
nt
Systems with gas blankets for pressure control (nitrogen or
rv ll 2 se 9 e
natural gas)
se e l u 00 fid
When adjusting the vessel efficiencies in most cases only the
ly
recycle and feed nozzle efficiencies for the vapour phase need to
re yw a 2 on
be adjusted, however if reverse flow is expected then the vapour
09 on
product nozzles should also be adjusted. Liquid nozzle efficiencies
s e rn ril C
can be left at the default 100% in almost all situations.
ig Ho in A nd
and as such there are no hard and fast rules as to what values to
use. However, if adjusting the values, changing from 100% to
l r t te ell a
ed 0
0.1-5% is a reasonable starting point. Additionally, when adjusting
ht n te p
values it is a good idea to keep the recycle and feed nozzle
Al igh lia h ry
flow conditions.
6
Appendix 1 7
l
ia
One common mistake is adding fixed flow values in a model
nt
without adequate protection. These are either added as material
stream flow specifications or possibly as duty specifications in
rv ll 2 se 9 e
heater or cooler operations. In both cases it is possible to get into
se e l u 00 fid
situations where the fixed value is no longer practical, possible or
realistic. When this occurs there is a chance that the model will
ly
show some problems, likely in the form of unexpected or
re yw a 2 on
unrealistic pressures or temperatures.
09 on
s e rn ril C
When adding flow specifications it is highly advisable to use a
spreadsheet to limit or clamp the flows. For a heater or cooler a
simple calculation which reduces the duty as flow drops below a
ig Ho in A nd
threshold can limit the occurrence of unrealistically high or low
temperatures. For material stream flow specifications such a
l r t te ell a
ed 0
calculation can reduce or eliminate the occurrence of extremely
ht n te p
high or low pressures.
Al igh lia h ry
yr Aff o S eta
very short (2-15 second) first order lag. This can greatly reduce
instabilities resulting from the spreadsheet calculation.
C e d op r
Instantaneous Valves
r S ss l P
e
el
If valve rates are not known then using a linear actuator rate of
I
h
7
8 Appendix 1
Rotating Equipment
l
ia
nt
For centrifugal pumps and compressors there are a number of
factors which can help stability.
rv ll 2 se 9 e
se e l u 00 fid
Inertia Modeling Parameters
Friction Loss
ly
re yw a 2 on
Electric Motor
09 on
s e rn ril C
Additionally for pumps, there is now an option to directly control
the speed of the pump. On the Dynamics tab Specs page the
The Speed Ramp option pump can be changed to Speed Ramp. When this is done the user
ig Ho in A nd
is only available if Use
Characteristic Curves
and Speed are used for
can enter a linear ramp time for pump starts and a first order time
constant for pump stops.
l r t te ell a
ed 0
the pump dynamic
ht n te p
specifications.
Al igh lia h ry
yr Aff o S eta
op ll/ t ri
C e d op r
r S ss l P
e
el
u
w
ey
I
h
on
H
Fo
8
Appendix 1 9
Flash Frequency
l
ia
nt
There may be sections (or individual pieces of equipment) which
could benefit from having a more frequent flash frequency. While it
rv ll 2 se 9 e
is not possible to change the integrator step size for individual
se e l u 00 fid
portions of the model the flash frequency can be changed for
individual unit operations.
ly
re yw a 2 on
09 on
If needed this can be a method to balance stability and model
speed. Changing the flash frequency for the whole model will have
s e rn ril C
a similar effect on model speed i.e. if the flash frequency is
changed from 10 to 5 the model speed will also be reduced by
ig Ho in A nd
about half. Depending on the unit operation, changing the flash
If the flash frequency frequency for an individual operation may provide additional
for a large column is
stability with little noticeable effect on real time.
l r t te ell a
changed this may have
ed 0
ht n te p
a large impact on model
Al igh lia h ry
speed. Flash frequency for individual operations can be changed by adding
a new Workbook page of Dynamic Equipment Op. On any
yr Aff o S eta
Fo
9
10 Appendix 1
Relief Valves
l
ia
nt
Relief valves in UniSim Design are calculated at the end of the
pressure flow calculation step and as such they can cause
rv ll 2 se 9 e
instabilities in the model.
se e l u 00 fid
There are several recommended options for increasing the stability
ly
re yw a 2 on
of relief valves in the model:
09 on
Ensure a reasonable pressure difference between the set
s e rn ril C
pressure and full open pressure. If full open pressure is not
provided, specify for vapour at least 10% of the set
pressure for liquid at least 20%
ig Ho in A nd
Enable valve hysteresis. This allows the specification of a
l r t te ell a
closing pressure and reseating pressure. Typically the
ed 0
ht n te p closing pressure is set at or approximately the set pressure
Al igh lia h ry
For liquid relief valves set the Liquid Service option. This
provides additional stability for liquid relief valves.
op ll/ t ri
Fo
10
Appendix 1 11
Model Speed
l
ia
nt
One of the greatest problems or challenges with dynamic
rv ll 2 se 9 e
simulations is model speed, often referred to in terms of real time
se e l u 00 fid
or factors of real time. When looking at model speed it is important
to remember that some of the factors which increase model speed
ly
re yw a 2 on
may also reduce model stability and rigour. It is often necessary to
09 on
balance model speed with stability.
s e rn ril C
When looking at model speed the final use of the model should be
considered. In a rigorous dynamic model there is often less
ig Ho in A nd
emphasis on model speed and more on obtaining rigorous results.
It may be possible to let a study run overnight or in the
l r t te ell a
background without human interaction and simply wait for the
ed 0
ht n te p
required results. On the other hand with an Operator Training
Al igh lia h ry
First Glance
r
r S ss l P
When looking to increase real time speed there are several basic
items which should be addressed first (in no particular order):
e
el
u
model with a 0.5 second step size will run twice as fast as a
ey
model with a 0.25 second step size. A model with a small step
size may be more stable and produce a more rigorous result
I
h
but at a price of speed. For most OTS projects a step size of 0.5
on
Fo
11
12 Appendix 1
l
rigorous flash calculation is performed and simplified
ia
calculations are performed on the intermediate steps. For a
nt
dynamic study it may be necessary to reduce this to every 5th
or even every time step depending on the model and the
rv ll 2 se 9 e
results required. For most OTS projects the default frequency
se e l u 00 fid
has been found to provide a reasonable balance between rigour
and speed. As previously discussed, the flash frequency can be
ly
re yw a 2 on
changed for individual operations which may add the required
fidelity and stability without sacrificing speed.
09 on
s e rn ril C
Second Glance
ig Ho in A nd
Once you have looked at the model setup basics the next step is to
look at the setup of the model:
l r t te ell a
ed 0
ht n te p
1. Are there a large number of Strip Charts open and currently
Al igh lia h ry
recording?
yr Aff o S eta
windows or PFDs?
have an impact.
u
w
Run the model with the current windows open and observe the
ey
recorded real time. Next, close all the windows and even try
I
minimizing UniSim Design. Let the model run and then observe the
h
on
recorded real time. If the open windows had an impact on the real
time (and sometimes it is very small) you should be able to see it
H
12
Appendix 1 13
l
ia
Dynamic Profiling Tool
nt
rv ll 2 se 9 e
In the end it is often necessary to actually start looking at the
model itself to see if making model changes can provide additional
se e l u 00 fid
speed. When doing this it is generally recommended to start by
ly
looking at the Dynamic Profiling Tool found under the Tools
re yw a 2 on
menu.
09 on
s e rn ril C
1. To use the tool effectively, place the model in Manual mode:
Figure 1
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
yr Aff o S eta
op ll/ t ri
C e d op r
r S ss l P
e
el
u
w
ey
I
h
on
Fo
13
14 Appendix 1
Figure 2
l
ia
nt
rv ll 2 se 9 e
se e l u 00 fid
ly
re yw a 2 on
09 on
s e rn ril C
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
yr Aff o S eta
3. Start the Integrator and let it run for the specified number of
steps.
op ll/ t ri
Figure 3
e
el
u
w
ey
I
h
on
H
Fo
14
Appendix 1 15
l
study or OTS of typical size (case file ~10 MB) the highest cost
ia
item should be the Pressure-Flow Solver with all other
nt
operations having a lower cost.
rv ll 2 se 9 e
The operations which typically have the highest cost are:
se e l u 00 fid
Tray sections
ly
re yw a 2 on
Fired heaters
09 on
Compressors/Expanders
s e rn ril C
Heat exchangers
Vessels
ig Ho in A nd
The operations which typically have low costs and should only
l r t te ell a
appear at the bottom of the list are:
ed 0
ht n te p
Al igh lia h ry
Valves
Mixers/Tees
yr Aff o S eta
Feeder/Product blocks
Logical operations (spreadsheets, controllers, or Boolean)
op ll/ t ri
C e d op
The Model
u
w
Finally the model structure should be looked at. Some (but not all)
ey
combined?
Are there mixers which then feed into vessels - these
mixers can often be removed if there are no measurements
on the combined stream before the vessel.
Is the Detailed option being used on heat exchangers - this
is much slower than the simple option.
Are there Utilities which are running very frequently that
could be reduced?
15
16 Appendix 1
l
ia
Are there any dummy streams being used which are
associated with fluid packages with a large number of
nt
components?
rv ll 2 se 9 e
In some situations, despite the best efforts, it is not possible to
se e l u 00 fid
achieve greater model speed due to other limitations:
ly
re yw a 2 on
Thermo package being used - some such as Peng-Robinson
are very fast. Others such as the steam models (ASME or
09 on
NBS) are very slow.
s e rn ril C
Computer hardware - for greatest speed a recommendation
would be to use the fastest CPU possible (and although
ig Ho in A nd
UniSim Design is single threaded a dual core or dual CPU
should be used), with as much memory as possible.
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
yr Aff o S eta
op ll/ t ri
C e d op r
r S ss l P
e
el
u
w
ey
I
h
on
H
Fo
16
Appendix 1 17
l
ia
nt
Simulation Cases
rv ll 2 se 9 e
se e l u 00 fid
ly
Using Sub-flowsheets
re yw a 2 on
09 on
s e rn ril C
UniSim Design has a multi-flowsheet architecture. This allows a
large process to be split up into smaller sections or sub-flowsheets.
ig Ho in A nd
Each sub-flowsheet has its own streams and operations, a separate
PFD and Workbook and can be independently linked to a fluid
package.
l r t te ell a
ed 0
ht n te p
When looking to split a large flowsheet into multiple sub-flowsheets
Al igh lia h ry
navigate and maintain. As such you do not want to make the sub-
flowsheets so large that they themselves are unusable but you also
do not want so many small sub-flowsheets that navigation is
op ll/ t ri
impaired.
C e d op
Try and have as few streams passing into and out of the
I
h
17
18 Appendix 1
l
model. This method allows multiple engineers to work on
ia
the same model at the same time - with a single large
nt
model this is not possible.
rv ll 2 se 9 e
There are no hard and fast rules with regards to breaking a large
se e l u 00 fid
model into sub-flowsheets and ultimately whatever works best for
the people building and maintaining the model is best.
ly
re yw a 2 on
A sample model before and after converting to sub-flowsheets is
09 on
shown on the next figures.
s e rn ril C
Before using sub-flowsheets:
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
yr Aff o S eta
op ll/ t ri
C e d op r
r S ss l P
Fo
18
Appendix 1 19
l
ia
UniSim Operations includes functionality to link separate UniSim
nt
Design models together and to control the integration of the
combined system of models. The reason for doing this is usually
rv ll 2 se 9 e
so that the sub-models can be distributed across several
se e l u 00 fid
processors to give the required model speed. Another reason is
that during the development phase it may be more convenient to
ly
re yw a 2 on
split the overall model into sub-models to allow parallel working.
09 on
When splitting a large model into multiple sub-models and
s e rn ril C
configuring the connections between the models it is useful to keep
some rules in mind.
ig Ho in A nd
Conceptually we only need to connect the piping between the
different models to facilitate material flow. This does mean tearing
l r t te ell a
ed 0
the simultaneous pressure-flow solution, however with suitable
ht n te p
Al igh lia h ry
to
u
w
ey
n! (1)
I
2 (n 2)
h
on
H
different case pairings. With each case pairing there will be one
flow specification and one pressure specification.
19
20 Appendix 1
Flow Specifications
l
ia
The optimal location for flow specifications is either into or out of
nt
large holdup volumes or points of fixed or weakly variant pressure.
rv ll 2 se 9 e
A resistance item or other unit operation that only slightly changed
se e l u 00 fid
the pressure from a nearby large volume (or pressure
specification) may be acceptable. Similarly a series of interlinked
ly
volumes with small resistances to flow in between them may also
re yw a 2 on
work. The key here is that flow specifications should be made at
09 on
points where there is one of the following:
s e rn ril C
1. a constant pressure,
ig Ho in A nd
2. a large volume for capacitance (ideally partially vapour filled),
ed 0
reached in the Flowsheet flow path where the pressure is
ht n te p
invariant.
Al igh lia h ry
yr Aff o S eta
Pressure Specifications
op ll/ t ri
Fo
20