gtopt/gas_compressor.hpp file

Gas compressor station: ratio bounds in π + fuel model.

A GasCompressor moves gas from gas_node_in (suction) to gas_node_out (discharge), flow Ψ ∈ [0, fmax] km³/h, with

π_out ≤ max_ratio² · π_in            (ratio)
π_out ≥ π_in                          (no expansion, unless
                                       allow_bypass)

and one of three fuel models (fuel_model):

  • none — no fuel (a bypassed station: max_ratio = 1 and allow_bypass make it a lossless regulator);
  • fixed_fraction — LC = γ_ff Ψ; γ_ff = fuel_fraction or γ (max_ratio^α − 1) (the Saldarriaga fuel at the maximum ratio);
  • saldarriaga — LC ≥ c_Ψ Ψ + c_π (π_out − β0² π_in), the first-order Taylor plane in π of LC = γ (β^α − 1) Ψ at the operating point (op_flow, op_ratio, op_suction_pressure); several op_ratio values give one plane each (max of planes).

γ defaults to the adiabatic-head value from efficiency and driver_efficiency; α to (κ − 1)/κ = 0.2308.

drive: "gas" (default) draws LC from the suction node; drive: "electric" draws power = κ · LC MW from bus (κ = LHV · driver_efficiency / motor_efficiency), bounded by power_max.

JSON example

{"uid": 1, "name": "BOOSTER", "gas_node_in": "RL", "gas_node_out": "R",
 "fmax": 150, "max_ratio": 1.6, "fuel_model": "saldarriaga",
 "op_flow": 80, "op_ratio": [1.3], "op_suction_pressure": 25,
 "allow_bypass": true, "drive": "electric", "bus": "B",
 "power_max": 5}

Namespaces

namespace gtopt

Classes

struct gtopt::GasCompressor
Compressor station between two gas nodes.