You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function will return the power flow series from system to load/grid and
315
313
from grid to load/system:
316
314
317
315
.. ipython:: python
318
316
319
-
from pvlib.powerflow import self_consumption
320
-
321
317
@savefigpower_flow_self_consumption_load.png
322
-
power_flow.groupby(power_flow.index.hour).mean()[["System to load", "Grid to load"]].plot.bar(stacked=True, xlabel="Hour", ylabel="Power (W)", title="Average power flow to load")
318
+
self_consumption_flow.groupby(self_consumption_flow.index.hour).mean()[["System to load", "Grid to load"]].plot.bar(stacked=True, xlabel="Hour", ylabel="Power (W)", title="Average power flow to load")
323
319
@suppress
324
320
plt.close()
325
321
326
322
@savefigpower_flow_self_consumption_system.png
327
-
power_flow.groupby(power_flow.index.hour).mean()[["System to load", "System to grid"]].plot.bar(stacked=True, xlabel="Hour", ylabel="Power (W)", title="Average system power flow")
323
+
self_consumption_flow.groupby(self_consumption_flow.index.hour).mean()[["System to load", "System to grid"]].plot.bar(stacked=True, xlabel="Hour", ylabel="Power (W)", title="Average system power flow")
328
324
@suppress
329
325
plt.close()
330
326
@@ -350,34 +346,58 @@ following assumptions:
350
346
- The load is provided with power from the system, when possible
351
347
352
348
- When the system is unable to provide sufficient power to the load, the
353
-
battery will try to fill the load requirements
349
+
battery may try to fill the load requirements, if the dispatching activates
350
+
the discharge
354
351
355
352
- When both the system and the battery are unable to provide sufficient power
356
353
to the load, the grid will fill the load requirements
357
354
358
-
- When the system produces more power than the required by the load, it will be
359
-
fed to the battery
355
+
- When the system produces more power than the required by the load, it may be
356
+
fed to the battery, if the dispatching activates the charge
360
357
361
-
- When the excess power cannot be fed into the battery, it will be fed into the
362
-
grid
358
+
- When the excess power from the system (after feeding the load) is not fed
359
+
into the battery, it will be fed into the grid
363
360
364
361
- The grid will provide power to the system if required (i.e.: during night
365
362
hours)
366
363
367
-
For this use case, you need to provide, appart from the well-known generation
368
-
and load profiles, the battery parameters and battery model simulation
369
-
function:
364
+
For this use case, you need to start with the self-consumption power flow
flow.groupby(flow.index.hour).mean()[["System to load", "Battery to load", "Grid to load"]].plot.bar(stacked=True, legend=True, xlabel="Hour", ylabel="Power (W)", title="Average power flow to load")
0 commit comments