Download simulation of gas pipelines leakage using characteristics method

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Blower door wikipedia , lookup

Transcript
SIMULATION OF GAS
PIPELINES LEAKAGE USING
CHARACTERISTICS METHOD
Author: Ehsan Nourollahi
• Organization: NIGC (National Iranian Gas
Company)
• Department of Mechanical Engineering ,
Ferdowsi University, Iran
Topics:
1. Introduction
2. Characteristics method
3. The numerical solution method
& The implementation of the
leakage effect
4. Results & Conclusions
Introduction
The pipe surface leakage or the pipe
section dismissal can be created of
some various reasons like as
corrosion, earthquake or mechanical
stroke which may be implemented in
the pipe surface and also overload
compressors.
Figure (1)
After the leakage creation, the flat expansion pressure
waves are propagated in two converse sides
These waves have the sonic speed and after clashing to the
upstream and downstream boundaries, return to the form of
compression or expansion wave depending on the edge
type
In the leak location, depending on ratio of pressure to
ambient pressure be more or less than CPR quantity, the flow
will be sonic and ultrasonic or subsonic respectively.
Pout  2 
CPR 


P1cr  k  1 
k
k 1
If the flow be sonic and ultra sonic, the sonic reporter wave
don’t leak from out of the pipe to inter the pipe practically.
Hence the changes of the flow field are accomplished due to
the flat pressure waves and the real boundary conditions on
the start and end of the pipe
mass flow outlet of the hole only depends on the stagnation
pressure in the leak location and on area of the hole and is
not related to the form of the orifice cross section
Characteristics method
 ( u )


x
t
The continuity equation is:
P
Du


x
Dt
The momentum equation is:
By extension of these equation, we have:
1  u  u


0
 t  x x
1  u
u

u
0
 x t
x
With attention to the definition of speed of the sound by:
p
a  ( )s

2
For an ideal gas:
a2 
kp

Third condition of continuity for isentropic flow is:

a 2 /(k 1)
( )
 ref
aA
or:
p
a
 ( ) 2 k /(k 1)
pref
aA
For isentropic flow a A , pref ,  ref are constant, then we
have:
1 p
2k 1 a

p x k  1 a x
1 
2 1 a

 t k  1 a t
By using of the relationship between the sonic speed
and the pressure in an ideal gas, these equations are
changed to the below forms after some steps of
rewriting of the mass and momentum conservation
equations:
{
a
a
k  1 u
u
 (u  a ) } 
{  (u  a ) }  0
t
x
2
t
x
{
a
a
k  1 u
u
 (u  a) } 
{  (u  a) }  0
t
x
2
t
x
These equations are set of quasi-linear hyperbolic
partial differential equations.
a  a ( x, t )
Therefore a solution of the form: u  u ( x, t ) is
required. Except of special cases, there are no
analytical solution for these equations, then we should
study numerical solutions. In this paper we use
Characteristics method to achieve a numerical
solution.
Base of this method is transferring of two independent
equations as u  u ( x, t ) and a  a( x, t ) to another group
as c  c( x, t ) or c  c(u, a)
The solution may be
represented by the curved
surface bounded by edges
PQRS
Figure 2. Graphical interpretation of
the characteristics method
c  c ( x, t )
(a) Three-dimensional surface
defining
(b) Projection of line on
characteristics surface to plane
at
c0
if in a special point on the surface of c  c( x, t ) for a
reviewing special curve from that point, the slope of the
projected curve on the x-t plane be equal with quantity
of curve of that point, the passing direction of that point
is known as the characteristic direction. We have in
mathematical expression:
(dx / dt )char  C
By using of this complete derivative definition, the sonic
speed and particle speed parameters are determined
with respect to the time of a characteristic length like as
the below:
a
a
 da 
c
  
x
 dt char t
u
u
 du 
c
  
x
 dt char t
Therefore if c  c(u, a) defined as the form of: c1  u  a
c2  u  a
In length of two characteristics, they are rewritten like
as:
k  1  du 
 da 
  
  0
2  dt  c1
 dt  c1
k  1  du 
 da 
  
  0
2  dt  c 2
 dt  c 2
The numerical solution method
At first the none-dimensional parameters of A and U
are defined as below in the characteristics method:
u
U
aref
a
A
aref
;
In the above equation a ref is sonic speed in the start
point. Then Reimann non-dimensional
characteristics are defined as following:
  A
k 1
U
2
;
  A
k 1
U
2
An explicit equation between Reimann variables in
inner points of the solution field is presented below
which is for each step:
t
bin1  a in1 in1  in
x
n t

 i
b in1  ain1  in1   in 
x
in1  in
 in1



By distinction of the state equation in the boundary, a
mono-equation is created between Reimann variables.
So always in any boundary, one of these variables is
known and the other one is unknown then the
unknown Reimann variable can be calculated, so the
effect of the boundary transfers to the solution field is
obtained.
The implementation of the leakage effect
For implementation of the
leakage effect on the flow field,
the mesh is chosen in a way
that the hole location would
be stated between two nodes
When the hole is created in the
pipe surface, as it’s said, the
pressure ratio to the ambient
pressure in below the hole
which is inter the pipe, is more
than the CPR in the later time
steps.
Figure (3)
Therefore, the flow is checked in
the hole location and outflow
of the leak location, calculated
by:
M
 2 
Q  Aor Pl .
.k .

ZRTl  k  1 
The leakage point in any time step act as a boundary
and two expansion waves depending to direction of
flow in the pipe, would reach to a and b points with a
little time difference and create the same change in
non-dimensional speed of U like the below form:
Ua  Ua 
Q
U a
m a
Q
Ub  Ub 
Ub
m b
k 1
k 1
Then the unknown parameters  a and b are
calculated like the below form:
 a  a  (k  1)  U a
b   b  (k  1)  U b
Therefore, the state of two points in any time step with
considering to corrected leakage effect and hence by
notice to the equations that governed to the problem
are type of the hyperbolic equations, during the time of
the leakage effect is transferred permanently as a third
boundary addition to the upstream and downstream
boundaries to the solution field.
Results and Conclusions
Consumptions:
Pipe Length : 250 meter
Hole Area : 1 cm
Number of grid system : 100 nodes
Initial gas pressure : 30 bar
Initial gas speed : 41 ft/s
Also temperature is constant and there are non viscose flow.
Boundary conditions:
Upstream boundary condition is the reservoir with constant
pressure and the downstream boundary condition is stated
with three forms:
• The boundary with no changes with respect to the location
• The valve with constant coefficient of pressure drop
• close end
Figure 4. State (1) of the boundary conditions:
4-a Pressure changes by increasing of the pipe length at primary
times
4-b Changes of the exit mass flux by time
Figure 5. State (1) of the boundary conditions:
5-a changes of the exit mass flux by increasing the hole area and
pipe length
5-b changes of the exit mass flux by increasing the pipe pressure
and pipe length
Figure 6. State (2) of the boundary conditions:
6-a. Pressure changes by increasing of the pipe length at primary
times
6-b. Changes of the exit mass flux by time
Figure 7. State (2) of the boundary conditions:
7-a Changes of the exit mass flux by increasing the hole area and
pipe length
7-b Changes of the exit mass flux by increasing the pipe pressure
and pipe length
Figure 8. state (3) of the boundary conditions:
8-a Pressure changes by increasing of the pipe length at primary
times
8-b Changes of the exit mass flux by time
Figure 9. State (2) of the boundary conditions:
9-a Changes of the exit mass flux by increasing the hole area and
pipe length
9-b Changes of the exit mass flux by increasing the pipe pressure
and pipe length
With best wishes
of Iranian People