DISC Model Theory
DISC Model Theory
DISCHARGE SCENARIOS
DATE: December 2023
DISC contains models for calculating continuous and instantaneous discharge from a vessel or
short pipe. The four sub-models are (a) orifice model (from a vessel leak); (b) short-pipe model;
(c) instantaneous model for catastrophic rupture of a vessel; and (d) venting of vapour from a tank
during a filling operation. The short-pipe model also allows for the presence of a pump, control
valve or compressor.
Reference to part of this report which may lead to misinterpretation is not permissible.
No. Date Reason for Issue Prepared by Verified by Approved by
This publication or parts thereof may not be reproduced or transmitted in any form or by any means, including copying
or recording, without the prior written consent of DNV AS.
THEORY
ABSTRACT
This report describes the suite of instantaneous and continuous (initial rate) discharge scenarios (DISC) within the software packages
Phast and Safeti. The suite comprises four generalised models:
• Orifice model
• Short pipe model
• Instantaneous model
• Vapour vent model
These models describe the expansion from storage conditions to a vessel orifice or short pipe exit. The subsequent expansion to
atmospheric conditions is described in the ATEX model. For each of the models, the underlying theory is presented, and a bri ef indication
of how that theory is applied to obtain a solution. The individual scenarios for each of the models are described in detail.
This report also describes an extension of the short-pipe model to allow for the presence of a pump, control valve and compressor at the
upstream end of the pipe.
1 INTRODUCTION ......................................................................................................................................... 1
7 VERIFICATION ........................................................................................................................................... 6
APPENDICES ............................................................................................................................................................. 2
NOMENCLATURE .................................................................................................................................................... 29
REFERENCES .......................................................................................................................................................... 32
For each of these (apart from the vapour space model), a subsequent call is made to ATEX to model the final expansion to
ambient conditions (e.g. from the vessel orifice or pipe exit). The ATEX model theory document describes this final stage of
expansion for all models.
The DISC suite of discharge models is currently included in the Phast consequence modelling package. Note that DISC is
applicable only for the scenarios as indicated above and separate discharge models exist in Phast for other discharge
scenarios. This includes the model TVDI for time-varying releases from orifices and short pipes. It also includes the models
PIPEBREAK and GASPIPE for time-varying releases from long pipelines filled with superheated liquid or vapour.
The orifice and pipe models described above calculate accidental release rates based on the user supplying the stagnation
pressure and temperature in the vessel. An extension of these DISC models has been developed for application to pumps,
control valves and compressors. For these cases the user will specify a fixed flow rate together with stagnation conditions
during normal operation prior to any accident taking place.
This document describes the DISC theory - model input, model output, model theory, and method of solution. Chapter 2
includes the mathematical model for the orifice leak model, Chapter 3 describes the short pipe models, while the “Fixed flow
rate” scenarios are covered in Chapter 4. The theory of the instantaneous and vent from vapour space models are given in
Chapter 5 and Chapter 6, respectively. Chapter 7 discusses the verification of the DISC model, while the reader is referred to
the DISC validation manualz
1
for validation of DISC against experimental data. Chapter 8 summarises future developments.
- two of the following: storage pressure Pst*1; storage temperature Tst (K); mass liquid fraction st (-)
- inventory Mst (kg); this is the total chemical mass (vapour + liquid) stored in the vessel
- scenario flag (used for 2-phase releases only: preferred liquid leak, preferred vapour leak, 2-phase leak)
• (case of liquid storage) sum (H; m) of liquid head (vertical height between the orifice and the top of the liquid) and
pump head2.
• flags
• (case of > 0) fixed duration (s). Allows a fixed-duration run where orifice diameter is scaled to match required mass
release rate
1
For liquids, the specified storage pressure corresponds to the pressure at the top of the liquid.
2
The leak scenario is sometimes used to simulate small leaks from pipes with an upstream pump.
Initial
conditions Release rate (Q)
(Pst ,Tst , st)
Vena contracta
(CD) Atmosphere
(Pa ,Ta)
For 2-phase storage, the material can be released as either liquid (orifice below the liquid level) vapour (orifice above
liquid level), or 2-phase (‘champagne effect’ where the vessel is homogenous 2-phase). This is indicated by an input flag.
For liquids, or 2-phase storage to be released as liquid, any liquid head is added to the storage pressure. In these
circumstances the initial pre-release state is:
Pst Pst* L Pst , Tst gH , Tst , st (1)
The liquid density ρL is taken to be that at the top of the liquid3. The following equations are used to determine the orifice
conditions. By conservation of energy assuming initially the material is stagnant:
(2)
uo2
hPst , Tst , st hPo , To , o
2
By conservation of entropy:
Note that during this isentropic expansion to the orifice, materials which are initially pure vapour or liquid can be forced to
remain so by setting the model input ‘Phase change upstream of orifice’. The default setting is ‘Disallow liquid phase
change’, also referred to as the ‘metastable liquid’ approach. The assumption is that there is insufficient time for changes
in phase before the material reaches the orifice4.
3
This will underestimate the liquid density ρL but the difference will be negligible for common ranges of ∆H
4
For large degrees of superheat, this may not be the case as flashing can be observed inside the orifice. However as part of the droplet modelling JIP the metastable
liquid assumption was shown to provide accurate results for a relative large range of superheats; see Droplet Size validation Document (Phast Technical
Documentation) for details.
Here Pc is the choke pressure at the orifice and is defined as the pressure at which the mass flux, Go , through the orifice
is maximised5:
uo (5)
Go
vo
o (1 o ) (6)
vo
Lo Vo
Q * Ao Go (7)
This represents an idealised flow rate, but the frictional effect of convergent flow at the orifice (as represented by the vena
contracta) effectively reduces this. The convention is to achieve this by reducing orifice cross-sectional area (Av < Ao).
The ratio of this reduction is the discharge coefficient, CD.
Av C D Ao (8)
Q Av Go
The method used to calculate the discharge coefficient CD is included in Appendix B, with values in the range 0.6 to 1.
The former value is always used for pure liquids at the orifice.
M st (9)
t rel
Q
For fixed duration runs (i.e. where the user input fixed duration > 0) orifice diameter is allowed to vary such that the release
rate is sufficient to discharge the inventory in the specified time. As orifice state and mass flux are independent of orifice
diameter7, we may calculate Go and CD as described above, then use Equation ( 9 ) to determine release rate Q, and
Equation ( 8 ) to determine vena contracta diameter.
5
VERIFY. To compare with analytical solution (ideal gases), e.g. PBRK.
6
IMPROVE. Note that for all vapour discharges, the inventory and duration are likely to be overestimates, and this applies for all DISC models. In addition, by
releasing the entire inventory as a vapour stream under MC model we effectively release material of a different composition. Ultimately we need to know liquid
fraction to specify storage (VI2994, 2991).
7
IMPROVE. This is not the case in case of the Phase III JIP droplet size correlation (non-default in Phast), and it will then become necessary to iterate on ATEX.
1. For a given Po, temperature and liquid fraction are determined from the isentropic-expansion Equation ( 3 ), as
described in Appendix A.1.
4. The orifice pressure is iterated until the mass flux is maximised, and P o set according to Equation ( 4 ). Normally Po
= Pa for liquids8,9.
uo2 2
Pst Pa ( 10 )
Lst
We determine orifice state as for the standard model, except we allow no temperature drop (Po = Pa ; o = 1 ; To = Tst).
Thus we are assuming negligible pressure effects on liquid density. Steps 2, 3 and 4 in the above algorithm become:
8
IMPROVE. In fact the mass flux at Po = Pa and Po = Pa + 1 × 104 N/m2 are calculated, and the one that yields the greatest flux is used. No attempt is made to
converge on a maximum.
9
IMPROVE. This assumption may not be tenable for flashing liquids with bubble point pressures (Pb), along a given isentrope, higher than Pa. These liquids will
“choke” at a pressure (Pc) corresponding to the pressure at which the discharge rate is maximum (see the discussion on “choked flow” in section 3.2.2). A good
approximation to Pc is the bubble point pressure along the isentrope (i.e. Pb (sst)). Note: for liquids Pb(sst) Pb(Tst).
• vessel data:
- two of storage pressure Pst* (Pa) at the top of the liquid; storage temperature T st (K), or mass liquid fraction st
(-)
- inventory Mst (kg). This input is the inventory inside the upstream vessel. The model also accounts for the fluid
mass in the pipe, and the total system inventory is thus the sum of the input vessel inventory and the calculated
pipe mass.
- liquid head HL (m)
• pipe data:
- frequency (/m) of three valve types: excess flow (f 1), non-return (f2), and shut-off (f3) valves
- number of velocity head losses K1 , K2 , K3 for the three valve types
- frequency (/m) of pipe couplings (fcoup), junctions (fjunc) and bends (fbend)
• ambient data
- pressure Pa
- temperature Ta
- relative humidity rh
• scenario data:
- pressure, Pe (Pa)
- temperature Te (K)
- mass liquid fraction (e)
Vessel Atmospheric
(Pst* ,Tst, st) expansion (ATEX)
Expansion
along pipe
Constricted
orifice
Initial
(Pst ,Tst, st) Ao Ap Release rate (Q)
Atmosphere
(Pa ,Ta)
Pipe
Pipe exit
(Pe ,Te , e)
1. At the pipe entrance, the material state is the same as in the bulk vessel (i.e. Pst , Tst , st)10, with Pst updated to
account for liquid head.
2. Mass flow is conserved along the pipe (i.e. velocity at the pipe entrance > 0)
3. Energy is conserved along the pipe, with no heat transfer through the pipe wall.
4. Momentum is conserved along the pipe
5. The cross-sectional area of the pipe is constant along the pipe.
6. Flow lines are parallel at the pipe exit and thus CD = 1.
3.2.1 Scenarios
As with the orifice model, the first stage is to translate the user-specified storage conditions into the initial pre-release
conditions at the pipe entrance, according to the model scenario. There are four basic scenarios covered by the pipe
model:
Line rupture
Discharge from a vessel through a horizontal short pipe with a full-bore rupture. For 2-phase storage, the material can be
released from the vessel as either liquid (pipe entrance below the liquid level) vapour (pipe entrance above liquid level) ,
or 2-phase (‘champagne effect’ where the vessel is homogenous 2-phase). This is indicated by an input flag. The orifice
at the entrance to the pipe is assumed to be the diameter of the pipe (Ao = Ap) There may be a pump at the pipe entrance,
with a specified pump head ∆HP.
Relief valve
10
JUSTIFY. This is the only assumption by which the model makes sense, though its validity is questionable. How can there have been an increase in velocity (see
assumption 2) between the stagnant vessel interior and the pipe entrance without a pressure drop? To avoid this would require consideration of pipe entrance
(orifice) pressure, Po , and an additional expansion from Pst to Po.
Released material
Relief valve
The relief valve is modelled as a short tailpipe after an constricted orifice. Overpressuring results in a vapour discharge (left), whereas
liquid swelling (right) results in a liquid or two-phase discharge.
Disk rupture
This scenario (Figure 4) models the release through a burst rupture disk and along a short tailpipe. The release can be
caused either by overpressuring of a large vapour space vessel (storage disk rupture) or liquid swelling or over-filling of a
small vapour space vessel (reactor disk rupture). Discharge occurs through the disk seat (assumed not to be constricting,
Ao = Ap). For 2-phase storage, the material can be released from the vessel as vapour (overpressuring of a large vapour
space vessel) or as a homogeneous 2-phase12 Liquid vessels cannot use this scenario.
11
IMPROVE. It would be possible to have logic determining which phase was released based on the liquid fraction (e.g. > 0.95 was by definition a small vapour
space and released 2-phase). However, this would require exposure of liquid or volume fraction in the interface.
12
If the storage pressure is less than a specified threshold value (Pst < Pa + Pcrit) this will be modelled as a vapour release.
The basic conservation equations (mass, energy, momentum) for a differential length of pipe, dl, are:
dG ( 11 )
0
dl
dh du ( 12 )
0 u
dl dl
4 o ( 13 )
dP G 2 dv dl
D
where o is the shear stress at the pipe wall opposing the flow; G is the mass flux through the pipe; v is the specific volume;
and D the diameter of the pipe. Thus the flow is adiabatic.
Analysis
13
IMPROVE. For full bore line ruptures, pump head should probably be disallowed (VI2466).
fG 2 v ( 15 )
dP G 2 dv 2 dl
D
dP dv 2f ( 16 )
dF 2
dl
G v v D
We now integrate along the pipe from the exit to the initial pressure and derive a dimensionless expression for the
frictional resistance for the whole pipe length14:
Pst ( 17 )
v
0
4 2 dP
F friction fdl 2
2 ln e
DL G v vst
p Pe
The integral ∫fdl is necessary, as f is not constant along the pipe due to the presence of fittings, valves, etc. Note that this
integral is not computed, but its value Ffriction is determined empirically from model inputs (see below).
Evaluation of the right hand side of Equation ( 17 ) given G requires that we know v as a function of P. The energy at the
entrance to the pipe is given by:
Ei hst
Gv st 2 ( 18 )
Where Ei is the initial energy, and hst and vst the known initial specific enthalpy and specific volume at stagnation conditions
(Pst,Tst,ηst). We now determine the state at any given Pe by applying conservation of energy, by doing an isoenergetic
expansion to Pe (h+ ½u2 = constant) according to the method described in Appendix A.2. From this ve can be determined
using standard equation of state methods.
Choked flow
At the pipe exit the flow may be choked such that Pe = Pc > Pa with Pc as the choke pressure. The choke condition is
best understood by rewriting Equation ( 15 ) using du = Gdv, and G = u/v :
( 19 )
dP 2 dv fG 2 v
1 G 2
dl dP D
As dv/dP -1/G2 , then dP/dl - . It is not possible to go beyond this point, and therefore if this condition is satisfied
it must be at the pipe exit. The condition for the choke is therefore
dv 1 ( 20 )
2
dP G
From Equation ( 16 ) we can therefore say that at the choke dF/dP = 0. It is this condition used in the model to
determine the choke pressure.
14
Note this includes an additional × 2 factor, corresponding with the PHAST 6.4 model (has 4fL/D term, etc). This formulation effectively decreases the importance of
frictional terms not subject to this multiplier – valves, etc (see below).
The contribution of the pipe walls is based on the Fanning friction coefficient, f, for a straight pipe of roughness z 015 from
Equation 3.11 in Coulson and Richardson (1977)2:
( 22 )
Fwall
4 fL
1 DLe f bend
D
2 ( 23 )
f
3.2 2.5 ln z 0 D
2
Note the first part of the right-hand expression is the equivalent to the integral of Equation ( 17 ) for a uniform length L of
straight pipe. The second is a correction to account for the presence of pipe bends, which are each assumed to add a
number, Le , of pipe diameters (fixed at Le = 1016) to the effective pipe length. f bend is the frequency of (assumed 90o)
bends along the pipe. Thus a 10m long, 0.2m diameter pipe with two bends will have an effective length of 14m 17.
3 ( 24 )
Fvalve N i K i
i 1
Ni is the number of valves of type i, and Ki is the number of velocity heads lost for one valve of type i. Currently 3 types
of valves can be specified, conventionally used in PHAST to refer to excess flow (i=1), non-return (i=2) and shut-off (i=3)
valves.
The contribution, Ffit , of fittings is calculated as in Equation ( 24 ), except that the K values are hard-coded18 in the
model (Kcoup = 0.04, Kjunc = 1.0):
The number of velocity heads lost through entrance to the pipe is taken from Vennard and Street (1982) 3, page 536:
1 ( 26 )
Fentry 1
kCv 2
Cv is the 'coefficient of velocity', and is determined as per the method described later for discharge coefficient in Appendix
B. This approach differs from standard literature but is justified in Appendix E. The factor k is used to model the increase
in frictional losses on entering the pipe through the constricted orifice of a relief valve. The factor k19 is defined as:
A
( 27 )
k min Rneq o ,1
Ap
where Ao and Ap are the cross sectional areas of the relief valve orifice and pipe respectively. The smaller this ratio of
areas (i.e. the more constricting the orifice), the smaller the discharge coefficient and therefore the greater the frictional
losses. Rneq is a safety factor to allow for possible under-estimation of the constricting orifice (used to allow for over-
drilling in the relief valve scenario). For all apart from the relief valve scenario, orifice and pipe area are equal, and thus
k = 1.
15
DOC. See GASPIPE/PIPEBREAK theory manual for some discussion on surface roughness (range of values) and Fanning Friction Factor. See also book by
Fannelop and other references.
16
This value is consistent with Perry and Green (1984), Fig. 5-45 (smooth bend, radius of curvature / pipe diameter ~ 3).
17
Tabulated values are available, e.g. Coulson and Richardson (1977).
18
Values from page 5-38 of Perry and Green (1984).
19
JUSTIFY. This is of unknown origin.
2. Establish maximum flux, Gmax , through the pipe according to the orifice model20,21
4. Iterate to find G (where Gmin ≤ G ≤ Gmax) such that the empirical and thermodynamically calculated friction
along the pipe are equal22,23
a. Determine energy of the fluid at entrance to pipe (from initial state and G)
b. Solve Equation ( 17 ) for pipe friction
5. Perform isoenergetic flash between initial and exit pressures, and determine exit velocity, release rate and
release duration.
The core of the pipe model is clearly the solution of Equation ( 17 ) for a given flux G. Let I be the integral in Equation
( 17 ) required to determine pipe friction:
dP ( 28 )
I
v
dI
dP
The differential equation dI/dP is solved by the standard Kutta-Merson numerical method, where ρ(P) is obtained by an
isoenergetic expansion from Pi to P. Each step of the solver yields an intermediate pressure P n (Pe ≤ Pn < Pi ; n = 1, 2…)
and solution In, and from these the total friction along the pipe Fn (between Pi and Pn) can be determined.
The condition for the choke pressure is that dF/dP = 0. Therefore once we reach n such that Fn < Fn-1 we are past the
choke. In this case we can approximate the curve of F = f(P) close to the choke by fitting a quadratic to the three points
Fn , Fn-1 and Fn-2; its maximum will therefore represent the choke pressure Pc.24
The algorithm can sometimes (especially for condensing gas releases) take overlarge steps along the pipe, resulting in
too low a choke pressure and too high (i.e. supersonic) exit velocity. A warning is raised if exit velocity exceeds by 10%
sonic velocity for an ideal gas, c:
RT ( 29 )
c
Mw
20
A pipe model parameter controls whether the model will cap the flow rate using this orifice calculation, and whether flashing is allowed or suppressed for the orifice
model. The pipe model can run in uncapped mode where the orifice flow rate is ignored.
21
Note that only the mass flux is used from this calculation: other orifice outputs are ignored apart from in determination of the coefficient of velocity.
22
JUSTIFY If G > Gmax then Pc was set using some questionable logic (VI5926). We now use Pc at Gmax.
23
In SAFETI 6.4, G was determined by interpolation once the value had been bracketed, but this was done wrongly leading to an underestimation in flux (VI3023)
24
This could be evaluated more accurately by converging on the solution using a root finder. However, as the integral has to be calculated anyway, it is much more
computationally efficient to use this information to determine the choke rather than nesting inside another iteration loop.
4.1 Introduction
This chapter deals with situations where the analyst wants to prescribe a fixed flow rate as a model input rather than the
flow rate being a model-calculated value as in the previous chapters. The situation of a fixed flow rate known a priori may
arise when certain flow control devices are in operation such as pumps, compressors or control valves. The analyst may
also want to prescribe the accidental flow rate upfront to study the impact of a release of a given size.
A scenario with a prescribed “accidental flow rate” is described in Section 4.2 for orifice leaks and line rupture scenarios.
Here the stagnation pressure or liquid fraction is calculated so as to produce the requested flow rate. Section 4.3
introduces both vapour and liquid short-pipe scenarios with a “control valve” upstream.
• The presence of a pump (liquid storage) at the upstream end of a pipe for liquid releases with a fixed flow rate
prescribed25.
• A vapour production system (e.g. for control flow system; vapour storage) with a fixed flow rate prescribed.
Alternatively the “control valve system” can be applied with the stagnation pressure P st set as the compressor
discharge pressure.
The relevant modelling is described here, and key points to note include:
• The prescribed accidental flow rate Qfixed is user input instead of the stagnation pressure Pst. The stagnation
temperature Tst must also be input. Otherwise input data are as for the normal orifice and short-pipe scenarios.
• These calculations can currently only be carried out in pseudo-component (PC) mode
The following will be carried out by the model when prescribing an accidental flow rate:
a) For cases with Tst < Tcritical (stagnation temperature less than critical temperature):
• The program first evaluates the flow rate Q(Psat(Tst)) based on the saturated vapour pressure presuming
both pure vapour initially in the vessel [Qv,sat] and pure liquid initially in the vessel [QL,sat], with Qv,sat<QL,sat
• Cases26:
▪ Qfixed > QL,sat: the stagnation state will be liquid. The program will iterate over the stagnation
pressure Pst [Psat(Tst) < Pst < Pmax] at the height of the hole to determine the value for which Q(Pst)
= Qfixed. Here Pmax is an upper limit27 on the pressure.
▪ Qfixed < Qv,sat: the stagnation state will be vapour. The program will iterate over the stagnation
pressure Pst [Pa < Pst < Psat(Tst)] to determine the value for which Q(Pst) = Qfixed
▪ Qv,sat < Qfixed < QL,sat: the stagnation pressure equals the saturated vapour pressure Psat(Tst) and
the stagnation state is two-phase. In this case homogeneously mixed two-phase fluid will be
25
An alternative approach to modelling a pump at the upstream end is described in Error! Reference source not found..
26
There are added DISC output to indicate data associated with the specified fixed flow rate, i.e. vapour, liquid or two-phase stagnation state, and the associated
stagnation pressure at the height of the hole. In the Phast product implementation, two-phase stagnation states are not allowed, i.e. either vapour (compressor)
or liquid (pump) stagnation states.
27
A maximum pressure of 800 bar is imposed; it is considered unlikely that the pressure will be higher than 800 bar when there is a pump operating. Ideally, however,
the upper pressure limit should be the pressure at which the liquid turns solid, but this pressure is not available from the Phast property system.
Note that the control valve scenario is not meant to model actual controller action or the dynamic response of a real system
to the closing or opening of a control valve following a disturbance event, i.e. pipe rupture. Instead, the scenario is intended
to apply an appropriate constriction so as to satisfy certain user-defined system properties like upstream and downstream
pressure, fixed flow rate, and the pipe roughness.
- All data as usual for DISC including upstream pressure Pst, temperature Tst and pipe length xB between vessel
and rupture location.
- Additional input:
o flow controller set-point flow rate Qfixed
o (optional input) initial control valve constriction diameter Dconstriction; here the control valve can initially be
fully open (Dconstriction=D) or partially closed (Dconstriction<D)
o pipe roughness28 zo
It can be shown that the final steady-state conditions do not depend on the prescribed value of Dconstriction prior to the
rupture. However the initial state calculations are carried out to ensure no phase changes occur along the pipe, i.e.
vapour remains vapour or liquid remains liquid.
- For the initial state (prior to the breach) either liquid flow must apply across the entire pipe (no flashing 29), or
vapour flow applies across the entire pipe. Further details are given below for the vapour and liquid cases.
- If pipe roughness z0 is specified and the calculated P(xB) < Pa, then issue a model error and terminate the
calculations as the specified upstream pressure Pst is too low to maintain the specified flow rate Q fixed.
- As part of future development, it may be possible to specify PB instead of the pipe roughness. We must then
have PA > PB > Pa, and the implied roughness zo from the calculated Fanning friction coefficient f is output and to
be checked by the user whether reasonable.
28
Future development may allow specification of downstream pressure PB instead of the pipe roughness
29
In reality it is possible for two-phase flow to exist along the length of the process line, but this would not be typically expected for a transport pipeline under typical
operating conditions.
- Set uniform pipe velocity along pipe from mass conservation: u = Q fixed/(Ap ρLst)
- Analytically solve momentum equation ( 13 ):
f Lst u 2 ( 31 )
-
P( x) Pst 2 x
D
Here x is the distance along the pipe, and D the internal pipe diameter.
- In case the pipe roughness z0 is specified, the Fanning friction coefficient f is set from z0 using Equation
( 23 ). Future development may allow specification of PB, and then f (and hence pipe roughness z0) can be
derived from Equation ( 31 ) as follows
D Pst PB ( 32 )
- f .
2 Lst u 2 xB
The thus calculated roughness needs to be checked by the user whether it is reasonable. If the calculated P(x B)
< Pa, then a model error is issued and the calculations terminated as the specified upstream pressure is too low
to maintain the specified flow rate.
( 33 )
f R Ts t A uA
2
-
P( x ) PA2 4 x .
DM ˆ
Here R is the universal gas constant and M̂ is the molecular weight of the gas, whereas the density ρA =
ρV(Pst,Tst) and the velocity at the upstream end of the pipe is given by uA = Qfixed/(Ap ρA)
In case the pipe roughness z0 is specified, the Fanning friction coefficient f is set from z0 using Equation ( 23 ).
In case PB is specified, f (and hence pipe roughness z0) can be derived from Equation ( 33 ) as follows:
f
Mˆ D Pst2 PB2
.
( 34 )
2 2
4 RT Au A xB
- From valve constriction area to full pipe area immediately downstream of valve ( Pst Pvalve
final 33
)
- From full pipe area immediately downstream of valve to the pipe downstream end B ( Pvalve
final
PB )
30
If P(xB) < Psat, then a model error will be issued and calculations terminated.
31
Default EOS behaviour for evaluation of liquid density in DISC and TVDI is saturated liquid density anyway, i.e. pressure-independent liquid density.
32
Non-ideal gas effects as incorporated in the Gaspipe mode are currently not considered since the final steady state is not affected by the initial steady state.
final
33
Note that Pvalve includes any pressure-recovery effects that may occur downstream of the constriction.
- The initial control valve constriction diameter Dconstriction and normal operating flow rate Qfixed are prescribed. An
error is given when the “accidental” throughput (from the standard DISC orifice scenario based on orifice diameter
= Dconstriction) is less than Qfixed. This is a necessary but not sufficient requirement due to frictional losses along
the pipe.
Isothermal flow conditions apply during normal operating conditions, so Tst Tvalve ; no phase change occurs
final
-
(vapour remains vapour, liquid remains liquid29).
- Assume zero initial velocity at the constriction area: ust=0.
final final
- Impose conservation of mass and momentum to determine the pressure Pvalve [PB< Pvalve < Pst if PB specified,
final
and Pa< Pvalve < Pst if roughness zo specified], liquid fraction valve
final final .
and velocity u valve
- Note that the fundamental equations for mass and momentum conservation along the pipe are given in Section
3.2.2 by Equation ( 11 ) and Equation ( 13 ), respectively.
- The mass flow rate is constant along the pipe, and at the point where the control valve expansion completes,
mass conservation may be expressed as
Q fixed ( Pvalve
final
, Tst ;valve
final final
) uvalve Ap . ( 35 )
-
- For the short pipe scenario described in Section 3.2.2, the momentum equation ( 13 ) is further manipulated and
integrated along the pipe to the pipe exit to yield Equation ( 17 ). Equivalent considerations are made here,
though integrating to the end of the control valve expansion zone rather than the pipe exit, yielding34
2 P ( 36 )
Ap (Ps t.Ts t;s t)
P, Ts t;s t dP 2 ln
st
Ffriction Fentry 2
final final
.
Qfixed final
Pvalve (Pvalve , Ts t;valve )
The only friction considered here is due to the initial control valve constriction. This initial constriction may be
seen as equivalent to the constriction considered for the relief valve scenario described in Section 3. On this
basis we therefore adopt the same correlation for the evaluation of the associated friction35 – see Equation ( 25 )
and Equation ( 26 ).
2 ( 37 )
final Fentry Qfixed
Pvalve Ps t .
2 Ap2 s t
34
In the derivation of Equation ( 36 ) there is an assumption of constant cross-sectional fluid flow area Ap. In reality however, the cross-section flow area varies in the
integration from the constricted valve opening to the fully expanded pipe flow.
35
There are questions marks around how the pipe entry friction term is evaluated in the DISC model for relief valve scenarios – see Appendix E.
36
By default liquid density in Phast is evaluated as the saturated liquid density. This means that the liquid density is not pressure dependent but only temperature
dependent, and so the liquid density remains constant in the isothermal expansion from pipe upstream to immediately downstream of the control valve.
- final f Ls t u 2 ( 38 )
P(x ) Pvalve 2 x
D
and
-
f
final
D Pvalve PB ( 39 )
2 Ls t u 2 x B
( 40 )
f R Ts t A u A
P
2
- final 2
P( x ) valve
4 x.
DM ˆ
and
M
valve B
ˆD P final P 2
2
.
( 41 )
f
2 2
4RT Au A x B
37
Assume negligible distance between upstream end of pipe to the “final valve” state.
Pipe entry
(Pst, Tst, st, Aconstriction) Ap Flow rate (Qfixed)
Pipe
Expansion
Vessel along pipe
(Pst*, Tst, st)
Atmospheric
Pipe entry expansion (ATEX)
(Pst, Tst, st, Aconstriction) Ap Accidental flow (Qfixed)
Atmosphere
Pipe roughness (z0) (Pa ,Ta)
Pipe
From valve constriction area to full pipe area immediately downstream of valve ( Pst Pvalve )
final
1.
2. From full pipe area immediately downstream of valve to the pipe rupture plane ( Pvalve
final
Pe )
3. From the pipe exit to atmospheric pressure ( Pe Pa )
The final stage 3 is a standard application of the atmospheric expansion model ATEX, so the focus here will be on the
first two stages. The key idea is to evaluate data immediately downstream of the valve by using a root solver to find
final such that the accidental flow rate equals the prescribed fixed flow rate: G( final ) A = Q
Pvalve Pvalve p fixed, where Ap is the pipe
cross-section area and G the flux (kg/s/m2) . The adopted solution method to achieve this consists of the following steps:
final
1. Given stagnation conditions (Pst, Tst) and guessing Pvalve , determine conditions immediately downstream of the
final , liquid fraction final and velocity final ] by imposing conservation of energy and
valve [temperature Tvalve valve uvalve
conservation of mass (not momentum):
u
valve 2 ( 42 )
hPst , Tst ,st h , T final , final
valve valve valve
Pfinal
final
2
Qfixed Ap P valve
final
valve valve
, Tfinal , final valve
ufinal ( 43 )
- In case the conditions immediately downstream of the valve correspond to either pure vapour or pure liquid, the
final and
above two equations are solved for Tvalve final . In case these conditions correspond to two-phase
uvalve
2. Solve pipeline equations (assuming iso-energetic thermodynamic trajectory) to determine the mass flow-rate
(GAp) satisfying the system of equations described in Section 3.3 (basically carry out an accidental short pipe
final ).
calculation but without the pipe entry friction Fentry and with positive velocity uvalve
Note that the control valve constriction diameter after the full-bore rupture is not explicitly calculated.
The storage pressure, storage liquid fraction and pipe exit pressure are plotted in Figure 6 as a function of the fixed flow
rate. We note that:
• Flow rates up to around 110 kg/s are achieved with storage pressures giving a gaseous fluid state; this regime
corresponds to compressor action.
• Flow rates from around 110 kg/s up to around 165 kg/s are achieved with saturated storage pressure and liquid
fractions increasing from 0 to 1. In the product implementation two-phase storage is disallowed and an error
would therefore be produced for flow rate inputs in this range.
• Flow rates above 165 kg/s are achieved with storage pressures giving a liquid fluid state; this regime corresponds
to pump action.
38
MDE_Test_Disc_ACC-ethane_vary_fixedRate.xls
0.9
7.10E+06
0.8
6.10E+06
0.7
5.10E+06
0.6
4.10E+06 0.5
0.4
3.10E+06
0.3
2.10E+06
0.2
1.01E+05 0
0 50 100 150 200 250 300 350 400
Fixed flow rate (kg/s)
Figure 6: Pump and compressor action for varying fixed flow rates.
• Figure 7 and Figure 8 show that the maximum fixed flow rate happens when there is no pressure drop across
the control valve.
• Figure 7 shows that there is a transition from unchoked to choked flow when the fixed rate exceeds around 8
kg/s.
• Figure 8 shows results for the propane pipe. The storage fluid phase and the phase throughout the pipe during
normal flow is liquid for all fixed flow rates. However, after rupture the situation changes:
o The liquid flashes across the control valve up until about 100 kg/s
o The liquid flashes in the pipe up until about 250 kg/s
o For flow rates higher than around 250 kg/s the fluid remains liquid throughout the pipe after rupture
• There is an upper limit on what fixed flow rate would give a successful model run. Specifying a too high flow rate
will give one of the following two model errors:
39
MDE_Test_Disc_CV-ethane_vary_fixedRate.xls
40
MDE_Test_Disc_CV-propane_vary_fixedRate.xls
"Pressure after rupture downstream of control valve, %1%Pressure%, higher than pipe inlet pressure -
too high fixed flow rate specified".
This means that the specified flow rate cannot be maintained after the rupture as there cannot be a
pressure increase from stagnation to after the control valve.
"Phase change along pipe not allowed during normal flow for control valve scenario"
This means that the required pressure drop to satisfy the specified fixed flow rate is so high that the
pressure at the pipe end is not high enough to maintain liquid phase.
Fixed flow rate for ethane vapour pipe with control valve
1000000 500
Control valve pressure normal operation (Pa)
Control valve pressure after rupture (Pa)
900000 450
Pipe exit pressure after rupture (Pa)
Control valve velocity normal operation (m/s)
800000 400
Control valve velocity after rupture (m/s)
Pipe exit velocity after rupture (m/s)
700000 350
Final velocity after rupture (m/s)
600000 300
Velocity (m/s)
Pressure (Pa)
500000 250
400000 200
300000 150
200000 100
100000 50
0 0
0 5 10 15 20 25
Fixed flow rate (kg/s)
Figure 7: Effect of increasing fixed flow rate for an ethane vapour pipeline with control valve.
3101325
Velocity (m/s)
Pressure (Pa)
9.00E+01
2601325
7.00E+01
2101325
5.00E+01
1601325
3.00E+01
1101325
601325 1.00E+01
101325 -1.00E+01
0 100 200 300 400 500
Fixed flow rate (kg/s)
Figure 8: Effect of increasing fixed flow rate for a propane liquid pipeline with control valve.
Vessel Atmosphere
(Pst ,Tst, Lst) (Pa ,Ta)
Initial hL
(Pi ,Ti, Li)
The only aspect of the model not described by atmospheric expansion is the determination of the initial state from the
user-specified storage state. For 2-phase storage the liquid phase is released, and liquid head is added for all but pure
vapour vesselsxli:
H L
( 44 )
Pi Pst L Pst , Tst g
2
Ti Tst
xli
IMPROVED. In SAFETI liquid head cannot be added for pressurised releases, but in the model this is now possible.
This model cannot be used with the JIP droplet correlation which is based on continuous releases from orifices.
ambient air
(Pa ,Ta) vapour component (Qc)
+ air (Qa)
vapour mixture of
saturated component + air
(Pa ,Tst)
Rising liquid
level
liquid
pumped component
liquid Vflow (Pa ,Tst)
component
xlii
CORRECTED. The air in SAFETI 6.4 and earlier releases was assumed to be at ambient rather than storage temperature (VI6134).
xliii
JUSTIFY. Theory later on is only correct if M st is the initial mass of component vapour (excluding component liquid; VI2991). A more useful input would be the initial
volume of the mixture vapour Vstvap. The release duration would then simply be t rel = Vst vap/Vflow (ignoring any volume arising from liquid evaporation).
xliv
CHECK. Ambient data should ideally correspond to values at the top of the vessel. They are currently simplistically set equal to the ambient data at the reference
height. Currently, relative humidity is not used by the model (VI3162).
The lower part of the vessel is filled with component liquid, while the upper part of the vessel is assumed to be a vapour
mixture consisting of saturated component vapour and air. The following further assumptions are adopted:
- The vessel is unpressurised with the pressure of the vapour mixture (and the top of the liquid) equal to the
atmospheric pressure Pa.
- The vapour mixture consists of saturated component vapour and air, where the humidity of the air is assumed
to be equal to that of the ambient air outside the vessel.
- Prior to the filling operation commencing, the vessel is open to the atmosphere and the temperature inside the
vessel is Tst. During the filling operation, the storage temperature Tst is assumed to remain constantxlv.
- During the filling operation, the liquid inflow volumetric rate is constant. The vapour outflow volumetric rate is
assumed to be equal to the liquid inflow volumetric rate, effectively ignoring the change in the total volume for
the vapour mixture because of evaporation of the liquid component.
Release composition
The vapour mixture consists of saturated component vapour and humid air, and therefore the volume fractions y cf, yaf
and mass fractions cf, af of component and humid air in the released vapour mixture are as follows
Pv c (Tst ) ( 45 )
yc f , ya f 1 yc f
Pa
yc f M w c ya f M w a ( 46 )
c f , a f 1 c f
yc M w y a M w
f c f a
yc M w ya M w
f c f a
where Pvc(Tst) is the saturated vapour pressure at the vessel temperature Tst, Mwc the molecular weight of the
component and Mwa the molecular weight of humid air
The vapour mixture outflow volumetric rate is assumed to be equal to the liquid component inflow volumetric rate V flow.
Thus according to Equation ( 45 ) the component vapour and air mass discharge rates (m 3/s) are given by
( 47 )
yc V flow , Va ya V flow
out f out f
Vc
The total mass discharge from the vessel is the sum of component vapour and air mass discharge rates (kg/s):
Q Qc Qa ( 48 )
Here the component, air mass discharge rates Qc,Qa are set as product of the vapour, air volumetric flow rates and the
component, air vapour densitiesxlvi,xlvii:
c ( 49 )
v st Vin v Pa , Tst
P (T )
Qc Vc v Pv (Tst ), Tst
out c c c
Pa
xlv
JUSTIFY. However the UDM receives treats this a separate streams of material and air, the former at T st , the latter at Ta. Thus the air temperature will typically
change between discharge and dispersion.
xlvi
CORRECTED. Various problems with the vent from vapour space component and air release rates have been applied in SAFETI 6.5 (VI7519, 6851, 2988).
xlvii
Dry rather than humid air is used for density calculations (VI3162).
Multi-component modelling
Where the improved multi-component modelling is used, the composition of the vapour phase in the tank is initially
unknown. Raoult’s Law is used to determine the vapour phase partial pressures and thus mole fractions (y i) of
components in the mixture:
Pvi Tst ( 51 )
yi xi
Pa
Where xi is the mole fraction of component i in the bulk mixture (assumed to also be the composition of the liquid), and
the mole fraction of air ya = 1 - yi.
In a manner analogous to pseudo-component logic, the mass flow rates Qci for component i (including air):
The velocity of the release is set from the ratio of the total volumetric discharge rate (=V flow) and the exit area A:
V flow ( 53 )
uf
A
The release duration is:
M st ( 54 )
t rel
Qc
Since the vessel is unpressurised (exit pressure = ambient pressure), no atmospheric expansion takes place upon release
and consequently ATEX is not used.
Method of Solution
1.1. For the old pseudo-component modelling, this is explicitly calculated from Equations ( 49 ) and ( 50 )
1.2. For the new multi-component modelling, the composition is varied until a flash results in pure vapour, i.e. until
the dew point pressure equals ambient pressure.
Scenario A B C D E
Material Ammonia Methane Chlorine HC mixture LNG
Storage phase Liquid Vapour 2-phase 2-phase Liquid
Pressure (Pa) 1.1 × 105 1.0 × 106 5 × 105 3 × 105 5 × 106
Temperature (K) 230 160 na na 180
Liquid mass fraction na na 0.95 0.8 n/a
Inventory (kg) 5,000 500 1,000 5,000 750
Orifice diameter (m) 0.025 0.05 0.1 0.025 0.01
Liquid head (m) 3 na 0 0 1.5
Pipe diameter 0.1 0.05 0.2 0. 2 0.1
Pipe length 10 4 20 100 20
Using independent property system calculations at initial and orifice pressure and temperature, the model as documented
here is applied using spreadsheet calculations. The results are then compared with the model run outputs.
Verification of the post-expansion outputs as calculated by ATEX is reported in that model’s documentation.
- Review specific areas where the theoretical basis of the models is uncertain, including discharge coefficients,
the treatment of relief valve and addressing several of the footnotes in the current document.
- Expose model features not currently supported in SAFETI, such as 2-phase leaks for line ruptures.
- In addition to releases from sharp-edge orifice, consider extending the orifice scenario to non-circular orifices
5
- .
- In addition of full-bore ruptures at the end of the pipe, allow for partial leaks.
- Validation against additional experiments; see the DISC validation document for details 1.
The discharge models use three types of flash calculations: isentropic (expansion from storage to orifice conditions),
isenthalpic (expansion to atmospheric conditions – see ATEX) and isoenergetic (expansion along a pipe). The fixed
enthalpy flash method of solution is exactly the same as for the fixed entropy flash, and is not documented further. These
PC flashes differ from standard flash calculations described in the FLAS model, specifically in the use of ‘forced’ flashes
(where the flashed phase is forced to remain pure vapour or liquid) and the assumption of pure component logic.
• temperature, T (K)
• liquid fraction, L (-)
• phase
Description
Note the description below relates to flashes that use pure component logic. Rigorous multicomponent flashes are done
as described in the Property System Theory document.
In terms of vapour (sV) and liquid (sL) entropies, the total entropy is:
s L sL P, T (1 L ) sV P, T ( 55 )
Some scenarios (especially the Leak scenario) force vapour or liquid discharges to remain the same phase after expansion,
in which cases the liquid fraction is set to one or zero. For non-forced phases, liquid fraction must be determined. As
liquid entropy is less than vapour entropy, whether the final state in single phase or two-phase can be determined from
Equation ( 56 )48:
s sV P , Tsat Vapour ( L 0) ( 56 )
If two-phase, then Equation ( 55 ) can be re-arranged to solve for L , and T is the saturated temperature Tf. Otherwise,
L = 0 or 1 and temperature is iterated.
Method of solution
2. Else
48
If P > Pcrit then Tsat cannot be evaluated. However the expanded state must be pure vapour (T > Tcrit) or pure liquid (T < Tcrit). It is possible to determine which by
comparing entropy with vapour entropy at the critical point. Similar logic applies to isenthalpic and isoenergetic flashes.
2.2. Else
2.3. End if
3. End if
• energy, E (J kg-1)
• mass flux, G (kg m -2 s-1)
• pressure, P (Pa)
It returns as output:
• temperature, T (K)
• liquid fraction, L (-)
Description
( 57 )
u2
E L hL V hV
2
where the speed u is given by:
u Gv G L vL V vV ( 58 )
G2 2
( 59 )
G 2 vV2
0 L2 vL vV L hL hV G 2vV vL vV hV E
2 2
As described for the fixed entropy flash (Section A.1), some scenarios require that initial pure vapour or liquid discharges
remain so after expansion. In these cases the final vapour or liquid fraction is set to 1. Otherwise, as we know that liquid
energy is less than vapour energy, whether the final state is single phase or two-phase can be determined:
Method of solution
2. Else
2.2. Else
2.3. End if
3. End if
49
Currently, forced isoenergetic expansions are not used in the models. However, the design adopted for the revised SAFETI 6.5 models allows this flexibility.
The theory below is based on old PHAST documentation, itself derived from the work of Bragg (1960) 6. It has not been
reviewed or its implementation verified.
The discharge coefficient of an orifice, C, is defined as the ratio of the actual mass flow to that which could be passed
through the full area of the orifice, Ao. Assuming that at the vena contracta a full expansion to ambient pressure has
occurred, it follows that:
Av v ( 61 )
C G v
Ao uv
Orifice
(Ao) Discharge
Vessel (Po)
Areas
(Aw , Aw+dAw)
Vena contracta
(Av)
Av , vv and uv are respectively the area, specific volume and velocity at the vena contracta. G is the mass flow per unit
area through the orifice.
For liquids the discharge coefficient is taken to be an assumed value for incompressible fluids, Ci = 0.650. For compressible
fluids, the coefficient is calculated according to a generalised method based on the work of Bragg (1960). A brief summary
of this method as applied is included here. The principle behind the method is to derive an expression for discharge
coefficient in terms of an estimated orifice pressure, Po , which is refined until a convergence is achieved.
The equation of motion of the fluid within a control surface that includes the reservoir and the flow up to the vena contracta
is:
Where F is the force defect, and is defined as the net force resulting from the reduction in pressure on the vessel walls
due to the fluid being in motion near the orifice. The pressure Pv at the vena contracta is assumed to be equal to the
supplied choke pressure, Pc51. Both energy and entropy are conserved between the vessel and vena contracta:
uv2 ( 63 )
hi hv
2
si sv ( 64 )
50
DOC. In Lees [15/7], the average experimental C for a sharp-edged orifice is given as 0.62.
51
DOC. Or ambient pressure if not choked flow.
( 65 )
F Pst Pw dAw
Ao
Integrating by parts, and recognising that as Aw , Pw Pst , and when Aw = Ao, Pw = Po , gives:
Pst ( 66 )
F Pst Po Ao Aw dPw
Po
Now the mass flux is at the walls is assumed to be proportional to the mean flux through area Aw:
uw GA ( 67 )
k o 0 k 1
vw Aw
The proportionality constant, k, is the same at all points in a particular orifice configuration regardless of operating
conditions - although there is no theoretical justification for this assumption (Bragg, 1960)52. Substituting for Aw allows the
integral in Equation ( 66 ) to be written as:
Pst Pst ( 68 )
vw
Aw dPw kGAo
Po
P u w dPw
o
dh vdP ( 69 )
dh udu ( 70 )
Pst Pst ( 71 )
A dP
Po
w w kGAo du w kGAo u o
Po
Consider now the incompressible case. The force defect according to Equation ( 65 ) can be rewritten using Bernoulli's
Equation as:
u2 ( 73 )
F w w dAw
Ao
2g
52
JUSTIFY. How well justified are these k values? Are they used apart from in this paper? Are they tabulated for orifices in standard reference works?
F ( 74 )
f 2
G Ao v st
A similar quantity is defined for the compressible case, and Equation ( 72 ) can be written:
Equation ( 67 ) allows the expression of G in terms of local velocity and specific volume at the orifice, so:
( 76 )
fuo2 vst uo2
Pst Po
k 2 vo2 vo
The constant k is calculated from the coefficient of discharge for incompressible fluids, Ci54:
( 77 )
k2 1 1
fi
2 Ci 2Ci2
Substituting in fi and pressure ratio for density ratio gives:
v 2vo Pst Po ( 78 )
f fi o 2
vst uo2
By conservation of energy this becomes:
vo vo Pst Po
( 79 )
f fi 2
vst H o H st
Conservation of entropy is assumed to hold between storage and orifice conditions:
Going back to the equation of motion, Equation ( 62 ), and substituting in for F ( 74 ) and G ( 61 ) gives a quadratic in C:
fuv2vst 2 uv2
( 81 )
v2 C v
P Pa C Pst Pa 0
v vv
A list of the orifice model inputs and outputs (taken from the model’s MDE Generic Spreadsheet) is illustrated in Figure
12 and Figure 13, respectively. For each input parameter a brief description of the meaning of the parameter is given, its
unit, and its lower and upper limits. Column N contains a complete list of input data corresponding to a leak from a
53
Not actually dimensionless - has units of acceleration.
54
This looks odd. The k value is predicted from the fi value for incompressible flow, which in turn is calculated from C i , which is the same for all orifices. Hence k is
the same for all orifice types (=0.745).
Input Data:
1. Material name. The user specifies the name for the material stored in the vessel.
2. Storage state. The vessel stagnation data used to define the state of the stored material. This is taken as the state at th e top of
any liquid in the vessel. This can be specified in a number of ways, as described below.
2.1. Specification flag. A material at equilibrium can be specified using any 2 of pressure, temperature, or liquid fraction. A material
not at equilibrium must have all 3 specified. This input flag tells the model how determine the state:
• -1 – Fixed temperature T and prescribed fixed flow rate.
• 0 – Not at equilibrium.
• 1 – fixed Pst &Tst. FL is ignored. All 3 of P,T and f L are specified
• 2 – bubble point at T st. Pst and fL are ignored
• 3 – bubble point at Pst. Tst and fL are ignored
• 4 – dew point at T st. Pst and fL are ignored
• 5 – dew point at Pst. Tst and fL are ignored
• 6 – fixed Pst and fL. Tst is ignored.
• 7 – fixed Tst and fL. Pst is ignored.
2.2. Pressure (Pst). Storage pressure, excluding liquid head.
2.3. Temperature (T st). Storage temperature.
2.4. Liquid fraction (f L). Storage liquid mole fraction.
3. Vessel data.
3.1. Total inventory. The mass contained in the vessel. Note that even for vapour releases the entire inventory is discharged.
3.2. Orifice diameter (not applicable for fixed-duration scenario).
3.3. Liquid head (applicable for liquid and not fixed-flow rate scenario). The vertical distance height above the orifice of the liquid
surface in the vessel. Liquid head is ignored for all vapour releases.
3.4. Pump head (applicable for liquid and not fixed-flow rate scenario). The orifice scenario is sometimes used to simulate small
leaks from pipes with an upstream pump
4. Atmospheric expansion data. Atmospheric pressure, temperature, humidity and wind speed at the discharge height. Note that th e
wind speed is only used for the Melhem droplet correlation.
5. Scenario data.
5.1. Scenario flag. Value = 4 corresponds to standard orifice leak and value = 5 corresponds to fixed duration scenario. In the
latter scenario the model is forced to release of the entire inventory in a specified time (input by user, see below) by varying
the orifice diameter.
5.2. Phase to release for 2-phase storage. For a 2-phase vessel, the user can choose to release either liquid (3; orifice below the
liquid level), vapour (1; orifice above the liquid level) or as a homogeneous 2-phase mixture (otherwise). For liquids, any liquid
head is added in.
5.3. Fixed duration (only applicable to fixed-duration scenario). The time in which the entire inventory will be evacuated - see
Equation ( 9 ).
5.4. Fixed flow rate. Only used when the specification flag = -1. The model then uses input stagnation temperature T st and iterates
on stagnation pressure Pst to obtain the prescribed fixed flow rate.
1. Multi-component modelling flag (not allowed for fixed-flow rate scenario). A value = 0 enables multi-component modelling for
mixtures, rather than the pseudo-component approach (= 1) in PHAST 6.5 and earlier releases.
2. Phase change upstream of orifice? If set to 0, pure liquid or vapour leaks will not be allowed to change phase before or in t he orifice.
If set to 1, phase change is always allowed. If set to 2 (default), then phase change is disall owed for liquid only (meta-stable liquid
assumption). When liquid phase change is disallowed then the orifice pressure will be set equal to the ambient pressure.
3. Use Bernoulli model for metastable liquid releases? If this is TRUE and flashing is not allowed to the orifice, then the incompressible
Bernoulli equation will be used to calculate the flow rate for liquid discharge. The default value of this parameter is FALSE.
4. Is discharge coefficient specified? If this is TRUE, then the user must specify a discharge coefficient in a subsequent parameter.
The default value of this parameter is FALSE, i.e. the model itself calculates the value of the discharge coefficient.
5. Orifice L/D ratio. Used for the new JIP droplet size correlation, this is the ratio of orifice length to diameter. The model uses minimum
and maximum cut-offs of 2 and 50, and values outside this range will have no effect. See ATEX model documentation for further
details.
7. ATEX expansion method. Sets the method to be used by the ATmospheric EXpansion model. Option 0 is ‘minimum thermodynamic
change’. The other methods are isentropic (=1); conservation of momentum (=2); and DNV recommended (=4, default). See ATEX
model theory for a fuller discussion.
8. Droplet-related parameters:
8.1. Droplet correlation method (-). Sets which one of eight correlation methods is used for calculating droplet size in ATEX. See
droplet_size_theory_validation.doc for further details.
8.1.1. 0 – the original CCPS (Phast 6.4) method – default in Phast 6.6 and earlier versions.
8.1.2. 1 – the JIP method uses the correlation proposed by the Flashing Liquid Jets Phase II project.
8.1.3. 2 – the TNO Yellow Book correlation
8.1.4. 3 – the droplet size correlation developed by Tilton and Farley
8.1.5. 4 – the Melhem correlation.
8.1.6. 5 – the correlation proposed in the JIP Phase III
8.1.7. 6 – the Modified CCPS correlation – new default in Phast 6.7
8.1.8. 7 – the Modified CCPS correlation but not for two-phase pipes
8.2. Of these only the Original CCPS, Modified CCPS, Melhem and JIP phase III correlations are available in Phast, with the
Modified CCPS correlation as the default
9. Force mechanical or flashing break-up. If > 0, and where applicable, this forces the use of the flashing (= 2) or mechanical (= 1)
break-up correlation used by a particular method (PHAST 6.4, JIP or TNO as described above).
11. Maximum velocity capping method. This parameter is used to limit the post-expansion velocity in cases where the model predicts
values that may be too large. There are two capping options available:
11.1. (=0): Fixed value - the post-expansion velocity is capped at a specified user-defined value. The default is uncapped (1.0e8
m/s).
11.2. (=1): Sonic capping - the post-expansion velocity is capped at the sonic velocity.
13. Critical Weber number. Used for the PHAST 6.4 mechanical droplet size correlation. See ATEX model documentation for further
details.
Output Data:
1. Release state. The initial material state prior to release, including liquid head. The model returns all 3 of Pi , Ti and f Li. Also returned
in an array containing the mole fractions of all components in the released stream.
2. Orifice state. The material state at the orifice, prior to atmospheric expansion conditions. The model returns all 3 of Po , To and fLo.
It also returns orifice velocity uo and the orifice or vena contracta diameter.
5. Other data
Input Data
Many input data are the same as described for the orifice model above.
1. Material name. The user specifies the name for the material stored in the vessel.
2. Storage state. The vessel stagnation data used to define the state of the stored material, as described for the orifice model above.
3. Vessel data. Fluid inventory excludes fluid mass in the pipe (fluid mass in pipe is calculated by the model and added to the total
system inventory). The orifice diameter refers to the diameter of the join between the pipe and vessel, but is ignored in all but the
relief valve scenario which explicitly models this constriction. Liquid head: adding to initial pressure for liquid releases , and ignored
otherwise.
5. Atmospheric expansion data. Atmospheric pressure, temperature, humidity and wind speed at the discharge height. Note that the
wind speed is only used for the Melhem droplet correlation.
6. Scenario data.
6.1. Release scenario. Line rupture, relief valve, and disk rupture are the 3 scenarios, and are described in Section 3.2.1.
6.2. Line rupture: phase to release for 2-phase storage. For a line rupture from a 2-phase vessel, the user can choose to release
either liquid (3; pipe below the liquid level), vapour (1; pipe above the liquid level) or as a homogeneous 2 -phase mixture
(otherwise). For liquids, any liquid or pump head is added in.
6.3. Relief valve or disk rupture: phase to release for 2-phase storage. For a relief valve or disk rupture scenario, a 2-phase vessel
may release vapour (i.e. from a large vapour space vessel) or 2-phase (i.e. from a small vapour space vessel). Liquid releases
are not allowed for these scenarios.
These are mainly as described for the orifice model. The exceptions are:
1. Maximum number of output steps for results along the pipe. Not intended to be changed by the user.
2. Disk rupture scenario: 2 nd phase critical pressure. Even if a 2-phase release is chosen for this scenario, it will be released as a
vapour is the initial gauge pressure is less than this parameter.
3. Ratio of non-equilibrium to equilibrium flow rates. The constricted valve orifice (area Ao) for the relief valve scenario is assumed to
be ‘over-drilled’ by this ratio (i.e. for the leftmost case in Figure 15 Ao = 1.2 × Ao). See Equation ( 27 ). Thus the orifice will be
less constricted than suggested by the ratio of orifice and pipe diameters.
4. Capping method for flow rate. Permissible values are (0 – uncapped, 1 – capped with flashing allowed, 2 – capped with flashing
disallowed). Capping the pipe model will prevent mass flow rates from exceeding those through a similarly sized orifice. Th e
different flashing options will control whether during this orifice calculation flashing is suppressed (as with a normal leak) , or enabled.
Part of the output data are very similar to the orifice scenario, but there are some additional outputs relating to presence
of the pipe that are highlighted below.
1. Control valve data. This is relevant only for line rupture scenarios with a control valve specified.
1.1. Control valve data under normal operation. An isothermal expansion is assumed and so only the pressure and velocity
immediately downstream of the control valve is reported.
1.2. Control valve data after rupture. The fluid state immediately downstream of the control valve after rupture is given in terms of
pressure, temperature, liquid fraction and velocity.
2. Data along the pipe. For all short pipe scenarios, the fluid state generally varies along the pipe as a function of distance from the
upstream end of the pipe. In this section several fluid properties along the pipe are reported as arrays. Th e ‘accumulated mass
along pipe’ is the fluid mass in the pipe between the upstream end and the given distance along the pipe.
3. ‘Fluid mass in pipe’ is the total mass in the pipe. This is of interest as it is added to the input inventory to obtain the t otal inventory
released.
A list of the orifice model inputs and outputs (taken from the model’s MDE Generic Spreadsheet) is illustrated in Figure
17. The inputs and outputs are exactly as described for the orifice and pipe models. No atmospheric expansion method
input is specified, as all instantaneous cases use the same method. See ATEX for further details.
A list of the orifice model inputs and outputs (taken from the model’s MDE Generic Spreadsheet) is illustrated in Figure
18. The inputs and outputs are exactly as described for the orifice and pipe models.
D E F L M N O
MDE_Test_DISC_Vapourvent: Vent from vapour
2 Inputs space discharge model testbed
3 Input Description Units Limits Vent1 Vent2
4 Index Lower Upper
5 Material
6 N Stream name - Ammonia Propane
8 Storage and vessel data
9 2 Temperature K 220 230
10 3 Total inventory (incorrectly used) kg 1.00E+03 1.00E+03
11 4 Liquid volumentric flow rate m3/s 2 1
12 5 Outflow diameter m 0.25 0.1
13 Atmospheric data
14 6 Atmospheric pressure Pa 101325
15 7 Atmospheric humidity - 0.7
Figure 18. Vent from vapour space input and output data.
Most inputs are as described for the orifice and pipe models. The liquid volumetric flow rate is that of the liquid inflow to
the vessel during the filling operation. The outflow diameter is the orifice diameter through which the vapour exits the
vessel.
For the outputs, the air and material mass release rates are the Q a and Qc respectively ( 49 ) and ( 50 ).
Below are descriptions of the possible DISC model error and warning messages.
Errors:
The vent from vapour space model must have a material initially in the liquid state.
The MC vent from vapour space model must iterate using a dew point flash to find the initial composition of the
air/component mixture. This error indicates it has failed to bracket a solution even using the extreme cases of pure
material and pure air. Vent from vapour space model must have a material initially in the liquid state.
Liquids cannot be released using these scenarios, but saturated liquids (bubble point) are permissible.
22 "No release possible if initial pressure, %1%Pressure%, less than ambient pressure"
23 "Atmospheric pressure, %1%Pressure%, out of range"
24 "Coefficient of velocity, %1%Real%, out of range"
25 "Relative tolerance, %1%Real%, out of range"
26 "Can't have instantaneous releases using JIP droplet correlation"
27 "Conservation of energy predicts square of exit velocity is negative. Unable to
solve case"
Orifice enthalpy exceeds initial enthalpy so conservation of energy predicts a negative square for orifice velocity. The
model cannot be solved.
29 "Vent from vapour space not allowed for mixtures containing air"
The vent from vapour space cannot handle mixtures including air. However as a requirement of the model is that
unpressurised the fluid must be liquid, this is unlikely to be a problem.
30 "Bracketing routine fails to find a suitable pair of pipe fluxes to bracket desired
root"
The pipe model is unable to find a value of the mass flow rate for which the thermodynamically calculated friction along
the pipe agrees with the empirical value. The model cannot therefore solve.
This error was previously warning 1005 and was upgraded to an error in Phast 6.7. The error indicates that for some
reason expansion to the orifice has failed to conserve entropy. This is often caused by liquid forced to remain so at the
orifice when the equation of state has no liquid solution.
33 "User-specified fixed flow rate smaller than the allowed minimum, %1%MassFlow%"
Requested flow rate must be greater than minimum value 1.0e10-9 kg/s for fixed flow rate scenarios (pumps and
compressors)
34 "Cannot find suitable storage pressure for fixed flow rate scenario"
This error happens when the model cannot find a storage pressure that would give the requested flow rate. This could
happen if a very large flow rate is requested; attempting a lower fixed flow rate may overcome the error..
35 "User-specified fixed flow rate smaller than accidental flow rate at atmospheric
pressure, %1%MassFlow%"
36 "User-specified fixed flow rate larger than accidental flow rate at max
pressure, %1%MassFlow%"
The requested fixed flow rate is larger than the accidental flow rate you would get from the line rupture scenario if you
have 300 bar pressure in the upstream tank; an error is given. Decrease the fixed rate or change other relevant data to
overcome the error.
The error is given for control valve scenarios where the pressure at the pipe end during normal flow is sub-atmospheric.
The user should adjust the storage pressure and/or the fixed flow rate if encountering this error.
38 "User-specified fixed flow rate for contol valve scenario exceeds orifice leak flow
rate %1%MassFlow%"
Reduce the requested fixed flow rate to a value below the one given in the error message (which is the flow rate you would
get from a corresponding orifice leak scenario).
39 "Too many steps (%1%integer%) required for integration from pipe upstream to downstream
of control valve"
The model cannot solve the expansion from upstream of the control valve to downstream of the control valve during
normal flow. Tweaking the fixed flow rate or some of the pipe characteristics may help overcome the issue.
40 "Pressure downstream of control valve after rupture, %1%Pressure%, higher than pipe
inlet pressure - too high fixed flow rate specified"
The specified fixed flow rate for control valve scenario is too high as it would require a pressure increase across the control
valve. Increase the storage pressure and/or reduce the fixed flow rate to obtain a consistent set of inputs.
41 "Phase change along pipe not allowed during normal flow for control valve scenario"
Liquid has changed to two-phase along the pipe during normal flow for the control valve scenario. This is not allowed.
Consider changing conditions like the storage pressure or fixed flow rate to avoid this error.
A pump has been chosen, but the requested fixed rate is smaller than what can be achieved in the liquid phase. Either
change to vapour storage and compressor or increase the fixed rate to get consistent inputs for a liquid release with a
pump.
44 "User-specified fixed flow rate must be smaller than %1%MassFlow% for fluid to be
vapour at given temperature"
A compressor has been chosen, but the requested fixed rate is larger than what can be achieved in the vapour phase.
Either change to liquid storage and pump or decrease the fixed rate to get consistent inputs for a vapour release with
compressor.
Warnings:
1014 "Flow rate cap based on no flashing failed; cap therefore based on allowing
flashing instead."
1015 "Flow rate cap based on allowing flashing failed; cap therefore based on
disallowing flashing instead."
The two above warnings are issued for short pipe scenarios if the requested flow rate capping method fails; an alternative
flow rate cap method is then used instead.
Section 3.3 contains a description of the method of solution55 for the short pipe model. This includes a pressure integral
as given in Equation ( 28 ). We here include explicit expressions for calculating the pressure as a function of distance
along the pipe.
Equation ( 28 ) can be solved numerically to give Pn (Pe ≤ Pn < Pi ; n = 1, 2…) and solution In. Assuming constant friction
f along the pipe, Equation ( 17 ) can also be solved numerically to give an expression for the distance along the pipe L n
(Li=0 ≤ Ln ≤ Lp; n = 1, 2…):
D i I n ( 82 )
Ln ln 2 .
G
2f n
Since I is a function of P, we now effectively have an expression for the length along the pipe as a function of pressure P.
The mass Mn in a pipe segment [0, Ln] can be obtained by integrating Equation ( 30 ) using the trapezoidal rule to obtain
D 2 n n1 ( 83 )
M n M n1 Ln Ln1 .
4 2
In case of uniform temperature Ti and pressure Pi along the pipe, Equation ( 83 ) simplifies to give the total mass in the
pipe Mp as
1 ( 84 )
Mp D 2 (Ti , Pi ) L p .
4
55
An alternative solution algorithm based on the SUNDIALS numerical solver is proposed in the DISC algorithm document.
The modelling of short pipe scenarios described in Section 3 includes several potential friction terms. One of these terms
is due to sudden contraction of the fluid flow as the fluid flows from storage conditions within the vessel into the pipe –
hereafter referred to as the pipe entry friction term. It has been identified that the current pipe entry friction term in DISC
does not seem to be directly aligned with the literature, and an investigation into this pipe entry friction term has therefore
been carried out and is documented in this section. We first present some formulations identified following a brief literature
review before recapping how the pipe entry friction term is currently modelled in DISC. Next some validation cases are
studied to see if modifying the pipe entry friction improves model predictions compared to experimental data. Finally a test
study is carried out to investigate how changing the pipe entry friction term impacts on the mass release rate for a range
of line rupture cases.
A common way of expressing frictional losses in a pipe is in terms of velocity head losses K:
1 2 ( 85 )
Fentry K u
2
Here Fentry is the entry loss, K the associated velocity head loss and u is the fluid velocity at the start of the pipe. Based
on this formulation a brief comparison of pipe entry friction terms from the literature has been made and is summarised in
the table below. The values below are based on the case without a constricted pipe entry.
The value of the pipe entry loss coefficient depends on the geometry of the vessel-pipe connection. This is further
discussed in Munson et al10., pages 417 and 418.
The above is generally applicable to incompressible fluid flow (liquids). For friction losses in gas pipes one must consider
compressible flow. References for compressible gas pipe friction losses seem sparse, though one potentially relevant
source by Turner and Yoos11 has been identified. A closer look to this reference would be required to see if it covers pipe
entry friction losses for gas flows.
• The flow is from a vessel into an attached short pipe, as opposed to a sharp-edged or rounded orifice
• Fairly high Reynolds number for Cv to be constant:
o Pipe diameter larger than 25 mm
o Liquid head larger than 1.2 m
The current implementation in DISC, however, does not apply a constant value of C v=0.8. Instead, Cv is set equal to the
discharge coefficient Cd for the equivalent orifice scenario with flashing allowed (orifice diameter = pipe diameter). This
means that Cv can range from 0.6 (liquid releases) up to values towards 1 for vapour releases. Validation results in Section
E.3 shows that the DISC implementation gives more accurate flow rates than the alternative formulations found in the
literature.
Furthermore, the factor k is used to model the increase in frictional losses on entering the pipe through a constricted pipe
entry where the diameter of the pipe entry Do is smaller than the pipe diameter Dp. No such factor k appears in the
reference by Vennard and Street, and as such this factor is of unknown origin. In DISC it is defined as
2 ( 87 )
D
k min Rneq o ,1
Dp
The smaller this ratio of diameters (i.e. the more constricting the pipe entry), the greater the frictional losses. R neq is a
safety factor to allow for possible under-estimation of the constricting pipe entry (used to allow for over-drilling in the relief
valve scenario). For most short pipe scenarios there is no constriction at the pipe entry and so k=1. However, for the relief
valve and control valve scenarios one may generally have k<1.
1.2
0.8
0.6
0.4
0 2 4 6 8 10 12
Pipe length (m)
Figure 19: Ratio of predicted to experimental flow rates for two sets of subcooled line rupture cases (Uchida and
Nariai (water) and Shell Propane).
shows the ratio of predicted to experimental flow rates for the Uchida and Nariai subcooled water line ruptures (square
markers) and the Shell Propane subcooled line rupture (circular markers). Two sets of model predictions are compared
with the experimental data: The default line rupture predictions in Phast 7.2 (blue markers) and the results when using a
modified pipe entry friction term as given be Vennard and Street (red markers). It is clear that the default DISC
implementation gives more accurate flow rates than the modified Vennard and Street approach for almost all the data
considered.
Note that the Vennard and Street formulation gives higher flow rates than DISC default for the Uchida and Nariai cases.
This is because Vennard and Street uses a fixed Cv=0.8, while the DISC default in these cases uses C v=0.6. The latter
gives higher pipe entry friction and thus smaller flow rates. Interestingly the opposite trend is observed for the Shell
Propane cases where Vennard and Street actually gives lower flow rates than the default Phast approach. The explanation
for this is that the calculated discharge coefficient used as C v by DISC defaults ranges from 0.806 to 0.965 for these
experiments.
• Fluid state:
o Current DISC implementation (Cv=Cd), Vennard (Cv=0.8), Crane (Cv=0.8165) and McCabe (Cv=0.8452).
o No capping
The pipe entry friction term is expected to become less important the longer the pipe is due to increasing surface
roughness friction along the pipe. When studying the impact of the pipe entry friction term it was therefore decided to run
cases for a range of pipe lengths. It was also decided to run one liquid case and one vapour case as the calculated C d
used by DISC for pipe entry friction varies significantly depending on fluid state. The impact of removing the flow rate
capping was also investigated. Results for the flow rates generated can be seen in Table 3. The following can be observed:
• The deviation increases for shorter pipes as the pipe entry friction term becomes more important as compared
to the pipe surface friction.
• The deviation is larger for liquid than for vapour because the calculated discharge coefficient depends on the
fluid state. The discharge coefficient for the liquid case was 0.6044 while for the vapour case it was 0.8704.
• The flow rate is capped by the orifice flow rate for all liquid cases with pipe lengths 1 m and 10 m. When capping
occurs, the uncapped flow rate and uncapped deviation is given in brackets in Table 3.
• Note that the capped flow rate varies for different pipe entry friction formulations. This is because the discharge
coefficient Cd used when running the orifice scenario to obtain the maximum flow rate is given by
1
Cd .
Fentry 1
1
o Note that in current DISC implementation then Fentry 1 . So if k=1 (no additional
kCd 2
constriction nor overdrilling safety factor), then the Cd you send in to the orifice model to obtain a max
flow rate is the same as the originally calculated Cd for the pipe entry friction. The question then is on
what basis was this Cd originally calculated? Flashing/no flashing? What orifice diameter? Constricted
or not? And could it be that the Cd used for calculating the max flow rate by orifice model need to take
into account overdrilling/additional constriction and therefore is back-calculated from
1
Cd ?
Fentry 1
• Current DISC release rates are slightly over-predicted for the vapour release cases.
Release rate
Pipe length [m] Cv [-] % deviation Release rate [kg/s] % deviation
[kg/s]
(Uncapped) (Uncapped) (Uncapped)
(Uncapped)
Cd 18.8 0 378.1 0
Cd 6.8 0 122.8 0
We have shown that the DISC model applies a pipe entry friction force which is slightly different from those found in the
literature. To understand the significance of this difference several test cases were studied and selected validation carried
out. It turns out that the predictions by the default DISC model are more accurate than when using the Vennard and Street
pipe entry friction based on the two experimental data sets considered. On this basis it can therefore not be recommended
to adopt Vennard and Street’s Cv=0.8 value above the current DISC default behaviour (Cv=Cd). Nevertheless a number
of observations have been made for potential further investigation and improvement:
• The current pipe entry loss for an additional constriction has no known literature reference and could as such be
considered further. This entry loss applies to relief valve scenarios where an additional constriction is specified
and also to line rupture scenarios with fixed flow rate imposed by a control valve with opening diameter less than
the pipe diameter.
E Energy (J kg-1)
L Length (m)
M Mass (kg)
P Pressure (Pa)
Pst* Initial storage pressure (excluding head; corresponding to top of liquid) (Pa)
Pst Initial storage pressure (including head; corresponding to orifice height) (Pa)
T Temperature (K)
u Velocity (m s-1)
Greek letters
ΔH Head (m)
Subscripts
Xi Initial
Xst Storage
Xc Choke
XL Liquid
XV Vapour
Xe Pipe exit
Digital Solutions
DNV is a world-leading provider of digital solutions and software applications with focus on the energy, maritime and
healthcare markets. Our solutions are used worldwide to manage risk and performance for wind turbines, electric grids,
pipelines, processing plants, offshore structures, ships, and more. Supported by our domain knowledge and Veracity
assurance platform, we enable companies to digitize and manage business critical activities in a sustainable,
cost-efficient, safe and secure way.