gtopt::GasCompressor struct

Compressor station between two gas nodes.

Public static variables

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

Public functions

auto drive_enum() const -> std::optional<GasCompressorDrive> noexcept
Parsed drive (gas when unset, nullopt = unknown).
auto fuel_model_enum() const -> std::optional<GasCompressorFuelModel> noexcept

Public variables

OptActive active
Activation status (default: active).
OptBool allow_bypass
OptReal alpha
Saldarriaga α (default (κ − 1)/κ = 0.2308).
OptBool bidirectional
OptSingleId bus
Power bus of an electric drive.
OptName drive
"gas" (default) or "electric".
OptReal driver_efficiency
Driver (gas turbine) efficiency η_driver (default 0.33).
OptReal efficiency
Isentropic compressor efficiency η_c (default 0.80).
OptTRealFieldSched fmax
Throughput capacity [km³/h] per stage. Required.
OptReal fuel_fraction
Fixed fuel fraction γ_ff [p.u. of throughput].
OptName fuel_model
"none", "fixed_fraction" (default) or "saldarriaga".
OptReal gamma
Saldarriaga γ. Unset = adiabatic-head value.
SingleId gas_node_in
Suction node.
SingleId gas_node_out
Discharge node.
OptReal max_ratio
Maximum pressure ratio β̄ = p_out / p_in (default 1: no boost).
OptReal motor_efficiency
Motor efficiency of an electric drive (default 0.95).
Name name
Human-readable name.
OptReal op_flow
Operating-point flow Ψ0 [km³/h] (default 0.6 fmax).
Array<Real> op_ratio
OptReal op_suction_pressure
Operating-point suction pressure [bar] (default mid suction band).
OptReal power_max
Electric drive rating [MW]. Unset = unbounded.
OptName type
"transmission", "fuel_gas_booster", …
Uid uid
Unique identifier.

Function documentation

std::optional<GasCompressorFuelModel> gtopt::GasCompressor::fuel_model_enum() const noexcept

Parsed fuel_model (fixed_fraction when unset, nullopt = unknown).

Variable documentation

OptBool gtopt::GasCompressor::allow_bypass

Allow π_out < π_in (bypass / regulator). Default false for saldarriaga, true otherwise.

OptBool gtopt::GasCompressor::bidirectional

Open valve with signed flow in [−fmax, fmax] and π_out = π_in (meshed networks). Requires max_ratio 1 and fuel_model "none"; compressors stay fixed-direction. Default false.

Array<Real> gtopt::GasCompressor::op_ratio

Operating-point ratio(s) β0 (default 1 + (β̄ − 1)/2); one Taylor plane per value.