calliope icon indicating copy to clipboard operation
calliope copied to clipboard

Feature EV integration

Open alicestamp opened this issue 5 years ago • 2 comments

Summary of changes in this pull request:

  • Created new tech group "storage_plus" to allow EVs (incl. V2X) to be modelled as part of energy system
  • 5 new input constraints similar to those in storage and conversion_plus tech groups
  • 2 new lookup tables for storage_plus carriers and storage time
  • 8 new sets
  • 5 new pyomo constraints (and constraint sets)
  • Minor edits to other code to make new tech_group compatible
  • To do: fix bug in storage_plus_time_constraint
  • To do: add tests for storage_plus results
  • To do: add error messages and warnings

Reviewer checklist:

  • [ ] Test(s) added to cover contribution
  • [ ] Documentation updated
  • [ ] Changelog updated
  • [ ] Coverage maintained or improved

alicestamp avatar Mar 02 '20 09:03 alicestamp

Thanks for the PR @alicestamp !

To make Hound happy, I would suggest updating your VSCode settings to automatically remove trailing whitespace, e.g.:

image

brynpickering avatar Mar 02 '20 10:03 brynpickering

Could you pls. give an example how to use your enhancements ? Could you explain the usecases that are work ?

    ##EV
    ev:
        essentials:
            name: 'Electric Vehicle'
            color: '#8E2999'
            parent: conversion
            carrier_in: electricity
            carrier_out: electricity_ev
        constraints:
            energy_eff: 1
            lifetime: 25

            units_max: 10
            energy_cap_per_unit: 8000
            energy_cap_min_use: 0.5

        costs:
            monetary:
                energy_cap: 0
                interest_rate: 0.10

    ev_bat:
        essentials:
            name: 'ev_bat'
            color: '#3BFFFF'
            parent: storage
            carrier: electricity_ev
        constraints:
            energy_cap_max: 14800  # kW
#            energy_cap_min_use: 0.8

            storage_cap_max: 80000
            energy_eff: 1  # 0.95 * 0.95 = 0.9025 round trip efficiency
            storage_loss: 0.02  # No loss over time assumed
            lifetime: 25
        costs:
            monetary:
                interest_rate: 0.11
# 

    ev_demand:
        essentials:
            name: 'ev_demand'
            color: '#FF2486'
            parent: demand
            carrier: electricity_ev
    ##EV

My Use Case:

  • in the end of the day i would like to have the ev loaded with an fixed energy (7kWh)
  • supplied by the sun or cheapest supply
  • the car has an minimal power for loading
  • the car has an maximal power for loading

lblabr avatar Nov 29 '20 09:11 lblabr

I'm hoping we can re-write this in the new YAML math syntax @alicestamp. Until then, I'm going to close this pull request.

brynpickering avatar Feb 28 '24 15:02 brynpickering