Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion examples/02_Complex/complex_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@
)
],
)
# 5.b) Electricity demand profile
electricity_load = fx.Sink(
'electricity_load',
inputs=[
fx.Flow(
'P_el_Last', # Electricity load
bus='Strom', # Linked bus
size=1,
fixed_relative_profile=electricity_demand, # Fixed demand profile
)
],
)

# 5.b) Gas tariff
Gasbezug = fx.Source(
Expand Down Expand Up @@ -184,7 +196,7 @@

# --- Build FlowSystem ---
# Select components to be included in the flow system
flow_system.add_elements(Costs, CO2, PE, Gaskessel, Waermelast, Gasbezug, Stromverkauf, speicher)
flow_system.add_elements(Costs, CO2, PE, Gaskessel, Waermelast, electricity_load, Gasbezug, Stromverkauf, speicher)
flow_system.add_elements(bhkw_2) if use_chp_with_piecewise_conversion else flow_system.add_elements(bhkw)

print(flow_system) # Get a string representation of the FlowSystem
Expand Down
Loading