gtopt/gas_node.hpp file

Natural-gas network node (squared pressure + gas balance).

A GasNode carries, per block, the squared pressure π = p² [bar²] bounded by [pmin², pmax²] and a gas balance row [km³/h] whose dual is the nodal gas price [$ / km³]. Pipes, compressors, supplies, demands and gas turbines stamp their flows into the balance.

pressure_cost [$ / (bar² h)] prices π in the objective. A tiny negative value (e.g. −1e-4) is the "pressure tie-break": among the LP-optimal dispatches it selects the highest pressure profile, i.e. the pressures of the exact Weymouth equation from the sources down, instead of an arbitrary degenerate vertex at pmin.

JSON example

{"uid": 1, "name": "S", "pmin": 30, "pmax": 70, "p_init": 70,
 "pressure_cost": -1e-4}

Namespaces

namespace gtopt

Classes

struct gtopt::GasNode
Gas-network node with a squared-pressure column and a balance row.