Documentos de Académico
Documentos de Profesional
Documentos de Cultura
on
ey
w
4528.02.R380.02
Fo
I el
r S ss l P
h
C e d op u e r
ig Ho in A nd
Pressure-Flow
ed 0 nt
09 on ia
ly l
1
H
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
Pressure-Flow Theory
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
Pressure-Flow Theory 3
Workshop
l
ia
nt
The Pressure-Flow Theory module introduces you to the underlying
concepts necessary for developing your own dynamic simulations
rv ll 2 se 9 e
with UniSim Design Dynamics.
se e l u 00 fid
ly
Learning Objectives
re yw a 2 on
09 on
s e rn ril C
The objectives of this module are to understand the basic principles
of dynamic modeling and simulation using UniSim Design:
ig Ho in A nd
Physical and mathematical background
The pressure-flow solver
l r t te ell a
ed 0
ht n te p
Pressure-flow networks and 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
3
4 Pressure-Flow Theory
Introduction
l
ia
nt
Dynamic simulation can be used to better design, optimize, and
rv ll 2 se 9 e
operate process plant and processing facilities. By their very
se e l u 00 fid
nature, such processes never truly operate at steady state. Feed
and environmental disturbances, flowline slugging, heat exchanger
ly
re yw a 2 on
fouling, well work and export constraints continuously change the
09 on
process conditions. The transient behavior of the process system
s e rn ril C
can be studied using a dynamic simulation tool like UniSim Design.
ig Ho in A nd
steady state and dynamic behavior. Steady state models can
perform steady state energy and material balances and evaluate
l r t te ell a
different plant scenarios. The design engineer can use steady state
ed 0
ht n te p
simulation to optimize the process by reducing capital and
Al igh lia h ry
provide insight into the process system which is not possible with
steady state modeling. Dynamic simulation can be used to
investigate:
Process optimization
Controller optimization
Safety evaluation
Transitions between operating conditions
4
Pressure-Flow Theory 5
Start-up/Shutdown conditions
l
In UniSim Design, the dynamic model shares the same physical
ia
property packages as the steady state model. The dynamic model
nt
simulates the thermal, equilibrium and reactive behavior of the
system in a similar manner to the steady state model.
rv ll 2 se 9 e
se e l u 00 fid
Whilst the property methods are the same as used in steady state,
the dynamic model uses a different set of conservation equations
ly
to account for changes occurring over time. The equations for
re yw a 2 on
material and energy conservation are differential equations and
09 on
include transient accumulation terms to describe the rate of change
s e rn ril C
of holdup of mass and energy with time.
ig Ho in A nd
equations which describe the underlying physical principles.
However, the complexity of these equations means an analytical
l r t te ell a
ed 0
solution method does not exist. Instead numerical integration must
ht n te p
be used which solves the equations at distinct time steps. In
Al igh lia h ry
general, the smaller the time step, the more accurate the
yr Aff o S eta
include:
r S ss l P
controller models.
w
5
6 Pressure-Flow Theory
l
plant. Rating information includes the equipment size,
ia
geometry, nozzle placement and position relative to the
nt
ground. A comprehensive holdup model calculates levels,
heat loss, static head contributions and product
rv ll 2 se 9 e
compositions based on the rating information of each piece
se e l u 00 fid
of equipment.
Customizable. UniSim Design is customizable. Many
ly
re yw a 2 on
organizations have proprietary models and these can be
09 on
integrated into UniSim Design using OLE/Automation.
s e rn ril C
Mathematical Modeling
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Linear & Nonlinear Systems
Al igh lia h ry
yr Aff o S eta
Parameter Models
w
ey
I
6
Pressure-Flow Theory 7
l
physical properties are considered to be constant with spatial
ia
position and only the rate of change with time is considered. The
nt
resulting mathematical models can be described using only
ordinary differential equations (ODEs) which are far less complex
rv ll 2 se 9 e
than PDEs and easier to solve. For most process engineering
se e l u 00 fid
applications lumped parameter models give sufficient accuracy that
distributed parameter models are not required.
ly
re yw a 2 on
UniSim Design uses lumped parameter models for all unit
09 on
operations. For example, in the Separator, it is assumed that there
s e rn ril C
are no temperature or compositions gradients so that the
temperature and composition at every point within each phase
ig Ho in A nd
inside the Separator is assumed to the same.
ed 0
variables cannot be neglected. For example, in a pipe or plug flow
ht n te p
Al igh lia h ry
reactor the pressure, temperature and composition varies with
length. In UniSim Design such unit operations are solved by
yr Aff o S eta
Conservation Equations
e
el
u
balances that are derived in the following section are similar to the
I
term. This accumulation term allows the output variables from the
system to vary with time.
H
Fo
7
8 Pressure-Flow Theory
Material Balance
l
ia
The conservation of mass is described by the following general
nt
principle:
rv ll 2 se 9 e
Accumulation (holdup) = Liquid Flow In Liquid Flow Out
se e l u 00 fid
dM d (V )
ly
(1)
re yw a 2 on
= = Fin Fout
09 on
Remember: in steady state dt dt
accumulation is ignored.
s e rn ril C
Flow in equals flow out.
Where: M = total moles
ed 0
ht n te p
Al igh lia h ry
V = volume
t = time
op ll/ t ri
C e d op
Component Balance
r
r S ss l P
as follows:
u
w
Accumulation of i =
ey
I
h
d (Mx i )
Fo
NR (2)
= Fin x i ,in Fout x i + V ij r j
dt j =1
rj = rate of reaction j
8
Pressure-Flow Theory 9
l
ia
For a system with NC components, there are NC component
balances. However, the total mass balance and component
nt
balances are not independent (since the former is the sum of the
latter). Therefore, in general, a model would include the total mass
rv ll 2 se 9 e
balance and (NC-1) component balances.
se e l u 00 fid
ly
re yw a 2 on
Energy Balance
09 on
s e rn ril C
The conservation of energy can be described is as follows:
Accumulation of energy =
ig Ho in A nd
+ inflow of energy (internal, kinetic, potential)
l r t te ell a
ed 0
ht n te p
outflow of energy (internal, kinetic, potential)
Al igh lia h ry
dU (3)
r
dt
e
el
Q = heat added
ey
I
h = enthalpy
h
on
Fo
Note that, with the equation written in this form, the internal
energy and enthalpies are mixture conditions relative to a defined
reference state (T, p, xi).
9
10 Pressure-Flow Theory
Solution Algorithm
l
ia
nt
Equations 1-3 are ordinary differential equations. In general, an
ordinary differential equation can be written in the form:
rv ll 2 se 9 e
se e l u 00 fid
dy (4)
= y (t ) = f (t , y(t )), y(t 0 ) = y 0
ly
re yw a 2 on
dt
09 on
s e rn ril C
To solve ordinary differential equations a numerical integration
method is normally required. There are several numerical
integrations schemes in existence.
ig Ho in A nd
l r t te ell a
The Explicit (or Forward)
ed 0
ht n te p
Al igh lia h ry
Euler Method
yr Aff o S eta
approximation:
r
y (t )
h
e
el
u
Fo
y n+1 = y n + h f (t n , y n ) (7)
10
Pressure-Flow Theory 11
l
ia
One of the main benefits of this method is that it is explicit (hence
nt
the name), so the results at step (n+1) can be calculated using
only information already available from step n.
rv ll 2 se 9 e
se e l u 00 fid
The main disadvantage of explicit methods is that for stiff equation
systems 1 , they can become unstable and fail to converge unless
ly
re yw a 2 on
the step size h is very small. Since most engineering systems
result in stiff differential equation sets, this usually prohibits the
09 on
use of explicit methods in practical engineering applications.
s e rn ril C
The Implicit (or Backward)
ig Ho in A nd
Euler Method
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
(8)
op ll/ t ri
y(t ) y(t h)
y (t )
C e d op
h
r
r S ss l P
y(t + h) y(t )
e
el
y (t + h) (9)
u
h
w
ey
Fo
1
See http://en.wikipedia.org/wiki/Stiff_equation
11
12 Pressure-Flow Theory
l
from:
ia
nt
y n+1 y n + hf (t n+1 , y n+1 ) (12)
rv ll 2 se 9 e
se e l u 00 fid
in a stepwise manner, starting from a known initial value y0 in
ly
steps of size h.
re yw a 2 on
09 on
The main difference with this method is that it is implicit; so that
s e rn ril C
an equation has to be solved for y(n+1) at each step. This is usually
done with a Newton-type nonlinear solver
ig Ho in A nd
In general, the main advantage of implicit methods is that they are
much more stable for stiff equation systems, meaning that a larger
l r t te ell a
step size h can be used and hence the solution can be obtained
ed 0
ht n te p
faster with fewer steps.
Al igh lia h ry
UniSim Design uses the Implicit Euler Method and the integration
yr Aff o S eta
parameters such as the time step size (h) can be specified in the
Integrator view from the Simulation menu in UniSim Design. The
time step size can be adjusted to increase the speed or stability of
op ll/ t ri
the system.
C e d op
Integration Strategy
r
r S ss l P
e
categories:
u
w
Pressure-Flow
ey
Energy
I
h
on
Composition
Logical Calculations (controller equations, spreadsheets
H
etc.)
Fo
12
Pressure-Flow Theory 13
l
solved at every 10th time step. Since composition tends to change
ia
much more gradually than the pressure, flow, or energy in a
nt
system, the equations associated with composition can be solved
less frequently and still maintain acceptable accuracy. Using this
rv ll 2 se 9 e
approach an approximate flash is used for each pressure-flow
se e l u 00 fid
integration time step and a rigorous flash calculation is performed
at every composition integration time step. A similar methodology
ly
re yw a 2 on
is used for energy calculations.
09 on
s e rn ril C
Holdup Model
ig Ho in A nd
Dynamic behavior arises from the fact that many pieces of plant
l r t te ell a
ed 0
equipment have some sort of material inventory or holdup. A
ht n te p
holdup model is necessary because changes in the composition,
Al igh lia h ry
volume (holdup) are not immediately seen in the exit stream. The
model predicts how the holdup and exit streams of a piece of
equipment respond to input changes to the holdup over time.
op ll/ t ri
C e d op
Heat transfer
Fo
Chemical reaction
13
14 Pressure-Flow Theory
l
between the feed phases of the holdup (to model a bypass,
ia
imperfect mixing etc.).
nt
The concept of feed and product nozzles is used to define
rv ll 2 se 9 e
the position of the connected streams relative to the holdup
and the effect on the process. For example, if a product
se e l u 00 fid
nozzle is placed below the liquid level in a separator, only
liquid will exit from the nozzle until the vapour-liquid
ly
re yw a 2 on
interface has fallen below the level of the nozzle.
09 on
s e rn ril C
Assumptions of Holdup
ig Ho in A nd
Model
l r t te ell a
ed 0
ht n te p
There are several underlying assumptions that are considered in
Al igh lia h ry
Accumulation
e
el
u
2
with the exception of static head contributions
14
Pressure-Flow Theory 15
Pressure-Flow Solver
l
ia
nt
The fundamental principle used in dynamic modeling in
UniSim Design is the concept of the pressure-flow network and the
rv ll 2 se 9 e
pressure-flow solver.
se e l u 00 fid
All dynamic models are considered in terms of their pressure-flow
ly
re yw a 2 on
network and at every time step of the numerical integration, the
UniSim Design pressure-flow solver performs a simultaneous
09 on
solution of all the pressure-flow network equations.
s e rn ril C
There are two basic equation types which define the pressure-flow
ig Ho in A nd
network and these equations can considered in terms of only
pressure and flow as variables:
l r t te ell a
Pressure nodes These are holdups of defined volume at
ed 0
ht n te p which the pressure is calculated based on the material and
Al igh lia h ry
device is a valve.
r
Pressure Nodes
r S ss l P
e
el
Examples of unit operations with more than one pressure node are:
ey
Fo
15
16 Pressure-Flow Theory
Basic Pressure-Flow
l
ia
Equations
nt
rv ll 2 se 9 e
Volume Balance
se e l u 00 fid
ly
For equipment with holdup, an underlying principle is that the
re yw a 2 on
physical volume of the vessel is constant and thus the volume of
09 on
material in the vessel remains constant. Therefore, during
s e rn ril C
calculations in dynamics, the change in volume of the material
inside the vessel is zero:
ig Ho in A nd dV
=0
(13)
l r t te ell a
ed 0
ht n te p dt
Al igh lia h ry
function of the fixed volume, the holdup inventory and the thermal
state (temperature/enthalpy).
op ll/ t ri
C e d op
dP (14)
= f (V , M, T )
dt
r
r S ss l P
P = pressure
w
VP VF VT (15)
+ + =0
t t t
16
Pressure-Flow Theory 17
l
ia
VF = volume change due to flow change
nt
VT = volume change due to temperature change
rv ll 2 se 9 e
Each vessel holdup contributes at least one volume balance
se e l u 00 fid
equation to the pressure-flow matrix.
ly
re yw a 2 on
Example
09 on
s e rn ril C
The volume balance equation captures pressure effects in the
vapour holdup due to disturbances in the feed. Consider a
ig Ho in A nd
separator at constant temperature with a two-phase feed stream,
where the feed flow is suddenly increased. Assume that the exit
l r t te ell a
flows from the separator are fixed (Figure 1).
ed 0
ht n te p
Al igh lia h ry
Figure 1
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
The increase in feed flow causes the vessel pressure to rise for the
h
on
following reasons:
17
18 Pressure-Flow Theory
l
ia
their Equations
nt
rv ll 2 se 9 e
In UniSim Design unit operations such as valves and heat
exchangers act as resistance devices which calculate the flow rate
se e l u 00 fid
through them based on the pressure drop across them using
ly
resistance equations. In UniSim Design, resistance equations are
re yw a 2 on
based on turbulent flow and have the form:
09 on
s e rn ril C
F = k P (16)
ed 0
ht n te p = density
Al igh lia h ry
P = pressure gradient
yr Aff o S eta
rate through the valve to the frictional pressure drop across it:
r S ss l P
F = f (Cv, P1 , P2 )
e
(17)
el
u
w
P1 = upstream pressure
h
on
P2 = downstream pressure
H
18
Pressure-Flow Theory 19
l
with them.
ia
nt
Unit Operation Resistance Term
Valve Using a pressure-flow specification, the user can
rv ll 2 se 9 e
specify conductance, Cv, on the Specs page of the
se e l u 00 fid
Dynamics tab.
For more detailed Pump The heat flow and pump work define the pressure-
ly
description on the flow equation of the pump. These parameters can
re yw a 2 on
individual unit
be specified and/or calculated on the Specs page
09 on
operations and the
of the Dynamics tab.
resistance equations
s e rn ril C
associated with them, Compressor/Expander The heat flow and compressor work define the
see the UniSim Design pressure-flow equations of the compressor. These
Operations Guide parameters can be specified and/or calculated on
ig Ho in A nd
manual. the Specs page of the Dynamics tab.
Heater/Cooler/Heat With a pressure-flow specification, the user can
Exchanger/ Air
l r t te ell a
specify the K-value on the Specs page of the
ed 0
Cooler/LNG Dynamics tab.
ht n te p
Al igh lia h ry
Tray Sections, Weir The weir equation determines the liquid flow rate
Equation from a tray as a function of the liquid level in the
yr Aff o S eta
types.
I
h
on
19
20 Pressure-Flow Theory
Simultaneous Solution of
l
ia
the Pressure-Flow Network
nt
rv ll 2 se 9 e
The relationship between pressure and flow in the pressure-flow
network in UniSim Design is highly coupled:
se e l u 00 fid
the pressure node equations are a function of the flow rates
ly
re yw a 2 on
into and out of the pressure nodes
09 on
the flow rates through resistance devices are functions of
s e rn ril C
the upstream and downstream pressures
ig Ho in A nd
nodes and multiple resistance devices, arising from the various unit
operations in the model connected according to the process flow
l r t te ell a
diagram.
ed 0
ht n te p
Al igh lia h ry
devices.
e
el
Figure 2
u
w
ey
I
h
on
H
Fo
20
Pressure-Flow Theory 21
l
ia
Flow Specifications
nt
rv ll 2 se 9 e
Each unit operation in a UniSim Design model contributes one or
more pressure-flow equations to the pressure-flow network.
se e l u 00 fid
Although the specific form of the various pressure-flow equations is
ly
dependent on the type of unit operation, in many cases the user is
re yw a 2 on
given a choice for which equation they would like to use. This
09 on
information is given on the Dynamics tab.
s e rn ril C
For example, in the valve unit operation the user is given the
choice of the standard pressure-flow relation, equation (17) or
ig Ho in A nd
instead to use a fixed pressure drop.
l r t te ell a
ed 0
Material Stream
ht n te p
Al igh lia h ry
Pressure-Flow
yr Aff o S eta
Specifications
op ll/ t ri
C e d op
Fo
21
22 Pressure-Flow Theory
Figure 3
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
The user is required to provide enough stream pressure-flow
Al igh lia h ry
Flow Network
I
h
on
22
Pressure-Flow Theory 23
l
number to satisfy the overall degrees of freedom in the
ia
pressure-flow network.
nt
Configure the model is such a way that a realistic pressure
rv ll 2 se 9 e
gradient is defined in the model (no pressure = no flow,
positive pressure gradient = negative flow!).
se e l u 00 fid
For inexperienced users UniSim Design provides a tool, the
ly
re yw a 2 on
Dynamics Assistant, which can be used to check the model to
09 on
ensure these conditions are satisfied. Further details are provided
s e rn ril C
later in the module.
Example
ig Ho in A nd
l r t te ell a
As an example of the pressure-flow network, consider the
ed 0
ht n te p
flowsheet shown in Figure 4.
Al igh lia h ry
Figure 4
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
In this flowsheet there are eight material streams and one vessel
on
with holdup. Each material stream has a pressure and a flow, and
the holdup has a pressure. Thus the number of equations is:
H
Fo
8 x 2 + 1 = 17 (18)
23
24 Pressure-Flow Theory
l
Pressure-Flow Description # of
ia
Equation Eqns
nt
Separator
Volume Balance The volume balance relates the pressure in V-101 with 1
rv ll 2 se 9 e
equation the flows in streams 2, 3 and 5:
se e l u 00 fid
d (PV 100 )
= f (VV 100 , MV 100 , TV 100 , F2 , F3 , F5 )
dt
ly
re yw a 2 on
09 on
General Static head option disabled:
s e rn ril C
Pressure
3
relation PV 100 = P2
ig Ho in A nd PV 100 = P3
PV 100 = P5
l r t te ell a
ed 0
ht n te p
Al igh lia h ry
Valves
Resistance This is the general form of the valve resistance 3
yr Aff o S eta
F2 = kVLV 100 P2 P1
op ll/ t ri
C e d op
F4 = kVLV 101 P4 P3
r
r S ss l P
F8 = kVLV 102 P8 P7
General Flow Since valves are usually not specified with holdup: 3
e
el
relations
F2 = F1
u
w
F4 = F3
ey
I
F8 = F7
h
on
Mixer
H
P6 = P7
General Flow Since mixers do not have a holdup: 1
relation
F5 + F6 = F7
Total Number of Pressure-Flow Equations 13
24
Pressure-Flow Theory 25
l
balance equation to calculate the vessel pressure of the holdup
ia
which is a variable in the pressure-flow network.
nt
With 17 variables to solve for in the network and 13 available
rv ll 2 se 9 e
equations, there are 4 degrees of freedom. Therefore, 4 variables
se e l u 00 fid
need to be specified to define this system. This is the same as the
number of flowsheet boundary streams. The user is free to specify
ly
re yw a 2 on
pressure and/or flow in any stream in the model, as long as the
overall specifications are consistent. Typical specifications would be
09 on
material stream pressure specifications on streams 1, 4 and 8, and
s e rn ril C
a flow specification of stream 6. Specifications on internal streams
are usually not advised and can result in an inconsistent
ig Ho in A nd
specification and a singular pressure-flow network.
ed 0
specifications, the user must also ensure that the pressure values
ht n te p
Al igh lia h ry
specified are such that an appropriate pressure gradient exists to
drive the flow through the model from inlet to outlet. If there is no
yr Aff o S eta
Summary
r
r S ss l P
model.
ey
Fo
25
26 Pressure-Flow Theory
Dynamic Tools in
l
ia
UniSim Design
nt
rv ll 2 se 9 e
se e l u 00 fid
The Dynamics Assistant
ly
re yw a 2 on
09 on
The Dynamics Assistant provides a quick method for ensuring that
s e rn ril C
a correct set of pressure-flow specifications is used. The Dynamics
Assistant can be used when initially preparing a case for dynamics,
or when analyzing why a case modified in dynamics mode will not
ig Ho in A nd
solve.
l r t te ell a
ed 0
The Dynamics Assistant makes recommendations for specifying
ht n te p
your model in dynamics mode. The user does not have to follow all
Al igh lia h ry
Figure 5
h
on
H
Fo
26
Pressure-Flow Theory 27
Figure 6
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
devices (e.g. valves) necessary to calculate the flow rate from the
C e d op
would have valves on the terminal streams so that the flows can be
ey
Fo
27
28 Pressure-Flow Theory
Figure 7
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
It should be noted that, although the pressure-flow specifications
advised by the Dynamics Assistant are adequate for starting a case
ig Ho in A nd
in dynamics, detailed dynamic modeling can require more
advanced modifications.
l r t te ell a
ed 0
ht n te p
In addition to ensuring that the correct pressure-flow specifications
Al igh lia h ry
are used, the Dynamics Assistant can size all necessary equipment
that has not yet been sized.
yr Aff o S eta
vessel volumes
C e d op
valve Cv
r
exchangers)
dynamics start. It also ensures that the attached streams have the
I
changes for the case to be stable (or lined out) model once in
dynamics. It is the users responsibility to ensure that an adequate
control scheme is added to the case and that their model is
properly rated (i.e., existing vessels are adequately sized)
28
Pressure-Flow Theory 29
l
ia
Dynamics Assistant Clicking the Dynamics Assistant icon in the toolbar
nt
icon
Clicking the Dynamics Assistant button from the Equation
Summary View.
rv ll 2 se 9 e
se e l u 00 fid
The Equation Summary
ly
re yw a 2 on
09 on
View
s e rn ril C
The Equation Summary View is accessed from the Simulation
ig Ho in A nd
menu. (The Equation Summary View option only shows when
UniSim Design is in Dynamics mode.)
l r t te ell a
ed 0
ht n te p It provides information that can help the user find specification
Al igh lia h ry
information is provided.
r
If the Equation Summary View is opened from the menu bar, the
r S ss l P
Fo
29
30 Pressure-Flow Theory
Figure 8
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
op ll/ t ri
C e d op
parameters.
el
u
w
Fo
30
Pressure-Flow Theory 31
Dynamics Toolbar
l
ia
nt
In dynamics mode the Dynamics Toolbar becomes visible:
rv ll 2 se 9 e
Figure 9
se e l u 00 fid
ly
re yw a 2 on
09 on
s e rn ril C
The Dynamics Toolbar allows single-click control of the Integrator
functions in dynamics mode.
ig Ho in A nd
Icon on Dynamics
Toolbar
Description
l r t te ell a
ed 0
ht n te p Take one time step
Al igh lia h ry
factor)
Set desired real time factor
op ll/ t ri
number of steps)
The Integrator
w
ey
I
Fo
31
32 Pressure-Flow Theory
Figure 10
l
ia
nt
rv ll 2 se 9 e
When running as a
calculation engine
se e l u 00 fid
under UniSim
Operations the
ly
integrator is set to
re yw a 2 on
Manual mode. UniSim
09 on
Operations instructs
UniSim Design when to
s e rn ril C
take steps.
ig Ho in A nd
l r t te ell a
ed 0
ht n te p
Dynamics Toolbar
Al igh lia h ry
Integrator Auto/Manual
mode icon
yr Aff o S eta
Dynamics Toolbar
Integrator Take One
Step icon The General tab has three groups which contain the time
r
Fo
32
Pressure-Flow Theory 33
l
period. For example a real time factor of 100 means that time in
ia
the UniSim Design model is running 100 times faster than real
nt
time.
rv ll 2 se 9 e
Checking the Real time checkbox displays the
se e l u 00 fid
Desired Real Time Factor parameter. By setting a value here
the integrator can be made to run at whatever real time factor is
ly
re yw a 2 on
required (as long as it slower than the maximum achievable when
the Real time checkbox is unchecked.)
09 on
Dynamics Toolbar
Integrator Real time
s e rn ril C
factor icon The Display Interval option is visible only in the Automatic
Integrator mode and is the time interval at which UniSim Design
ig Ho in A nd
updates the user interface. The frequency of updating can have a
significant impact on the speed at which the simulation runs.
l r t te ell a
ed 0
While the Integrator is running the Units of the integration step
ht n te p
Al igh lia h ry
can be changed but a change of Step Size is not allowed.
yr Aff o S eta
Execution Rates
op ll/ t ri
Environment
It is strongly recommended that these numbers are not changed
Integrator).
ey
Options
H
Fo
33
H
on
34
34
ey
Fo w
I el
r S ss l P
h
C e d op u e r
Figure 11
op ll/ t ri
Pressure-Flow Theory
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
Pressure-Flow Theory 35
Option Description
Enable Static When checked UniSim Design includes the effect of
l
ia
head static head in the calculations. Default state is OFF.
contributions
nt
Enable implicit Vessels can optionally be solved using implicit static
static head head calculations for the pressure contributions
rv ll 2 se 9 e
calculations associated with the levels inside the vessel rather
se e l u 00 fid
than using explicit static head calculations. Default
state is OFF.
ly
re yw a 2 on
Enable heat When checked, heat loss model settings for unit
losses operations (such as vessel and tray sections) are
09 on
calculations as accounted for. If unchecked, all heat losses are zero
s e rn ril C
configured irrespective of individual heat loss settings. Default
state is ON.
Singularity When checked, UniSim Design warns of a possible
ig Ho in A nd
pressure flow singular solution matrix before starting integration.
analysis before
For larger cases it is recommended that this option be
running
l r t te ell a
unchecked to increase the overall start up speed. For
ed 0
cases where a singular solution is not considered to
ht n te p be a problem, this option can be disabled which
Al igh lia h ry
of liquid inside option for all the valves. See also: Module 6
Fo
35
36 Pressure-Flow Theory
Option Description
Truncate large If there are large upsets or sudden severe changes in
l
ia
volume the system, it can result in a volume balance error
integration during transients. This is where the volume of the
nt
errors material shown does not match the physical volume
that it occupies. This may occur due to the hybrid
rv ll 2 se 9 e
solution nature of UniSim Design Dynamics whereby
some variables and equations are solved in the
se e l u 00 fid
pressure flow solution but others are solved in the
sequential module pass. In physical reality almost all
ly
of your problem variables are inter-dependent. In
re yw a 2 on
essence the solution of one or more variables is
09 on
"torn" between the two solutions. In the case of
UniSim Design this variable is the material volume -
s e rn ril C
in some other dynamic simulators it may be pressure.
If the error is large (greater than 10%), you can
enable the Truncate Large Volume Error option
ig Ho in A nd
and UniSim Design truncates the error and restores
material inventory. However, truncating the error will
violate the overall material balance. With this option
l r t te ell a
ed 0
on or off, UniSim Design will always slowly correct the
ht n te p error naturally over time. Note that there will never
Al igh lia h ry
small time steps option improves stability of the system, but in some
cases can produce undesirable results. For example,
the phases in a vessel may no longer be in
e
el
state is ON.
I
Fo
36
Pressure-Flow Theory 37
Option Description
Reduce liquid This option is provided for testing purposes. In the
l
ia
efficiency for past there was a scheme to automatically reduce the
low vapour liquid 1 and liquid 2 recycle efficiencies when the
nt
holdups vapour holdup and/or sum of vapour inflow and
outflow were small. This was to overcome an
rv ll 2 se 9 e
inaccuracy in the dynamic flash solution when such a
small trace amount of vapour was present.
se e l u 00 fid
Symptoms of this problem were undesirable
oscillations in flow, pressure and holdup. However,
ly
re yw a 2 on
this scheme also, at times, introduced its own
oscillations. In summary, it is recommended to turn
09 on
this option off and, where necessary, manually adjust
s e rn ril C
the liquid recycle efficiencies to smaller values to
obtain stability. A steam drum is a typical application
which would benefit from this.
ig Ho in A nd
The efficiencies for any operations that support them
can always be accessed from the Dynamics tab,
Holdup page and then the Advanced button. In the
l r t te ell a
ed 0
case of the Tray Section, just double-click on the row
ht n te p showing a particular stage. Default state is OFF.
Al igh lia h ry
Guide (Dynamic Tools backward compatibility. When turned off, this can
chapter). produce different steady state results for different
residence times, integration steps and holdup
r
Fo
37
38 Pressure-Flow Theory
Other options
l
ia
nt
Trace Flow
rv ll 2 se 9 e
Any flows within the model that are less than the specified
se e l u 00 fid
Trace Flow are set to zero. This change is performed
ly
automatically after the pressure flow solver converges.
re yw a 2 on
09 on
This allows the simulation results to be more quickly reviewed and
s e rn ril C
understandable when the small trace flows are viewed as zero. This
may also stabilize some models when they are shut down.
ig Ho in A nd
Set the Trace Flow to zero to disable the feature.
l r t te ell a
ed 0
Flash Trace Flow
ht n te p
Al igh lia h ry
Fo
38