Reserve of gas in the operating pipeline

(integral by the Gauss-Legendre method)

Download program (freeware, OS: Windows)

Download project (source, IDE CodeTyphon 5.50)

The project was implemented using an integrated in CodeTyphon DMath module (author: Dr Jean DEBORD, Laboratoire de Pharmacologie, Faculte de Medecine 2 Rue du Docteur Marcland, 87025 Limoges, France).

The project is one of the tasks of applied gas dynamics is solved, but in practice, the proposed method allows to solve a wide range of problems with nonlinear multifactorial processes. The only condition - dependence must be using regression analysis (not necessarily polynomial) is transformed into a function of one variable.

The calculation is performed almost instantaneously, making it advisable to use automated control systems and large software systems that are critical to the use of computer time.

The problem is solved by the definite integral (function 'GausLeg' DMath module), the limited length of the pipeline.

Stages of solutions:

  • Physical formula for ten control points (the entire length of the pipeline) are calculated pressure, temperature and gas volume per one kilometer running (since the length of the pipeline in the input data is given in kilometers);
  • According to the control points is performed polynomial regression (polynomial of the third degree);
  • The calculated number of polynomial processed by the 'GausLeg', which is the result - the desired value of gas reserves in the current pipeline.

Graphically, the algorithm is as follows:

The project is a demonstration, so its functionality is limited to the visualization of the results of regression analysis and display of the calculation of the final result. It's just a blank for later use in the application software. The source code is completely open and can be used by you without any restrictions.

The main program window:

Visualization of results: