DHNx icon indicating copy to clipboard operation
DHNx copied to clipboard

Integration of Prosumer in DHNx

Open Afraz85 opened this issue 3 years ago • 3 comments

Can we integrate prosumer as well ? A consumer can become at certain moment prosumer, while giving the energy to network like producer is doing. If we made the changes in consumer.csv will it work?

Afraz85 avatar Jun 13 '22 15:06 Afraz85

Do you refer to the simulatio or optimization part of DHNx? In the simultion, this is not possible at the moment. In the optimization appraoch, it should be possible, but you should try to make prosumer out of the producers by adding a demand.csv. For the consumers, directed "heatpipelines" are created at the consumers connection, so this will not work. Please see here:

https://dhnx.readthedocs.io/en/latest/optimization_models.html#investment-and-additional-options

Would be interesting to hear your feedback if it works.

joroeder avatar Jun 17 '22 14:06 joroeder

If that does not work, you can also retrieve the oemof solph energy system and then you are able to use everything possible within oemof.solph, and add components etc.:

dhnx_opti_model = dhnx.optimization_models.setup_optimise_investment(
    thermal_network=your_thermal_network,
    invest_options=your_investment_options_dict,
    # **settings
)

oemof_solph_energy_system = dhnx_opti_model.es

joroeder avatar Jun 17 '22 15:06 joroeder