
X
5.
NUMERICAL SIMULATION
OF
THE
FLOW
3
29
(a) General programs suitable also for the modelling of gas transmission systems
These are essentially programs suited for the solution of differential equations of
various types. Several of these are included in the software of almost every medium
and big general-purpose computer. The best-known such programs include CSMP
(Continuous System Modelling Program (IBM
1
130/360));
Digital Simulation
Language (IBM
11
30/7090/360);
MIMIC; MIDAS (Modified Integration Digital
Analog Simulation); KALDAS (Kidsrove Algol Digital Analog Simulation (ICL
1900
Series)); SLANG (Simulation Language (ICL
503/803/4120/4130/ATLAS)).
These programs have the common drawback that the system of differential
equations describing the process taking place
in
the system has to be formulated by
the gas engineer, who must,
in
addition, bring the system to the most suitable form
or,
indeed, reduce
it
to the most fundamental operations (addition, subtraction), as
the system
of
equations is fed to the computer as a basic data. Preparing the
equations of the boundary conditions is not less cumbersome. Another disadvan-
tage is that all programs named above employ the explicit method to solve the
system of differential equations, and although the results for any time step are
obtained rather fast, time steps must be quite short, which
is
a considerable
disadvantage when handling transients of long duration.
(b) Programs modelling steady states
These programs are used
for
two distinct purposes: first, independently, to
investigate one of the fairly large class
of
steady-state
or
nearly-steady-state
technical and engineering problems, and secondly, to furnish initial conditions for
the dynamic models.
The programs developed by the Gas Council London Research Station and by
the Department of Petroleum Engineering (TUHI, Miskolc) are given
in
7uhlr
8.5
-2.
The majority of these programs satisfy the requirement that the
user
need not
know the structure and operation of the program. The input data including the
network configuration, the parameters of the pipelcgs, the pressures and flow rates
of the sources, and the consumer demands can be readily compiled
with
reference to
the set of instructions.
In
order to solve a loop
it
is sufficient to estimate the
throughput in one pipeleg included
in
the loop. From these data, the computer
will
calculate the steady-state conditions by an iteration procedure. The program
GFS-I
computes the friction factor
E.
from the Colebrook equation (Eq.
1.1
-
7),
and takes
into account the change of the compressibility factor
z
by Wilkinson equation (Eq.
8.1
-
9).
The pressures at the nodes are determinable with an accuracy of
0.1
bar by
applying the Newton-Raphson iteration method.
At
GFS-Ill
A
is constant, while at
GFS-I1 and GFS-IT1
z
is constant,
too.
The accuracy of the pressure determination
is
1
kPa at GFS-I1 while
1
Pa at GFS-111;
in
the first program the Newton-Raphson
or
the Cross method can be used:
in
the latter the
Cross
method is applied.