ArticleslgStudy

computer science

Gas networks simulation

Gas networks simulation is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Gas networks simulation rather than just read about it. In short: Gas networks simulation or gas pipeline simulation is a process of defining the mathematical model of gas transmission and gas distribution systems, which are usually composed of highly integrated pipe networks operating over a wide range of pressures. Simulation allows to predict the behaviour of gas network systems under different conditions.

Gas networks simulation — main illustration
Gas networks simulation — illustration

Key takeaways

  • Gas networks simulation belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Gas networks simulation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Gas networks simulation from memory before moving on to harder problems.

Reference excerpt

Gas networks simulation or gas pipeline simulation is a process of defining the mathematical model of gas transmission and gas distribution systems, which are usually composed of highly integrated pipe networks operating over a wide range of pressures. Simulation allows to predict the behaviour of gas network systems under different conditions. Such predictions can be effectively used to guide decisions regarding the design and operation of the real system.

Simulation types Depending on the gas flow characteristics in the system there are two states that can be matter of simulation:

Steady state – the simulation does not take into account the gas flow characteristics' variations over time and described by the system of algebraic equations, in general nonlinear ones. Unsteady state (transient flow analysis) – described either by a partial differential equation or a system of such equations. Gas flow characteristics are mainly functions of time.

Network topology

In the gas networks simulation and analysis, matrices turned out to be the natural way of expressing the problem. Any network can be described by set of matrices based on the network topology. Consider the gas network by the graph below. The network consists of one source node (reference node) L1, four load nodes (2, 3, 4 and 5) and seven pipes or branches. For network analysis it is necessary to select at least one reference node. Mathematically, the reference node is referred to as the independent node and all nodal and branch quantities are dependent on it. The pressure at source node is usually known, and this node is often used as the reference node. However, any node in the network may have its pressure defined and can be used as the reference node. A network may contain several sources or other pressure-defined nodes and these form a set of reference nodes for the network. The load nodes are points in the network where load values are known. These loads may be positive, negative or zero. A negative load represents a demand for gas from the network. This may consist in supplying domestic or commercial consumers, filling gas storage holders, or even accounting for leakage in the network. A positive load represents a supply of gas to the network. This may consist in taking gas from storage, source or from another network. A zero load is placed on nodes that do not have a load but are used to represent a point of change in the network topology, such as the junction of several branches. For steady state conditions, the total load on the network is balanced by the inflow into the network at the source node. The interconnection of a network can produce a closed path of branches, known as a loop. In figure, loop A consists of branches p12-p24-p14, loop B consists of p13-p34-p14, and loop C consists of p24-p25-p35-p34. A fourth loop may be defined as p12-p24-p34-p13, but it is redundant if loops A, B and C are also defined. Loops A, B and C are independent ones but the fourth one is not, as it can be derived from A, B and C by eliminating common branches. To define the network topology completely it is necessary to assign a direction to each branch. Each branch direction is assigned arbitrarily and is assumed to be positive direction of flow in the branch. If the flow has the negative value, then the direction of flow is opposite to branch direction. In the similar way, direction is assigned to each loop and flow in the loop. The solutions of problems involving gas network computation of any topology requires such a representation of the network to be found which enables the calculations to be performed in the most simple way. These requirements are met by the graph theory which permits representation of the network structure by means of the incidence properties of the network components and, in consequence, makes such a representation explicit.

Flow equations The calculation of the pressure drop along the individual pipes of a gas network requires use of the flow equations. Multiple gas flow equations have been developed and a number have been used by the gas industry. Most are based on the result of gas flow experiments. The result of the particular formula normally varies because these experiments were conducted over different range of flow conditions, and on varying internal surface roughness. Instead, each formula is applicable to a limited range of flow and pipe surface conditions.

Mathematical methods of simulation

Steady state analysis A gas network is in the steady state when the values of gas flow characteristics are independent of time and system described by the set of nonlinear equations. The goal of simple simulation of a gas network is usually that of computing the values of nodes' pressures, loads and the values of flows in the individual pipes. The pressures at the nodes and the flow rates in the pipes must satisfy the flow equations, and together with nodes' loads must fulfill Kirchhoff's laws for junctions and loops. There are a number of methods of analyzing the mathematical models of gas networks but they can be divided into two types as the networks, the solvers for low pressure networks and solvers for high pressure networks. The networks equations are nonlinear and are generally solved by some of Newton iteration; rather than use the full set of variables it is possible to eliminate some of them. Based on the type of elimination we can get solution techniques are termed either nodal or loop methods.

Newton-nodal method The method is based on the set of the nodal equations which are simply mathematical representation of Kirchhoff's first law which states that the inlet and outlet flow at each node should be equal. Initial approximation is made to the nodal pressures. The approximation is then successively corrected until the final solution is reached.

Disadvantages Poor convergence characteristics, the method is extremely sensitive to initial conditions.

Advantages Does not require extra computation to produce and optimize a set of loops. Can easily be adapted for optimization tasks.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Gas networks simulation

Start with the simplest possible case. Write down what Gas networks simulation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Gas networks simulation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Gas networks simulation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Gas networks simulation

In research
Gas networks simulation appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Gas networks simulation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Gas networks simulation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Networks, Piping, so understanding it makes those chapters shorter.
In everyday life
Look for Gas networks simulation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Gas networks simulation” →

How to study Gas networks simulation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Gas networks simulation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Gas networks simulation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Gas networks simulation in simple terms?

Gas networks simulation or gas pipeline simulation is a process of defining the mathematical model of gas transmission and gas distribution systems, which are usually composed of highly integrated pipe networks operating over a wide range of pressures. Simulation allows to predict the behaviour of…

Why does Gas networks simulation matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Gas networks simulation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Gas networks simulation.

Tags

  • Networks
  • Piping

Keep exploring