gtopt::GasNode struct

Gas-network node with a squared-pressure column and a balance row.

Public static variables

static LPClassName class_name
Canonical class name (LP labels, outputs, PAMPL gas_node).

Public variables

OptActive active
Activation status (default: active).
OptReal elevation
Name name
Human-readable name.
OptReal p_init
OptTRealFieldSched pmax
Maximum pressure [bar abs] per stage. Unset = unbounded π.
OptTRealFieldSched pmin
Minimum pressure [bar abs] per stage. Default 0.
OptTRealFieldSched pressure_cost
OptName type
Optional tag ("city_gate", "plant", "junction", …).
Uid uid
Unique identifier.

Variable documentation

OptReal gtopt::GasNode::elevation

Elevation above the datum [m] (default 0): enters the pipe equation of the attached pipes through e^s.

OptReal gtopt::GasNode::p_init

Initial pressure [bar abs]: sets the initial line pack of the pipes attached to this node.

OptTRealFieldSched gtopt::GasNode::pressure_cost

Objective coefficient of π [$ / (bar² h)]. Negative = reward (pressure tie-break). Default 0.