spice_ev
Simulation Program for Individual Charging Events of Electric Vehicles
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 14 committers (7.1%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.4%) to scientific vocabulary
Keywords from Contributors
Repository
Simulation Program for Individual Charging Events of Electric Vehicles
Basic Info
- Host: GitHub
- Owner: rl-institut
- License: mit
- Language: Python
- Default Branch: dev
- Size: 2.67 MB
Statistics
- Stars: 27
- Watchers: 8
- Forks: 9
- Open Issues: 21
- Releases: 3
Metadata Files
README.md
SpiceEV - Simulation Program for Individual Charging Events of Electric Vehicles
Simulation program to generate scenarios of electric vehicle fleets and simulate different charging strategies.
Introduction
SpiceEV is a program to simulate different charging strategies for a defined set of vehicles and corresponding trips to and from charging stations. The output shows load profiles of the vehicle battery, the corresponding charging station, the grid connector as well as the electricity price and, if applicable, stationary batteries. Each vehicle is by default connected to a separate charging station. All charging stations of one location can be connected to one grid connector with a defined maximum power. Some charging strategies only allow for one grid connector, please check charging strategies for more information.
The first step of SpiceEV is to generate a scenario.json. The scenario.json contains information about the vehicles and their specific attributes (e.g. battery capacity, charging curve, etc.) as well as their trips from and to a specific charging station (so-called vehicle events). Further, the charging stations attributes, such as its maximum power, the attached grid connector and the according electricity price are defined. Depending on the scenario, a certain foresight can be applied for grid operator signals. If applicable, stationary batteries with according capacities and c_rates can be defined and fixed load profiles or local generation time series attached to a grid connector can be imported from CSV files. The input scenario.json can be generated by one of the generate scripts.
Documentation
The full documentation can be found here
Installation
Clone this repository. SpiceEV just has an optional dependency on Matplotlib. Everything else uses the Python (>= 3.6) standard library.
To install spice_ev as a package run:
sh
pip install -e .
Run Examples
In order to run a simulation with simulate.py a scenario JSON has to be generated first using generate.py.
For this three modes are available:
statisticsGenerate a scenario JSON with trips from statistical input parameters.csvGenerate a scenario JSON with trips listed in a CSV.simbevGenerate a scenario JSON from SimBEV results.
Show all command line options:
sh
python generate.py -h
python simulate.py -h
Quick Start
Generate a scenario and store it in a JSON. By default, the mode statistics is used.
sh
python generate.py --output scenario.json
Run a simulation of this scenario using the greedy charging strategy and show
plots of the results:
sh
python simulate.py scenario.json --strategy greedy --visual
Using Configuration Files
There are example configuration files in the folder examples. The required input/output must still be specified manually:
sh
python generate.py --config examples/configs/generate.cfg
python simulate.py --config examples/configs/simulate.cfg
Generating Scenarios
Generate a 7-day scenario with 10 vehicles of different types and 15 minute timesteps:
sh
python generate.py --days 7 --vehicles 6 golf --vehicles 4 sprinter --interval 15 --output scenario.json
Including external Timeseries
Include a fixed load in the scenario:
sh
python generate.py --include-fixed-load-csv fixed_load.csv --output scenario.json
Please note that included file paths are relative to the scenario file location. Consider this directory structure:
sh
├── scenarios
│ ├── price
│ │ ├── price.csv
│ ├── my_scenario
│ │ ├── fixed_load.csv
│ │ ├── scenario.json
The file fixed_load.csv is in the same directory as the scenario.json, hence no relative path is specified.
To include the price and fixed load timeseries:
sh
python generate.py --include-price-csv ../price/price.csv --include-fixed-load-csv fixed_load.csv --output scenario.json
Adding a Schedule to a Scenario
Calculate and include schedule:
sh
python generate_schedule.py --scenario scenario.json --input examples/data/grid_situation.csv --output schedules/schedule_example.csv
Integrating SimBEV
SpiceEV supports scenarios generated by the SimBEV tool. Convert SimBEV output files to a SpiceEV scenario:
sh
python generate.py simbev --simbev /path/to/simbev/output/ --output scenario.json
License
SpiceEV is licensed under the MIT License as described in the file LICENSE
Owner
- Name: Reiner Lemoine Institut
- Login: rl-institut
- Kind: organization
- Location: Berlin/Germany
- Website: http://www.reiner-lemoine-institut.de
- Repositories: 78
- Profile: https://github.com/rl-institut
GitHub Events
Total
- Watch event: 1
- Delete event: 3
- Issue comment event: 1
- Push event: 11
- Pull request event: 2
- Pull request review event: 3
- Create event: 2
Last Year
- Watch event: 2
- Delete event: 3
- Issue comment event: 1
- Push event: 11
- Pull request event: 2
- Pull request review event: 3
- Create event: 2
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| stefan.schirmeister | s****r@l****e | 563 |
| Piranias | i****h@r****e | 220 |
| Jakob Gemassmer | J****r@r****e | 144 |
| Paul Boehnke | p****e@r****e | 135 |
| TabeaMaria | t****u@g****m | 78 |
| Johannes Hofmann | m****l@b****g | 56 |
| jtm91 | j****1@m****e | 35 |
| Moritz Schiel | m****l@g****t | 24 |
| nesnoj | j****e@r****e | 13 |
| leon-rli | l****h@r****e | 5 |
| Paul Böhnke | R****e@r****l | 3 |
| paul.scheer | P****r@r****e | 2 |
| stefansc1 | 3****1 | 2 |
| Paul | p****e@o****e | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 49
- Total pull requests: 91
- Average time to close issues: 5 months
- Average time to close pull requests: 17 days
- Total issue authors: 8
- Total pull request authors: 8
- Average comments per issue: 0.69
- Average comments per pull request: 0.21
- Merged pull requests: 83
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 4
- Average time to close issues: N/A
- Average time to close pull requests: 27 days
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- jakobgemassmer (24)
- Piranias (13)
- j-ti (6)
- j-brendel (2)
- mosc5 (1)
- nesnoj (1)
- stefansc1 (1)
- paulboehnke (1)
Pull Request Authors
- stefansc1 (61)
- jakobgemassmer (12)
- j-ti (7)
- TabeaMaria (6)
- paulboehnke (5)
- Piranias (4)
- mosc5 (2)
- PaulScheerRLI (2)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v2 composite
- actions/setup-python v2 composite
- sphinx >=1.4.3
- sphinx_rtd_theme *