-
Notifications
You must be signed in to change notification settings - Fork 0
Home
This is a description of an open-source tool-set intended to perform numerical simulations of a network gas transmission pipelines.
Clone git repository to work location and compile:
git clone https://github.com/urrfinjuss/gas-network.git
cd ./gas-network
make simulate
Note: Modify Makefile as needed to set proper paths for libraries and headers
cd ./demo/simulation_1
./simulate.x python.cfg
To Use GUI to run and view simulation (only Linux GUI works now) it is necessary to have Python 3.3+
It is convenient to have pip (Python package manager) to add packages to Python.
Ubuntu:
apt-get install python-pip
Gentoo:
emerge --ask dev-python/pip
After pip is installed, make sure that the following packages are present: tkinter, matplotlib, scipy, networkx
pip install --user tkinter
pip install --user matplotlib
pip install --user scipy
pip install --user networkx
To start GUI go to your ~/gas-network/demo/simulation_1
directory and type:
./gas.py
when the GUI pops-up, load the network by clicking File->Load
and choose the demo_1.txt
- Microscopic Model
- Formulation
- Boundary and Initial Conditions
- Details of Numerical Algorithm
- Adiabatic Model
- Formulation
- Boundary and Initial Conditions
- Details of Numerical Algorithm
- Deterministic and Noisy Simulations
- Noise Generation
- Network Configuration
- Initial Conditions
- Types of Boundary Conditions
- Compressors and Gas Withdrawal Nodes.
- Temporal data file:
The files named temporal_pressure.txt and temporal_flux.txt are generated in the course of the
simulation. They mark the pressure
- Spatial data file:
The directories named pipe_ NUMBER will be created in the directory where the code is run. The files contain the gas pressure (MPa) and gas flux (kg/m^2/s) sampled on a uniformly spaced grid for the pipe NUMBER. The time of the sampling is written in the header of each of the files.
- Linux Installation
- Windows Installation