Skip to main content

Time series for battery electric vehicles modeling

Project description

emobpy Status Badge emobpy Python Versions emobpy license Code DOI Dataset DOI emobpy pypi downloads Use our chat for issues

emobpy is a Python tool that can create battery electric vehicle time series. Four different time series can be created: vehicle mobility time series, driving electricity consumption time series, grid availability time series and grid electricity demand time series. The vehicles mobility time series are created based on mobility statistics. For driving electricity consumption time series, the properties of vehicles can be selected from a database with several actual battery electric vehicles models. emobpy is developed by the research group Transformation of the Energy Economy at DIW Berlin (German Institute of Economic Research).

Change log:

v0.6.1 (2021-12-02)

  • Fix: Availability class had an inadequate allocation of states (locations), causing faulty availability and charging time-series.

  • Fix: Add seed to a random number generator (get_seed(seed)).

  • Improved message for short hours time series that may cause empty time series.

v0.6.0 (2021-12-01)

  • Implemented 1-minute time-step (see template eg3)

  • Implemented 1-second time-step (see template eg4)

  • Added average power in W per time-step for driving consumption time-series

  • Added instant power in W per time-step for driving consumption time-series

  • Improved logging. Now the logging is done in a file, while the console can be suppressed

  • Results can be exported to “DIETERpy” https://diw-evu.gitlab.io/dieter_public/dieterpy/

  • Results can be exported to “SimSES” https://www.ei.tum.de/ees/simses/

Announcement

We want to organize an online event to discuss emobpy and its use in the energy field. Please, help us by answering the survey before 13 February 2022. https://carlosgaete.com/survey/

communication channels

In order to start a discussion, please use the following channels:

Instructions

This tool has been tested in window 7, Ubuntu 18.04, Ubuntu 19.04 and Suse Linux. It is recommended to install the package in an dedicated Python environment with Python version 3.6+.

Installation:

pip install emobpy

Usage

You can use our project template. It is a folder that contains files with mobility probabilities, assumptions in a rules file and python scripts that show different python classes and functions to start generating the time series. To get a copy of the template folder, we create a project folder. For instance, as shown below, our project name is my_evs.

emobpy create -n my_evs

Then by using the command line, we access to project folder my_evs:

cd my_evs

We can run the python script that enables us to generate examples of time series.

python Step1Mobility.py

read the instruction file in my_evs folder

Jupyter notebook offers a more interactive learning. You can open the Time-series_generation.ipynb by running jupyter in your console.

jupyter notebook

In the example section of the documentation, the code is clearly explained. Go directly to the example here.

Remove library:

pip uninstall emobpy

Authors

The developers are Carlos Gaete-Morales (lead) and Lukas Trippe.

Description

Vehicle mobility time series

The vehicle mobility time series contains the location of a vehicle at each point in time. The locations vary according to the mobility of drivers. Possible locations are at home, workplace, shopping, errands, escort, leisure, or driving. When “Driving”, the distance travelled is also provided in the time series. The time resolution can be established initially (our examples contains 15 minutes time steps). The daily number of trips, the departure time, the trip purpose, distance travelled, and duration of the trips are determined based on statistics of mobility surveys. Other considerations can also be set up. For instance, the number of working hours per day, the first and last destination of the day, can be established as “at home”. The “driving” will always be placed in between two different locations.

Driving electricity consumption time series

The previous time series is used as input to the creation of driving electricity consumption time series. The energy required for every trip is calculated based on the ambient temperature and traction effort for the vehicle’s movement. To simulate the travel conditions, driving cycles are taken into account. The tool counts with battery electric vehicle models that are currently in the market. A vehicle’s model has to be selected to include the model’s parameters and characteristics.

Grid availability time series

Grid availability time series consists of taking a driving electricity consumption time series and based on the locations. The model assigns charging stations. Different charging stations can be available for a vehicle, and they are chosen based on a probability distribution that adds up 100% for each location. The charging stations defined in this tool are “home”, “public”, “maker”, “workplace”, “fast” and “none”, although more user-defined charging stations can be established. The charging stations have an associated capacity per time interval, and “none” has zero capacity. Different scenarios of grid availability can be modelled.

Grid electricity demand time series

While a grid availability time series contains at each interval information of the charging stations available, such as the maximum power rating allocated to them, a grid electricity demand time series is the one that indicates the actual consumption of electricity from the grid to charge the battery of a vehicle according to its driving needs and grid availability. There are different options available to create a grid electricity demand time series. For example, “Immediate-Full capacity” is an option that informs the energy drawn from the grid at a maximum power rating of a respective charging station until the battery is fully charged or “Immediate-Balanced” option that creates a time series taking into account the duration of a vehicle is connected to a charging station and the energy required to get the battery fully charged, allowing to charge the battery at a lower capacity than the maximum capacity available.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

emobpy-0.6.2-py2.py3-none-any.whl (349.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file emobpy-0.6.2-py2.py3-none-any.whl.

File metadata

  • Download URL: emobpy-0.6.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 349.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for emobpy-0.6.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ff81d31016d4c4108ca21a6a3f5afb502144efc0650773d6401663494c46ade4
MD5 308117c10728254f010af613f326032c
BLAKE2b-256 3e4abba09e483b4ee3a4f556b3e8bb12cceadcc1bf03c9dbafa2314fd05539f8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page