Skip to main content

The library aims to provide a simple way to create individual consumer loads, generation.

Project description

Welcome to consmodel library 👋

pypi Python Version

!!! Warning: the library is active and the functionalities are being added on weekly basis, some functionalities will also change !!!

The library aims to provide a simple way to create individual consumer loads and generation. The main idea of the library is to be able to easily create consumption or generation power consumption profiles.

The library is a centralised modelling tool that implements the following consumption/generation consumptions:

  • pure consumption model,
  • solar plant model,
  • heat pump model,
  • electric vehicle modelling,
  • possibly other models...

The main idea of the library is to be able to easily create consumption or generation power consumption profiles.

🏠 Homepage

Install

pip3 install consmodel

Usage

PV model

   from consmodel import PV
   import pandas as pd
   import numpy as np
   import matplotlib.pyplot as plt

   # create a simple PV model
   pv = PV(lat=46.155768,
           lon=14.304951,
           alt=400,
           index=1,
           name="test")
   timeseries = pv.simulate(pv_size=14.,
                            year=2022,
                            freq="15min",
                            model="ineichen",
                            consider_cloud_cover=True)
   # plot the results
   timeseries.plot()
   plt.show()

BS model

   from consmodel import BS
   import pandas as pd
   import numpy as np
   import matplotlib.pyplot as plt

   # create a simple PV model
   test_consumption = [0.,-3.,-2.,8.,7.,6.,7.,8.,5.,4.,-2.]
   test_consumption_df = pd.DataFrame({"p": test_consumption},
                  index=pd.date_range("2020-01-01 06:00:00",
                                       periods=11,
                                       freq="15min"))
   batt = BS(lat=46.155768,
             lon=14.304951,
             alt=400,
             index=1,
             st_type="10kWh_5kW")
   timeseries = batt.simulate(control_type="installed_power",
                              p_kw=test_consumption_df)
   # plot the results
   timeseries.plot()
   plt.show()

Author

👤 Blaž Dobravec

Colaborated:

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

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

consmodel-0.0.9.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

consmodel-0.0.9-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file consmodel-0.0.9.tar.gz.

File metadata

  • Download URL: consmodel-0.0.9.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for consmodel-0.0.9.tar.gz
Algorithm Hash digest
SHA256 da00f1650305b97cbe1f2cd98e5ade7d92ca5600c7aff814bc275661a0a3d5e2
MD5 50fad5665e7f9e32b4547ec63618eb66
BLAKE2b-256 b30173761b74db4ced31db402aeec40d5c08b5017d17f3f27dd9c1f07360d92c

See more details on using hashes here.

File details

Details for the file consmodel-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: consmodel-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for consmodel-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 fda1472e476b139946075affffb471ec5058612dea205d0b797e6b1463804784
MD5 c311d922a61ee9eabf813be308cb60ab
BLAKE2b-256 2e18cc36b797956c0672bdc914a14c19eff3dfeae4f91087351531e7ebed708a

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