Skip to main content

A simple simulator for household profiles.

Project description

HouseholdSim

This is pseudo simulator to serve residual load profiles to mosaik.

Installation

$ pip install mosaik-householdsim

You can run the tests with:

$ hg clone https://bitbucket.org/mosaik/mosaik-householdsim
$ cd mosaik-householdsim
$ pip install -r requirements.txt
$ py.test

Documentation

This simulator consists of a a model (householdsim/model.py) and the mosaik API implemenation (householdsim/mosaik.py).

The model processes the data from a NumPy *.npz file (see householdsim/test/test_model.py for an example of its layout). Basically, the file contains a number of load profiles for a given period of time. It also contains ID lists that describe which load profile belongs to which node ID in a power grid. The first entry in an ID list relates to the first entry of the profiles list, the second entry in the ID list to the second load profile and so on. If the number of entires in the ID list is larger than the number of load profiles, we start again with the first load profile.

Internally, the model works with minute. Since mosaik is based on seconds, the mosaik API implementation converts between them.

Usually, residual load profiles have a resolution of 15 minutes. It is no problem for this simulator to step in 1 minute steps, though.

Changelog

2.0.2 – 2014-09-22

  • [CHANGE] Updated to mosaik-api 2.0.

2.0.1 – 2014-06-26

  • [CHANGE] Adopted latest changes of the mosaik low-level API.

2.0 – 2014-03-26

  • Updated API implementation for mosaik2.

1.0 – 2014-01-30

  • Initial release.

Authors

The household simulator was created by Stefan Scherfke and Ontje Lünsdorf.

Project details


Download files

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

Source Distribution

mosaik-householdsim-2.0.2.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

mosaik_householdsim-2.0.2-py2.py3-none-any.whl (9.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mosaik-householdsim-2.0.2.tar.gz.

File metadata

File hashes

Hashes for mosaik-householdsim-2.0.2.tar.gz
Algorithm Hash digest
SHA256 796a19081e8400b6e942cf9f8ae238514c35115415d1b98b5698e35c2d1b390e
MD5 ee9e92e533bcf683c59fec5fe5f57ad9
BLAKE2b-256 8a7c554be28b8118a8e8ccace0cafe7bc954566c5235afc93ed24653c7453eae

See more details on using hashes here.

Provenance

File details

Details for the file mosaik_householdsim-2.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mosaik_householdsim-2.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dfbf2a50b1698b5565e04e7b3923bfe08f0d2ed82af9e0eee4a423ccd48bbdca
MD5 e292b233c06bb35a7226529c57fbee7c
BLAKE2b-256 7c2480433ff5a906b39859f6ed1ab9e532524a2fbd3da041f6cddd77f4456b6b

See more details on using hashes here.

Provenance

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