0% found this document useful (0 votes)
80 views65 pages

DISC Model Theory

PHAST DISC model Theory

Uploaded by

A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views65 pages

DISC Model Theory

PHAST DISC model Theory

Uploaded by

A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 65

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

1 Oct 2005 SAFETI NL 6.5 Mike Harper Oke and Witlox

2 Jan 2010 Phast 6.6 Jan Stene

3 April 2011 Phast 6.7 Jan Stene

4 Aug 2014 SAFETI-NL 6.x Stene and Witlox Oke


5 Nov 2015 SAFETI-NL 7.x Stene

6 Oct 2017 Safeti-NL 8.0 Stene

7 May 2021 Apply new template D. Vatier

8 July 2022 Version update David Worthington

Date: December 2023

Prepared by: Digital Solutions at DNV

© DNV AS. All rights reserved

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.

| THEORY | Discharge Scenarios | Page i


Table of contents
ABSTRACT .................................................................................................................................................................. I

1 INTRODUCTION ......................................................................................................................................... 1

2 ORIFICE MODEL ........................................................................................................................................ 2


2.1 Inputs and Outputs 2
2.2 Model Theory 2
2.3 Method of solution 5
2.4 Use of Bernoulli’s Equation 5

3 SHORT PIPE MODEL ................................................................................................................................. 6


3.1 Inputs and Outputs 6
3.2 Model Theory 7
3.3 Method of Solution 12

4 FIXED FLOW RATE MODELS................................................................................................................... 13


4.1 Introduction 13
4.2 Pumps and compressors - prescribed accidental flow rate 13
4.3 Control valve (vapour and liquid releases) 14
4.4 Testing and verification 20

5 INSTANTANEOUS MODEL ......................................................................................................................... 1


5.1 Inputs and Outputs 1
5.2 Model Theory 1

6 VAPOUR VENT MODEL ............................................................................................................................. 3


6.1 Inputs and Outputs 3
6.2 Model Theory 4

7 VERIFICATION ........................................................................................................................................... 6

8 FUTURE DEVELOPMENTS ........................................................................................................................ 7

APPENDICES ............................................................................................................................................................. 2

NOMENCLATURE .................................................................................................................................................... 29

REFERENCES .......................................................................................................................................................... 32

| THEORY | Discharge Scenarios | Page ii


1 INTRODUCTION
Hazardous chemicals are frequently stored in vessels. Following a leak in the vessel or in a pipe attached to the vessel, a
discharge will occur to the atmosphere. The model DISC is a suite of instantaneous and continuous discharge models. The
continuous (non-time varying) models predict the (typically worst-case) initial discharge rate and the release duration if the
discharge were to be sustained at this rate.

There are four different models:

• Orifice model. Continuous release rate from a vessel orifice.


• Pipe model. Initial release rate from a short pipe connected to a vessel (including through a relief valve or rupture disk).
• Instantaneous model. The release resulting from a catastrophic rupture of a vessel.
• Vent from vapour space model. Release resulting from a venting of a vapour space during a filling operation.

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.

| THEORY | Discharge Scenarios | Page 1


2 ORIFICE MODEL
This continuous (not time-varying) model simulates the release from a small orifice in a vessel. It is an initial-rate discharge
model, which predicts the worst-case initial discharge rate and the duration associated with this discharge rate. The chemical
stored in the vessel may be vapour, liquid or two-phase.

2.1 Inputs and Outputs


The inputs required by the orifice model are as follows:

• vessel storage data:

- 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.

• orifice area Ao (m)

• flags

- flashing suppression flag (to force no change in phase)


- release phase for 2-phase storage (liquid, vapour, 2-phase)

• (case of > 0) fixed duration (s). Allows a fixed-duration run where orifice diameter is scaled to match required mass
release rate

The model returns the following outputs:

• release rate Q (kg/s)


• release duration trel (s)
• orifice pressure Po (Pa)
• orifice temperature To (K)
• orifice mass liquid fraction (Lo)
• orifice velocity uo (m/s)
• discharge coefficient CD (-)

2.2 Model Theory


The orifice model is illustrated in Figure 1, and describes the expansion from pre-release conditions to the orifice. The
pre-release or initial conditions are determined from the user specified storage conditions according to the scenario and
other settings. Expansion from the orifice to atmospheric conditions is handled by the ATEX (Atmospheric Expansion)
model.

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.

| THEORY | Discharge Scenarios | Page 2


Atmospheric
expansion (ATEX)
Vessel
conditions
(Pst* ,Tst , st) Orifice conditions
(Po ,To , o)

Initial
conditions Release rate (Q)
(Pst ,Tst , st)

Vena contracta
(CD) Atmosphere
(Pa ,Ta)

Figure 1. Orifice model

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 gH , 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
hPst , Tst , st   hPo , To , o  
2
By conservation of entropy:

sPst , Tst , st   sPo , To , o  (3)

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.

| THEORY | Discharge Scenarios | Page 3


The orifice pressure Po equals the ambient pressure in case of unchoked flow, and is determined from the choke pressure
in case of choked flow

Po  max Pa , Pc  (4)

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

The specific volume is calculated as:

o (1   o ) (6)
vo  
 Lo  Vo

The mass release rate, Q* (kg/s) is then6:

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.

Finally the release duration, trel, is

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.

| THEORY | Discharge Scenarios | Page 4


2.3 Method of solution
The sequence of steps used to determine the orifice conditions is:

1. For a given Po, temperature and liquid fraction are determined from the isentropic-expansion Equation ( 3 ), as
described in Appendix A.1.

2. Calculate orifice velocity from conservation-of-energy Equation ( 2 )

3. Calculate the mass flux from Equation ( 5 )

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.

5. Calculate CD and modified Q and Av from Equation ( 8 )

6. Calculate release duration from Equation ( 9 )

2.4 Use of Bernoulli’s Equation


This option is recommended for incompressible liquid flow. Furthermore, occasionally a liquid-liquid isentropic expansion
produces unphysical results, causing a temperature increase between the storage and orifice. This arises due to the
shape of the liquid entropy curves for saturated liquids at close to the critical pressure. Under these circumstances
Bernoulli’s equation for incompressible fluids is used to calculate orifice velocity:

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:

2. Calculate orifice velocity from Equation ( 10 )

3. Set orifice state

4. Calculate mass flux from Equation ( 5 )

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).

| THEORY | Discharge Scenarios | Page 5


3 SHORT PIPE MODEL
This continuous (non-time varying) model describes the release from a short pipe attached to a vessel. It can be used to
model the full-bore rupture of such a pipe, or alternatively it can be used to model discharge through relief valves or rupture
disks. In the latter two cases, the pipe represents the valve tailpipe, while the relief valve itself is represented by a
constricted (i.e. of smaller diameter than the pipe) orifice at the junction between the vessel and pipe.

3.1 Inputs and Outputs


The inputs required by the pipe model are as follows:

• 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:

- pipe entrance diameter Dconstriction (m)


- pipe inner diameter D (m)
- pipe surface roughness z0 (m)
- pipe length Lp (m)
- pump head ∆HP (m)

• pipe fittings and bends:

- 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:

- scenario flag (see below)


- (relief-valve scenario) ratio of non-equilibrium to equilibrium flow rate Rneq (m -1)
- (disk rupture scenario) critical pressure Pdrcrit (Pa)

The model returns the following outputs:

• pipe exit state

- pressure, Pe (Pa)
- temperature Te (K)
- mass liquid fraction (e)

• release rate, Q (kg/s)


• release duration, trel (s)
• pipe exit velocity, ue (m/s)
• discharge coefficient, CD (-)

| THEORY | Discharge Scenarios | Page 6


3.2 Model Theory
The pipe model is illustrated in Figure 2, and models the release from a short pipe attached to a vessel. At the junction
between the vessel and pipe is a constricting orifice (Ao  Ap). Expansion from the pipe exit to ambient conditions is
handled by the ATEX model.

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)

Figure 2. Pipe model

The model assumes the following:

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.

| THEORY | Discharge Scenarios | Page 7


A relief valve at the top of a vessel (Figure 3) lifts due to overpressuring of a large vapour-space vessel, or liquid swelling
of a small vapour-space vessel. The discharge occurs through the constricting relief valve at the entrance to the pipe
(with orifice area Ao ≤ Ap) and then along the length of a short tailpipe. For 2-phase storage, the material can be released
from the vessel as either vapour (overpressuring of a large vapour space vessel) or as a homogeneous 2-phase11. Liquid
vessels cannot use this scenario.

Released material

Relief valve

Two-phase (or liquid)

Large vapour space (e.g. storage


vessel) or a gas vessel
Vapour
Small vapour space (e.g. a Liquid
reactor or a liquid vessel
Vapour release Two-phase or
Liquid release
Figure 3. Relief valve scenario.

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.

| THEORY | Discharge Scenarios | Page 8


Released material

Rupture disk position


before release

Two-phase (or liquid)

Large vapour space (e.g. storage


vessel) or a gas vessel
Vapour
Small vapour space (e.g. a Liquid
reactor or a liquid vessel
Vapour release Two-phase or
Liquid release
Figure 4. Rupture disk scenario.
Vapour and 2-phase discharges occur for as for the relief valve scenario, but the disk seat is the same diameter as the
tailpipe pipe.

3.2.2 Model Development


As for the orifice model, for liquid releases (i.e. line rupture scenario only) the storage pressure is increased by the total
head (ΔH = ∆HL + ∆Hp)13 as described for the orifice model ( 1 ). The storage temperature is kept constant. No head is
added for vapour or 2-phase releases.

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

The Fanning friction factor, f, is defined as:

13
IMPROVE. For full bore line ruptures, pump head should probably be disallowed (VI2466).

| THEORY | Discharge Scenarios | Page 9


2 o v ( 14 )
f 
u2
Eliminating o from Equation ( 13 ) gives:

fG 2 v ( 15 )
dP  G 2 dv  2 dl
D

Dividing the momentum equation ( 15 ) through by G2/v gives:

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.

Pipe frictional resistance

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).

| THEORY | Discharge Scenarios | Page 10


Pipe frictional resistance Ffriction is calculated from model inputs according to empirical correlations in the literature. It is
expressed as a sum of contributions from pipe walls, fittings and valves, and losses on entrance to the pipe:

Ffriction  Fwall  Ffit  Fvalve  Fentry ( 21 )

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.

The contribution, Fvalve , of valves is:

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):

F fit  N coup K coup  N junc K junc ( 25 )

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.

| THEORY | Discharge Scenarios | Page 11


3.3 Method of Solution
The overall sequence of steps in solving the pipe model is as follows:

1. Determine initial state according to scenario and other inputs

2. Establish maximum flux, Gmax , through the pipe according to the orifice model20,21

3. Calculate empirical pipe friction

a. Determine coefficient of velocity, Cv , according to the discharge coefficient method.

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

Where  = ratio of specific heats, and Mw is the molecular weight.

The mass dM in a pipe segment of length dl is given by

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.

| THEORY | Discharge Scenarios | Page 12


 ( 30 )
dM  D 2  ( P, T ) dl .
4
4 FIXED FLOW RATE MODELS

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.

4.2 Pumps and compressors - prescribed accidental flow rate


There could be situations where the analyst would like to prescribe the accidental flow rate rather than this flow rate being
calculated by the model. This situation is supported by the DISC orifice scenario and the short-pipe scenario (full-bore
rupture at end of short pipe). The “prescribed accidental flow rate” scenario may be applied for the following cases:

• 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.

| THEORY | Discharge Scenarios | Page 13


released, and the program will iterate over the stagnation liquid mass fraction ηst to determine the
value for which Q(ηst) = Qfixed
b) For cases with Tst > Tcritical:
• Release phase will always be vapour
• Iterate over the stagnation pressure Pst to determine the value for which Q(Pst) = Qfixed, with Pa<Pst<Pmax,
where Pmax is an upper limit for the pressure.

4.3 Control valve (vapour and liquid releases)


This section considers the case when a control valve is presumed to be located at the upstream end of a pipe, immediately
downstream of a connected vessel; see Figure 5. The user inputs the flow rate and control valve opening during normal
operation of the pipeline. Following a full-bore rupture the control valve is assumed to respond in such a manner as to
maintain the same flow rate as prior to the rupture. This is achieved by imposing a constriction diameter at the start of the
pipe while maintaining a constant upstream pressure Pst, and the details of this approach are described in this section.

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.

Input data are as follows:

- 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

4.3.1 Initial steady-state conditions prior to accidental pipe rupture


Two different cases are considered, i.e. a fully-open control valve (Dconstriction=D) or partially closed (<D). For a fully open
valve, the modelling is fully consistent with the line rupture scenario (pipe entry force modelling distributed along the
pipe). For partially closed valves, two separate stages are considered for expansion from stagnation to downstream-
valve conditions (isothermal), and from downstream-valve to pipe exit conditions (conservation of energy).

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.

Initially fully-open control valve


The following is applied in case the control valve is fully open during normal operation of the pipe:

- 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.

Initial liquid state

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.

| THEORY | Discharge Scenarios | Page 14


Assumptions include:

- The fluid remains pure liquid throughout the pipe30.


- Isothermal conditions prevail along the entire pipeline length
- The liquid density remains constant along the pipe, ρL = ρL(Pst,Tst) = ρLst along the pipe, i.e. the minor
effect of pressure variation along the pipe is ignored 31.

The initial steady-state conditions are now set as follows:

- 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.

Initial vapour state


Use GASPIPE initial solution (isothermal assumption – see Section 2.6 in the GASPIPE theory document4).
Assuming ideal gas32, the pressure along the pipe during initial steady-state can be calculated by

( 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

Initially partially-closed control valve


As shown in Figure 5a the overall fluid expansion is considered in two stages:

- 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.

| THEORY | Discharge Scenarios | Page 15


The first stage Pst  Pvalve :
final

- 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 ).

final final final


- If liquid remains liquid ( valve  1 ) or vapour remains vapour ( valve  0 ), then Eq. ( 36 ) is solved for Pvalve
final
final ; if liquid becomes two-phase [
and thereafter Eq. ( 35 ) is solved to obtain u valve Pvalve =Psat(Tst)], a fatal error is
issued: “Two-phase effects currently not handled for initial state of control valve scenario”.
- For incompressible liquids36, density is constant and therefore Eq. ( 36 ) simplifies and gives this explicit solution
for the control valve pressure:

2 ( 37 )
final Fentry Qfixed
Pvalve  Ps t  .
2 Ap2  s t

The second stage Pvalve  PB :


final

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.

| THEORY | Discharge Scenarios | Page 16


- Starting from the now known data immediately downstream of the valve, subsequently equations along the pipe
can be solved completely analogous as for the above case of a fully-open control valve, presuming no phase
change along the pipe.

- For liquid this explicitly means37:

- 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

- For vapour this explicitly means:

( 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.

| THEORY | Discharge Scenarios | Page 17


Expansion
Vessel along pipe
(Pst*, Tst, st)

Pipe entry
(Pst, Tst, st, Aconstriction) Ap Flow rate (Qfixed)

Pipe roughness (z0)

Pipe

End of valve flow


expansion, Pipe downstream end
pressure (PB, TB=Tst, B)

(a) Conditions before rupture

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

End of valve flow


expansion, Pipe exit
pressure (Pe, Te, e)

(b) Conditions after rupture with constriction

Figure 5. Pipe model with control valve at upstream end

| THEORY | Discharge Scenarios | Page 18


4.3.2 Final steady-state conditions after accidental pipe rupture
We consider the scenario where a full-bore rupture has occurred and that a constricting control valve is in operation during
the final steady-state flow in the pipe. The upstream pressure Pst and temperature Tst remain the same after the rupture,
while the control valve is assumed to operate in such a way as to maintain the same flow rate after the rupture, namely
Qfixed. In Figure 5b it can be seen that the overall fluid expansion is considered in three stages:

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 )
hPst , 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

final = T ( P final final final


conditions, Tvalve sat valve ) and the equations are solved for valve and uvalve . See Appendix A.2 for further
details on the solution to the above equations.
- Note the assumption that the upstream energy equals the enthalpy, i.e. no kinetic energy so ust=0.

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.

| THEORY | Discharge Scenarios | Page 19


4.4 Testing and verification
To assess the model implementation of the control device logic some targeted testing has been carried out and is
described in this section. The case of a line-rupture scenario is considered involving a 50 m long pipe with 6” diameter
(0.154m) and pipe roughness 457μm. The tests include cases with both ethane and propane stored at a temperature of
20oC. Further key scenario data is given in the subsections below.

4.4.1 Pump and compressor tests


A set of tests with pump and compressor action for ethane pipes has been carried out and is based on the modelling as
described in Section 4.2. The specified fixed flow rate is varied between 0.01 kg/s and 400 kg/s. The stagnation pressure
is calculated based on the specified input fixed flow rate38.

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

| THEORY | Discharge Scenarios | Page 20


Fixed flow rate for compressors and pumps
1

0.9
7.10E+06

0.8
6.10E+06

0.7

Mass liquid fraction


Absolute pressure (Pa)

5.10E+06
0.6

4.10E+06 0.5

0.4
3.10E+06

0.3
2.10E+06

0.2

Storage pressure (Pa)


1.10E+06
Pipe exit pressure (Pa) 0.1
Storage liquid fraction (MASS basis) (kg/kg)

1.01E+05 0
0 50 100 150 200 250 300 350 400
Fixed flow rate (kg/s)

Gas -> compressor Two-phase Liquid –> pump


-> error

Figure 6: Pump and compressor action for varying fixed flow rates.

4.4.2 Control valve tests


In this section we turn our attention to line rupture scenario with a control valve present at the upstream end of the pipe.
A vapour pipe39 with ethane stored at 10 bara and 20°C and a liquid pipe40 with propane stored at 40 bara and 20°C were
both studied. The impact of varying the fixed flow rate specified for control valve scenarios was studied with results shown
in Figure 7 and Figure 8 for the vapour and liquid cases, respectively. Key observations:

• 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

| THEORY | Discharge Scenarios | Page 21


o DISC error 40:

"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.

o DISC error 41:

"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.

| THEORY | Discharge Scenarios | Page 22


Fixed flow rate for propane liquid pipe with control valve
1.70E+02
Control valve pressure normal operation (Pa)
4601325 Control valve pressure after rupture (Pa)
1.50E+02
Pipe exit pressure after rupture (Pa)
4101325 Control valve velocity normal operation (m/s)
Control valve velocity after rupture (m/s) 1.30E+02

3601325 Pipe exit velocity after rupture (m/s)


Final velocity after rupture (m/s)
1.10E+02

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.

| THEORY | Discharge Scenarios | Page 23


5 INSTANTANEOUS MODEL

5.1 Inputs and Outputs


The inputs required by the instantaneous model are:
• Storage pressure, Pst (Pa)
• Storage temperature, Tst (K), or mass liquid fraction, Lst (-)
• Liquid head, HL (m)

The following are returned from the model:

• Pre-release pressure, Pi (Pa)

5.2 Model Theory


This model is used to describe the instantaneous release of an entire vessel inventory due to, for example, a catastrophic
rupture. Essentially the model comprises only one stage: the expansion from initial conditions to atmospheric Figure 9).
As such, it is described largely in ATEX. Note that the ATEX expansion is done differently to that for the continuous
models.

Vessel Atmosphere
(Pst ,Tst,  Lst) (Pa ,Ta)

Initial hL
(Pi ,Ti,  Li)

Figure 9. Instantaneous model

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.

| THEORY | Discharge Scenarios | Page 1


The storage pressure is therefore assumed to be the ‘average’ pressure of the stored liquid.

This model cannot be used with the JIP droplet correlation which is based on continuous releases from orifices.

| THEORY | Discharge Scenarios | Page 2


6 VAPOUR VENT MODEL
This model describes the release of vapour from an unpressurised vessel containing liquid and vapour, for example
during a filling operation (see Figure 10). 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. During the filling
operation, the liquid inflow volumetric rate and storage temperature are assumed to be constant.

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

Figure 10. Vapour vent model

6.1 Inputs and Outputs


The model requires as inputs:

• storage data: temperature Tstxlii (K), initial inventory Mst (kg)xliii;


• filling operation: component liquid volumetric flow rate Vflow (m3/s)
• exit area A (m)
• ambient data: pressure Pa (Pa), temperature Ta (K), relative humidity rhxliv
• component and ambient properties (e.g. vapour pressure, molecular weight etc.)

It returns as outputs the following release data:

• humid air mass flow rate, Qa (kg/s)


• component vapour mass flow rate, Qc (kg/s)
• duration, trel (s)
• velocity, uf (m/s)
• temperature, Tf (K)

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).

| THEORY | Discharge Scenarios | Page 3


6.2 Model Theory
Assumptions

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

Release flow rates

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).

| THEORY | Discharge Scenarios | Page 4


 Pv c (Tst )  ( 50 )
Qa  Va
out
 a Pa  P Tst , Tst   1 
v
c
 Vin  a Pa , Tst 
 Pa 

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):

Qci  Vin y i  vi Pa , Tst  ( 52 )

Other release data

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

The release temperature Tf is set equal to the storage temperature Tst.

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. Calculate mass flow rates Qc and Qa

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.

2. Calculate final velocity, uf , from Equation ( 53 )

3. Calculate release duration, trel , from Equation ( 54 )

4. Set final temperature Tf = storage temperature, Tst.

| THEORY | Discharge Scenarios | Page 5


7 VERIFICATION
The orifice, short pipe and instantaneous DISC models have all been verified using manual calculations for a number of
common scenarios (A-E, Table 1)

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

Table 1. Base scenarios for testing and verification

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.

All outputs agreed to within 0.1%.

Verification of the post-expansion outputs as calculated by ATEX is reported in that model’s documentation.

| THEORY | Discharge Scenarios | Page 6


8 FUTURE DEVELOPMENTS
The following further work is recommended:

- 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.

| THEORY | Discharge Scenarios | Page 7


APPENDICES

Appendix A. Flash calculations for discharge models

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.

A.1 Fixed Entropy

Inputs and Outputs

The isentropic expansion requires the following inputs:

• specific entropy, s (J kg-1)


• pressure, P (Pa)

It returns the following outputs

• 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 )

s L P, Tsat   s  sV P, Tsat  Two  phase (0   L  1)


s  s L P, Tsat  Liquid ( L  1)

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

1. If the expansion is forced (see above)

1.1. set Lf to zero or one, and iterate on Tf to satisfy Equation ( 55 ).

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.

| THEORY | Discharge Scenarios | Page 2


2.1. If improved multi-components is being used,

2.1.1. A standard fixed entropy flash is performed

2.2. Else

2.2.1. Determine final phase from Equation ( 56 ).

2.2.2. If two-phase, set Tf to Tsat and solve Equation ( 55 ) for to find f

2.2.3. If single-phase, set f to 0 or 1 and iterate on Tf to solve Equation ( 55 )

2.3. End if

3. End if

A.2 Fixed energy

Inputs and Outputs

The isoenergetic expansion requires as input:

• 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

In terms of vapour and liquid enthalpies, conservation of energy requires:

( 57 )
u2
E   L hL  V hV 
2
where the speed u is given by:

u  Gv  G L vL  V vV  ( 58 )

By expressing vapour fraction V = 1 – L and combining Equations ( 57 ) and ( 58 ) we get:

 
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:

E  EV P, Tsat  Vapour ( L  0) ( 60 )

EL P, Tsat   E  EV P, Tsat  Two  phase (0   L  1)


E  EL P, Tsat  Liquid ( L  1)

| THEORY | Discharge Scenarios | Page 3


If two-phase, then the quadratic Equation ( 59 ) can be solved for L and T set to the saturated temperature, Tsat. Otherwise,
L is set to 0 or 1 and T iterated.

Method of solution

1. If the expansion is forced (see above)

1.1. Set L to zero or one, and iterate on T to satisfy Equation ( 59 )49.

2. Else

2.1. If improved multi-component modelling is being used

2.1.1. A standard isoenergetic flash is performed.

2.2. Else

2.2.1. Determine final phase from Equation ( 60 ).

2.2.2. If two-phase, set T to Tsat and solve Equation ( 59 ) for L.

2.2.3. If single-phase, set L = 0 or 1 and iterate on T to solve Equation ( 59 ).

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.

| THEORY | Discharge Scenarios | Page 4


Appendix B. Discharge coefficient

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)

Figure 11. Discharge from an orifice and vena contracta.

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:

F  Ao Pst   Ao  Av Pa  Av Pv  Ao Guv ( 62 )

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.

| THEORY | Discharge Scenarios | Page 5


From Equation ( 61 ), the mass flow rate can be expressed in terms of the discharge coefficient. An expression can also
be derived for the force defect: consider a position, W, to the left of the orifice where the fluid is in motion and the pressure
is reduced to Pw. The element of surface over which pressure acts subtends an area δAw parallel to the plane of the
orifice (
Figure 11). The force defect is then:

 ( 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

For an adiabatic expansion:

dh  vdP ( 69 )

And by conservation of energy:

dh  udu ( 70 )

Combining these enables Equation ( 68 ) to be evaluated:

Pst Pst ( 71 )
 A dP
Po
w w  kGAo  du w  kGAo u o
Po

if the storage velocity is zero. The force defect, Equation ( 66 ) becomes:

F  Pst  Po Ao  kGAo uo ( 72 )

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?

| THEORY | Discharge Scenarios | Page 6


But the local velocity, uw , is proportional to the mass flow GAo. Consequently it is useful to define a dimensionless ‘force
defect coefficient’, f, which is independent of flow rate for a given orifice53:

F ( 74 )
f  2
G Ao v st

A similar quantity is defined for the compressible case, and Equation ( 72 ) can be written:

F  fG 2 Ao v st  Pst  Po Ao  kGAo u o ( 75 )

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:

sPst , Tst , Lst   sPo , To , Lo  ( 80 )

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 

Appendix C. Guidance on using the DISC model

C.1 Orifice model input and output data

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).

| THEORY | Discharge Scenarios | Page 7


refrigerated ammonia tank containing liquid at small overpressure. Columns to the right indicate those values that need
to be changed to invoke (column O) a pressurised methane vapour leak; and (column P) a liquid leak of propane stored
at saturation conditions.

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.

Parameters (to be changed only by expert users):

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.

| THEORY | Discharge Scenarios | Page 8


6. Input discharge coefficient. This user-specified value of the discharge coefficient will be used only if the earlier ‘Is discharge
coefficient specified?’ parameter is TRUE.

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).

9.1. PHAST 6.4. Can force either flashing or mechanical break-up.


9.2. JIP. Can force mechanical break-up only
9.3. TNO. Purely a mechanical break-up correlation, so this parameter has no effect.

10. Atmospheric molecular weight.

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.

12. Maximum velocity and duration or release.

13. Critical Weber number. Used for the PHAST 6.4 mechanical droplet size correlation. See ATEX model documentation for further
details.

14. Minimum and maximum droplet diameter.

15. Relative tolerance for optimisation and root finding calculations.

| THEORY | Discharge Scenarios | Page 9


Figure 12. Orifice model input data.

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.

| THEORY | Discharge Scenarios | Page 10


3. Final (post-expansion) state. The material state after the expansion to ambient conditions. The model returns T f and fLf . The final
pressure Pf = Pa. The model also returns final velocity uf.

4. ATEX outputs. Please see ATEX documentation for further details.

4.1. Droplet diameter.


4.2. Rossin-Rammler ‘b’ coefficient (bRR). Used in determining the droplet size distribution.
4.3. Flashing (=1) or mechanical (=2) droplet size correlations used. For the JIP correlation, a value of 3 is possible, indicating
the droplets are in the transitional zone between flashing and mechanical break-up.
4.4. ATEX expansion method used. If the ‘minimum thermodynamic change’ or ‘DNV recommended’ method has been chosen,
this output will indicate which of the two expansion methods was actually used.
4.5. Expanded diameter.
4.6. Partial expansion energy used as the basis of the PHAST 6.4/ CCPS flashing droplet size correlation. This output variable
also doubles up as the Rossin-Ramler Arr value in case of JIP droplet correlations.

5. Other data

5.1. Discharge coefficient.


5.2. Mass release rate.
5.3. Release duration.

Figure 13. Orifice model output data.

C.2 Pipe Model Input and Output Data

| THEORY | Discharge Scenarios | Page 11


A list of the pipe model inputs and outputs (taken from the model’s MDE Generic Spreadsheet) is illustrated in Figure 14
and Figure 15 (inputs) and Figure 16 (outputs). For each input parameter a brief description of the meaning of the
parameter is given, its unit, and its lower and upper limits. Columns N through contain a complete list of input data
corresponding to a line ruptures from a refrigerated ammonia tank containing liquid at small overpressure; a pressurised
methane vapour vessel; and saturated liquid propane.

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.

4. Pipe and valve data

4.1. Basic pipe data. Diameter, length, (interior) surface roughness.


4.2. Bend and fitting frequencies (number per metre). These contribute a fixed amount to pipe friction, reducing mass flow throug h
the pipe.
4.3. Valve type head loss. The velocity head losses for one of each of the three types of valve.
4.4. Frequencies (number per metre) of valve types

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.

7. Flow control options (only applicable to Line Rupture scenario).


These options allow the user to model a pre-defined accidental flow rate (‘fixed-rate scenario’). The following flow control options
are available:

7.1. (=0) None – standard line rupture scenario


7.2. (=1) Compressor (Vapour phase; temperature and fixed flow rate required)
7.3. (=2) Pump (Liquid phase)
7.3.1. Fixed rate: temperature and fixed flow rate required
7.3.2. Pump head: temperature, pressure and pump head required
7.4. (=3) Control valve (vapour or liquid phase; temperature, pressure and fixed rate required)

Parameters (to be changed only by expert users):

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.

| THEORY | Discharge Scenarios | Page 12


Output Data

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.

4. ‘Dimensionless pipe friction’. An additional output used mainly for verification.

Figure 14. Pipe model input data (Part 1)

| THEORY | Discharge Scenarios | Page 13


Figure 15: Pipe model input data (Part 2)

| THEORY | Discharge Scenarios | Page 14


Figure 16. Pipe model output data

C.3 Rupture Model (instantaneous release)

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.

| THEORY | Discharge Scenarios | Page 15


D E F L M N O P
MDE_Test_DISC_Instantaneous: Instantaneous
2 Inputs discharge model testbed
3 Input Description Units Limits RuptA RuptB RuptC
4 Index Lower Upper
5 Material
6 N Stream name - Ammonia Methane Chlorine
8 Storage state
Specification flag (0 = P&T&LF, 1 = P&T, 2 = Tbub, 3 =
9 2 Pbub, 4 = Tdew, 5 = Pdew, 6 = P&LF, 7 = T&LF) - 1 9 1 1 6
10 3 Gauge pressure Pa 0 8.68E+03 8.99E+05 3.99E+05
11 4 Temperature K 230 160
12 5 Liquid fraction - 1 0.95
13 6 Liquid head m 3 0 0
14 Atmospheric expansion data
15 7 Atmospheric pressure Pa 101325
16 8 Atmospheric temperature K 293.15
17 9 Atmospheric humidity - 0.7
18 10 Wind speed m/s 0 5
19 Scenario data
Phase to release for 2-phase storage (1 = vapour, 2 = 2-
20 11 phase, 3 = liquid) - 1 3 3

21 PARAMETERS (values to be changed by expert users only)


22 12 Multi-component modelling flag (1 = MC, 0 = PC) - 0 1 0
Droplet correlation (0=original CCPS, 1= JIPII, 2=TNO,
3=Tilton, 4= Melhem, 5=JIPIII, 6=modified CCPS,
23 13 7=modified CCPS excl. 2PH pipe) - 0 7 6
Force mechanical or flashing breakup (0 = No, 1 = force
24 14 mechanical, 2 = force flashing) - 0 2 0
25 15 Atmospheric molecular weight kg/kmol 28.966
Maximum velocity capping method (0 = user input, 1 =
26 16 sonic velocity) - 0 1 0
27 17 Maximum velocity m/s 500
28 18 Critical Weber number - 12.5
29 19 Minimum droplet size m 1.00E-08
30 20 Maximum droplet size m 0.01
31 Outputs
32 Output Description
33 Index
34 ERROR STATUS OK OK OK
35 Release state
36 1 Pressure Pa 120206.34 1000000 500000
37 2 Temperature K 230 160 282.67601
38 3 Liquid fraction - 1 0 1
39 4 Array of composition mole fractions mol/mol
40 Final (post-expansion) state
41 5 Temperature K 229.99746 111.66603 239.15932
42 6 Liquid fraction - 1 0.115409 0.8720691
43 7 Velocity m/s 3.6832711 375.14447 82.016791
44 ATEX outputs
45 8 Droplet diameter m 5.91E-04 9.87E-07 4.16E-05
46 9 Flashing or mechanical (1 = mechanical, 2 = flash) - 2 1 1
47 10 Expansion energy J/kg 6.7832429 70366.689 3363.377
48 11 Partial expansion energy J/kg 27.213588 70366.689 3363.377
49 12 UNUSED - Undefined Undefined Undefined

Figure 17. Rupture model input and output data.

| THEORY | Discharge Scenarios | Page 16


C.4 Vent from Vapour Space Model

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

16 PARAMETERS (values to be changed by expert users only)


17 8 Multi-component modelling flag (1 = MC, 0 = PC) - 0 1 0
18 9 Atmospheric molecular weight kg/kmol 28.966
19 10 Maximum velocity m/s 500
20 11 Maximum duration s 3600
21 Outputs
22 Output Description
23 Index
24 ERROR STATUS OK OK
25 1 Humid air mass release rate kg/s 2.1303038 7.19E-02
26 2 Material mass release rate kg/s 0.6462728 2.3019395
27 3 Temperature K 220 230
28 4 Duration s 1547.3341 434.41628
29 5 Velocity m/s 40.743665 127.32395
30 6 Array of vapour phase mole fractions kmol/kmol

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 ).

C.5 Model warnings and errors

Below are descriptions of the possible DISC model error and warning messages.

Errors:

1 "Scenario flag %1%integer% invalid the model"


2 "Orifice diameter %1%Length% is out of range"
3 "Inventory %1%Mass% is out of range"
4 "Liquid head %1%Length% is out of range"
5 "Pipe roughness %1%real% is out of range"
6 "Pipe bend or fitting frequency %1%PerUnitLength% is out of range"
7 "Pipe valve frequency or head loss of valve type %1%integer% is out of range"
8 "Pipe diameter %1%Length% is out of range"
9 "Pipe length %1%Length% is out of range"
10 "Vent from vapour space model: vapour pressure %1%Pressure% exceeds atmospheric:
initially vapour"

The vent from vapour space model must have a material initially in the liquid state.

| THEORY | Discharge Scenarios | Page 17


11 "Vent from vapour space model: unable to determine the initial amount of air"

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.

12 "Unpressurised releases must be liquid"

Generated by instantaneous unpressurised releases, which must be liquid.

13 "Volume flow rate, %1%Volume%, out of range"


15 "Ambient humidity , %1%Real%, out of range"
16 "Atmospheric mol wt, %1%MolarMass%, out of range"
17 "Maximum velocity, %1%Velocity%, out of range"
18 "Storage temperature, %1%Temperature%, out of range"
19 "Maximum duration, %1%Time%, out of range"
20 "Liquid release not allowed from relief valve scenario"
21 "Liquid release not allowed from disk rupture scenario"

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.

31 "Invalid flow rate capping method specified for pipe model"

32 "Entropy not conserved in calculation of choked flow by orifice


model"

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%"

| THEORY | Discharge Scenarios | Page 18


The requested fixed flow rate is smaller than the accidental flow rate you would get from the line rupture scenario if you
have atmospheric pressure in the upstream tank; an error is given. Increase the fixed rate or change other relevant data
to overcome the error.

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.

37 "Inconsistent input for control valve scenario; sub-atmospheric pressure, %1%Pressure%,


at pipe end during normal flow"

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.

42 "Invalid value %1%integer% for choice of flow controller"


43 "User-specified fixed flow rate must be larger than %1%MassFlow% for fluid to be
liquid at given temperature"

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:

1010 "Flow rate capped to that predicted by the orifice model"

| THEORY | Discharge Scenarios | Page 19


The flow rate predicted by the pipe model exceeds that predicted using the leak model using an orifice of the same
diameter. In line with the user’s wishes (see parameter “Capping method for flow rate”) the flow rate is capped to the
latter value.

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.

| THEORY | Discharge Scenarios | Page 20


Appendix D. Short Pipe Model – pressure along the pipe

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   n1  ( 83 )
M n  M n1    Ln  Ln1  .
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.

| THEORY | Discharge Scenarios | Page 21


Appendix E. Pipe entry friction

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.

E.1 A brief literature review


In trying to assess the current pipe entry losses in DISC, a brief look to the literature has been made.

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.

Reference K value Comments

DISC implementation K=1/(Cd*Cd) – 1 For liquids Cd=0.6 -> K=1.78


For vapour may have Cd=0.85 -> K=0.38

Vennard and Street12 K=1/(Cv*Cv) – 1 = 0.5625 Based on Cv=0.8. Page 536.

McCabe et al.7 K=0.4 Page 106/107, Eq. 5.66. (Cv=0.8452)

Crane8 K=0.5 Page 2-11, Eq. 2-10. (Cv=0.8165)

Lees9 K=0.4 Ch. 15, page 6. Refers to McCabe.

Table 2. Frictional loss constant due to sudden contraction.

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.

E.2 Current implementation in DISC


The number of velocity heads lost through entrance to the pipe is taken from Vennard and Street (1982) 12, page 536:

| THEORY | Discharge Scenarios | Page 22


1 ( 86 )
Fentry  1
kCv 2
Cv is the 'coefficient of velocity', which in the reference by Vennard and Street is given a constant value of 0.8 subject to
the following assumptions:

• 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.

E.3 Modified pipe entry friction: selected validation


We here redo validation for two sets of experimental data for the full-bore rupture of subcooled liquid pipes, namely the
Uchida and Nariai set and the Propane Shell set. The Sozzi and Sutherland experiments were excluded as flashing were
reported along the pipe for these cases, which would invalidate the assumption of incompressible flow (Vennard and
Street assumption when using Cv=0.8). These experiments are detailed in the DISC validation document – here we simply
present the results of the revalidation exercise which is extended to include a modified pipe entry friction term based on
Vennard and Street (Cv=0.8).

| THEORY | Discharge Scenarios | Page 23


1.6

Uchida & Nariai exp: Phast 7.2 (Cv=Cd flashing)


1.4 Uchida & Nariai exp: Vennard & Street (Cv=0.8)
Shell propane exp: Phast 7.2 (Cv=Cd flashing)
Ratio of predicted to observed flow rate (-)

Shell propane exp: Vennard & Street (Cv=0.8)

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.

E.4 Pipe entry friction test cases


It was shown in Section E.1 and Section E.2 that the current pipe entry friction term in DISC does not appear to be aligned
with the literature. To gain an understanding of how this deviation impacts on results, two test spreadsheets were set up
and run:

• Scenario: line rupture

• Fluid state:

| THEORY | Discharge Scenarios | Page 24


o Vapour - ethane at 10 bara and 293.15 K

o Liquid - propane at 50 bara and 293.15 K

• Pipe diameter = 0.154 m

• Pipe roughness: 4.57e-5 m

• Pipe lengths: 1 m, 10 m, 100 m and 1000 m.

• Pipe entry friction:

o Current DISC implementation (Cv=Cd), Vennard (Cv=0.8), Crane (Cv=0.8165) and McCabe (Cv=0.8452).

• Flow rate capping:

o The default option of capping based on non-flashing orifice scenario

o No capping

• Other inputs: defaults

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

| THEORY | Discharge Scenarios | Page 25


• Current DISC release rates are under-predicted for liquid. The under-prediction is significant for short pipes, and
removing the capping makes the under-prediction even more significant.

• Current DISC release rates are slightly over-predicted for the vapour release cases.

| THEORY | Discharge Scenarios | Page 26


Vapour ethane release Liquid propane release

Release rate
Pipe length [m] Cv [-] % deviation Release rate [kg/s] % deviation
[kg/s]
(Uncapped) (Uncapped) (Uncapped)
(Uncapped)

Cd 38.2 (47.7) 0 814.0 (1160.6) 0

0.8 35.1 (43.5) -8.1 (-8.8) 1085.3 (1915.5) 33.3 (65.0)


1
0.8165 35.8 (44.4) -6.2 (-6.8) 1107.7 (2035.5) 36.1 (75.4)

0.8452 37.1 (46.1) -2.9 (-3.3) 1146.6 (2274.9) 40.9 (96.0)

Cd 37.3 0 814.0 (907.6) 0

0.8 35.1 (35.5) -5.8 (-4.6) 1085.3 (1241.7) 33.3 (36.8)


10
0.8165 35.8 (35.9) -3.8 (-3.5) 1107.7 (1275.5) 36.1 (40.5)

0.8452 36.7 -1.6 1146.6 (1334.9) 40.9 (47.1)

Cd 18.8 0 378.1 0

0.8 18.6 -1.0 402.9 6.6


100
0.8165 18.7 -0.7 404.4 7.0

0.8452 18.7 -0.3 406.7 7.6

Cd 6.8 0 122.8 0

0.8 6.8 -0.1 123.6 0.6


1000
0.8165 6.8 -0.1 123.6 0.6

0.8452 6.8 -0.04 123.7 0.7

Table 3. Release rates for different pipe entry friction formulations.

E.5 Conclusions and recommendations

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:

• Add the pipe entry friction loss as a model input


o All friction losses except the entry friction loss can be specified by the user in the DISC pipe model. The
amount of loss is also strongly dependent on the geometry of the vessel-pipe connection. As such it

| THEORY | Discharge Scenarios | Page 27


would make sense to promote the pipe friction entry loss to a model input – either in terms of Cv input
or velocity head loss input (K losses).

• 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.

| THEORY | Discharge Scenarios | Page 28


NOMENCLATURE
A Area (m2)

CD Coefficient of discharge (-)

Cv Coefficient of velocity (-)

Dp pipe diameter (m)

E Energy (J kg-1)

Eexp Expansion energy (J kg-1)

f Fanning friction factor (-), or force defect coefficient (-)

G Mass flux (kg m-2 s-1)

g Gravitational constant (m s-2)

h Specific enthalpy (J/kg)

K Number of velocity head losses (-)

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)

Q Mass flow (kg s-1)

s Specific entropy (J K-1 kg-1)

T Temperature (K)

trel Release duration (s)

u Velocity (m s-1)

v Specific volume (m3 kg-1)

z0 Surface roughness (m)

Greek letters

ΔH Head (m)

Δh Specific enthalpy change (J kg-1)

ρ Density (kg m-3)

o Shear stress (N m-2)

 Liquid mass fraction (-)

Subscripts

| THEORY | Discharge Scenarios | Page 29


Xa Ambient

Xo Orifice (pre atmospheric expansion)

Xi Initial

Xf Final (post atmospheric expansion)

Xst Storage

Xc Choke

XL Liquid

XV Vapour

Xe Pipe exit

| THEORY | Discharge Scenarios | Page 30


About DNV
We are the independent expert in risk management and quality assurance. Driven by our purpose, to safeguard life,
property and the environment, we empower our customers and their stakeholders with facts and reliable insights so that
critical decisions can be made with confidence. As a trusted voice for many of the world’s most successful
organizations, we use our knowledge to advance safety and performance, set industry benchmarks, and inspire and
invent solutions to tackle global transformations.

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.

DNV | [email protected] | dnv.com/digital


REFERENCES
1
Oke, A., and Witlox, H.W.M., “DISC validation document”, March 2009, Phast Technical Reference (2009)
2
Coulson, J.M., Richardson, J.F., “Chemical Engineering.” Volume 1, 2rd Edition, Pergamon, Oxford, (1977).
3
Vennard, J.K. and Street, R.L., "Elementary Fluid Mechanics" 6th Edition, Wiley & Sons, New York (1982).
4
Webber, D., Witlox, H.W.M., and Stene, J., “Gaspipe theory documentation”, Phast Technical Reference (2011)
5 Waller, A., "Realistic dispersion modelling of chlorine release incident." Process Industry Incidents Conference, Florida
(2000)
6 Bragg, S.L. “Effect of Compressibility on the Discharge Coefficient of Orifices and Convergent Nozzles”, Journals of
Mechanical Engineering Science, Vol. 2, pp. 35-44 (1960).
7 McCabe, W.L., Smith, J.C., and Harriott, P., “Unit Operations of Chemical Engineering”, (1993)
8 Crane, “Flow of Fluids Through Valves, Fittings and Pipe”, Technical Paper No. 410 M, (1982)
9 Lees, Frank, “Loss Prevention in the Process Industries”, (2004)
10 Munson, Young, Okiishi, and Huebsch, “Fundamentals of Fluid Mechanics”, 6th Edition, Wiley & Sons, (2009)
11 Turner, J.R. and Yoos, T.R., “Pressure loss calculation procedures for high speed gas flow in ducts”, Dynatech Corp
report submitted to U. S. Navy Bureau of Ships, (1961)
12 Vennard, J.K. and Street, R.L., "Elementary Fluid Mechanics" 6th Edition, Wiley & Sons, New York (1982).

DNV | [email protected] | dnv.com/digital

You might also like