A connection point where energy or material flows meet. Acts as a junction that enforces flow balance (inputs = outputs). Examples: heat network, electricity grid, gas bus.
Flow
Movement of energy or material between a component and a bus. Has a direction (into or out of component), a size (capacity), and a flow_rate (actual power at each timestep).
Component
Physical or logical element that transforms, stores, or transfers flows. Connects to buses via flows.
Carrier
Type of energy or material (electricity, heat, gas, water). Assigned to buses for semantic organization and automatic plot coloring.
Effect
Any measurable metric to track or optimize (costs, CO2 emissions, energy use). One effect is the objective (minimized/maximized), others can be constrained or tracked.
FlowSystem
The complete model container. Holds all buses, components, flows, effects, and the time definition. Entry point for optimization and result access.
The basic time resolution of the model. A sequence of time points (e.g., hourly for one year = 8760 timesteps). All variables are indexed over timesteps.
timestep_duration
Length of each timestep in hours. Used to convert between power (kW) and energy (kWh). Inferred from the datetime index if not specified.
period
Long-term planning horizon dimension. Multiple periods enable multi-year investment planning (e.g., 2025, 2030, 2035). Each period has its own investment decisions.
scenario
Uncertainty dimension representing different futures (e.g., weather scenarios, price scenarios). Operations vary per scenario; investments are typically shared across scenarios.
cluster
Aggregation dimension used when time-series clustering is applied. Represents typical periods that stand in for many similar original periods.
Decision variable: actual power/flow at each timestep [kW, m3/h]. Bounded by the flow's size.
size
Capacity or nominal rating of a flow [kW, m3/h]. Can be fixed (scalar), unbounded (None), or an investment decision (InvestParameters). In the solution, all investment variables use the |size suffix.
capacity_in_flow_hours
Storage capacity parameter [kWh, m3]. Distinct from flow size (which is power-based). In the solution, storage capacity is also accessed via |size for consistency with other investment variables.
charge_state
Storage variable: current amount stored [kWh, m3]. Evolves based on charging/discharging flows. Also called SOC (State of Charge) in energy system contexts.
status
Binary variable indicating whether equipment is operating (1) or off (0) at each timestep. Enabled via StatusParameters.
conversion_factor
Linear multiplier between input and output flows in a LinearConverter. Can be time-varying. Related to but not identical to efficiency.
efficiency
Ratio of useful output to input. For LinearConverter: output = efficiency * input. For Storage: eta_charge and eta_discharge.
Probability or importance of each scenario. Temporal effects are weighted by scenario weight in the objective. Default: equal weights, normalized to sum to 1.
period_weight
Importance/duration of each period. Computed automatically from period index intervals. Used for multi-year cost aggregation.
cluster_weight
Number of original periods each cluster represents. Used to scale clustered results to full resolution.