.. _batteries: Battery example =============== This example shows a simple battery use case in an EMPS simulation. The battery functionality of the EMPS is documented here: :ref:`batteries-included`. In the example, we have a small power system with a battery. In the figure a sketch of the system is provided, showing three interconnected areas. .. image:: batteries.excalidraw.png :alt: Battery connected to TEV and Numedal :align: center The area TEV has aggregated hydro power, Numedal has detailed hydro power and Battery is the battery area. An overview of the hydro power and battery specification is provided in the figure. The load in the system have simple seasonal variations, high load in the winter, low in the summer and medium load in the spring and fall. Stochastic inflow with 8 scenarios with seasonal variations, low in the winter, medium in the fall and high during spring and summer. The time resolution is set to 3 hours per time-step (prisavsnitt). Input file ---------- All detailes of the system can be found in the busbar_battery.json file below. Note that when using the LTM-API the previous requirement of equality of timestamps on the :ref:`break_point_series` for "exogenous_endvalue", "charging_cost", "max_charging_power" and "charging_efficiency" is removed. See busbar_battery.json example below. The LTM-API joins all timestamps of the mentioned break-point time-series and creates the battery.h5-file (with the required array dimensions). See the battery documentation for more details: :ref:`batteries-included`. .. collapse:: Expand to see full JSON listings. .. literalinclude:: busbar_battery.json :language: JSON :linenos: Results ------- The link below takes you to a (static) notebook where LTM-API have been run using the busbar_battery.json file as input. The notebook contains the result from the EMPS show in a set of figures. .. toctree:: :maxdepth: 1 :glob: batteries-notebook.ipynb * :download:`busbar_battery.json `