GasFlow
Graph-based models for gas pipeline systems, as well as algorithms to simulate and control gas propagation. Supports Anaconda and GasLib file formats.
Install / Use
/learn @magross/GasFlowREADME
GasFlow
Graph-based models for gas pipeline systems, with some functionality for water and power grids. Contains data structures, input/output functionality, algorithms to simulate and control gas propagation, and preprocessing to reduce the size of gas/water/power networks to speed up the application of MILP/MINLP solvers.
The preprocessing exploits the fact that generalized series-parallel graphs can easily be compressed into simpler structures (in some situations to a single edge).
File Formats
GasFlow supports the XML-based file formats from GasLib, Anaconda XML, GML, DAT and GMSDAT support. The corresponding classes can be found in the gas/io/gaslib, gas/io/anaconda, gas/io/gml and gas/io/water packages.
Visualization
Networks can be visualized as vector-graphics using PGF/TikZ. The support for this feature is located in gas/io/tikz
Graph Generators
For testing purposes, this project includes generators for generalized series-parallel graphs in the ds.graph.generator package.
Size Reduction by Bound Propagation
The size reduction of the instances exploits structures of the graphs which are generalized series-parallel (which occurs often in reality in the kind of networks that we are considering), and propagates bounds through the network. The result is an reduction of the instance size of up to 76%.
Related Skills
openhue
351.8kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
351.8kElevenLabs text-to-speech with mac-style say UX.
weather
351.8kGet current weather and forecasts via wttr.in or Open-Meteo
casdoor
13.3kAn open-source AI-first Identity and Access Management (IAM) /AI MCP & agent gateway and auth server with web UI supporting OpenClaw, MCP, OAuth, OIDC, SAML, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA, Face ID, Google Workspace, Azure AD
