Physical models¶
monee uses steady-state models for each energy carrier. Select a tab to see the governing equations and key variables for that domain.
AC power flow
The standard nonlinear AC power-flow equations are used, with voltage magnitude V and voltage angle δ as the node decision variables.
Active and reactive power injected at bus i:
where G and B are the conductance and susceptance entries from the nodal admittance matrix Y.
Variable |
Symbol |
Unit |
|---|---|---|
Voltage magnitude |
V |
per unit |
Voltage angle |
δ |
radians |
Active power injection |
P |
MW |
Reactive power injection |
Q |
Mvar |
The MISOCP relaxation (MISOCP_NETWORK_FORMULATION) replaces the bilinear
voltage products with lifted variables and second-order cone constraints,
yielding a convex problem solvable globally by a MIQCP solver such as Gurobi
or HiGHS.
Weymouth pipe flow
Pressure drops along a gas pipe are governed by the Weymouth equation. Pressure is modelled as pressure-squared p² to keep the equation quadratic:
The pipe constant C encodes the physical properties of the pipe and gas:
where D is the inner diameter, L is the pipe length, T_gas is the gas temperature, and Z is the compressibility factor.
The Swamee–Jain approximation is used for the Darcy–Weisbach friction factor within the Weymouth constant. Gas density along each pipe is computed from the ideal-gas law using the average pressure between the two endpoints.
Variable |
Symbol |
Unit |
|---|---|---|
Pressure squared |
p² |
Pa² |
Mass flow |
ṁ |
kg/s |
Note: Using p² as the primary variable avoids the square root that would otherwise appear in a direct pressure formulation, keeping the problem structure quadratic and easier for NLP solvers.
Darcy–Weisbach hydraulic flow
Hydraulic pressure drops along water pipes follow the Darcy–Weisbach equation:
where the hydraulic resistance R_m is:
with f the friction factor (laminar approximation f = 64 / Re), L the pipe length, D the inner diameter, ρ the fluid density, and A the cross-sectional area.
Temperature propagation
The outlet temperature accounts for insulation losses and the ambient temperature:
The attenuation factor α depends on the UA product of the insulation layer and the specific heat capacity of water:
Variable |
Symbol |
Unit |
|---|---|---|
Node pressure |
p |
Pa |
Mass flow |
ṁ |
kg/s |
Inlet / outlet temperature |
T_in, T_out |
K |
External temperature |
T_ext |
K |