This merge brings the basic components for the storage simulator. The components are here. You can add the battery block or display the list of loaded batteries blocks.
This merge contains the demo of calculation of the whole bilance in network. It is kind of "not optimized", but it shows the steps in the calculation and possible use of the created libraries. The example is here. The example has lots of comments so it does not need to repeat it here.
The basic steps in this example are:
graph TD
A(Get PVE Day Energy)--> C
B(Get Consumption Based TDD)
B --> C(Calc Consumption Covered by PVE)
C --> D(Calc Rest of PVE Over produced energy)
D --> E(Calc Possible stored and used energy)
E --> F(Calc Stats of Day)
output data with day network bilance (day per line, 24 cols of h bilance per day)
output total day stats (day per line)
configuration file of eGrid with created all blocks for specified simulation
The output blocks in final output grid config consists of:
PVE Created blocks (per each hour one)
Consumption blocks (per each hour one based on TDD)
Storage "Stored" blocks from PVE source
Storage "Created" blocks which simulates source to netwrok to cover consumption
The algorithm is not optimized, same as load of the blocks from config. For whole year simulation it will take ages to load it in todays ui block time graph. There are blocks for each hour in day in year for consumption and production and partilally for storage too. There are ways how to optimized it. but for day simulations it will be fast enough even now.
This merge brings the basic components for the storage simulator. The components are here. You can add the battery block or display the list of loaded batteries blocks.
The storage is connected to the PVESimulation Day graph. The charging is done by function which keeps loaded value inside of BatteryBlocksHandler. The discharge is calculated by function which calculate values just for some set of data (usually one day). It expect to load the previous state of load in battery in function. This example does not load it yet. The graph lines of storage are divided by 10 to keep suitable ratio to PVE production. This should be done somehow properly :D, but even that, the results are nice to see:
This merge contains the demo of calculation of the whole bilance in network. It is kind of "not optimized", but it shows the steps in the calculation and possible use of the created libraries. The example is here. The example has lots of comments so it does not need to repeat it here.
The basic steps in this example are:
Simulation load as parameters the filenames of TDD, and configs for Grid, PVE and BatteryStorage (you can use the samples in Demo.Energy). The TDD data input was taken from here. It was exported from MS Excel to csv, removed mess to keep just data (checkthe example here). Here you can set the startdate. Here you can set the length of the simulation. If you set some date for simulation be sure you have prepared TDD data for same date range as input.
The output are three files:
The output blocks in final output grid config consists of:
The algorithm is not optimized, same as load of the blocks from config. For whole year simulation it will take ages to load it in todays ui block time graph. There are blocks for each hour in day in year for consumption and production and partilally for storage too. There are ways how to optimized it. but for day simulations it will be fast enough even now.