Skip to main content

Project which shows the use of the SIMULTAN data model and Python for digital twins

Project description

Reproducible code and data for this publication Digital Twin applications using the SIMULTAN data model and Python

This repository contains the three packages CO2_Prediction, MonitoringFaker and SimultanCO2Prediction to calculate the trend of the CO2-concentration in a zone ventilated by windows with real-time data.

CO2_Prediction:

Classes and methods to calculate the CO2 concentration trend for a zone were implemented. The calculation of the trend is done with a simple analytical model, where the air flow rate is calculated as a function of the opening area and the temperature difference between the inside and outside according to OENORM B 8110-3. With the calculated air volume flow, the CO2-concentration inside and outside and the CO2-emission in the zone, the trend of the CO2-concentration can be calculated for constant boundary conditions. In addition, classes for a database and sensors were implemented using SQLalchemy, which can read and write the latest measured value of a sensor in a database. The measurements are then used as a boundary condition for the calculation of the CO2 concentration.

MonitoringFaker

Generate measurement values for sensors, which initializes the databases for the sensors in the imported project and writes artificially generated measurement values to the databases.

SimultanCO2Prediction

Package, which integrates the SIMULTAN data-model in the CO2_Prediction-package.

Installation

Install via pip:

pip install https://github.com/DerMaxxiKing/DigiTwin_CO2_SampleProject

This installs the packages CO2_Prediction, MonitoringFaker and SimultanCO2Prediction

Usage:

Run fake measurement generation:

Run in cmd:

run_measurement_generator

Run CO2 trend calculation:

Run in cmd:

run_co2_prediction

SIMULTAN model

The SIMULTAN model can be found here:

Resources
├── database_test.simultan

Databases

The database with the measurements can be found here:

Resources
├── measurements.db

The database with the weather data can be found here:

Resources
├── weather_database.db

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

DigiTwin_CO2_SampleProject-1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DigiTwin_CO2_SampleProject-1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file DigiTwin_CO2_SampleProject-1.tar.gz.

File metadata

  • Download URL: DigiTwin_CO2_SampleProject-1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.10

File hashes

Hashes for DigiTwin_CO2_SampleProject-1.tar.gz
Algorithm Hash digest
SHA256 def4a574a516015a6909ea601b15d34c48838ed259c214944bc7c233a16d6c26
MD5 66a282fa3d87bd21981b68164adc3212
BLAKE2b-256 5b41a78f32b8e247cdbe47271de8af7b81c4f4eeeaaf7890a8004ef2865284f7

See more details on using hashes here.

File details

Details for the file DigiTwin_CO2_SampleProject-1-py3-none-any.whl.

File metadata

File hashes

Hashes for DigiTwin_CO2_SampleProject-1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1c4ca7f7513e6fb0c76522aa2e9b6a99455d1b35b57dd408a4f0131c85eb02c
MD5 b4e0c4c9e6d7d01204bd6eaa36b41754
BLAKE2b-256 4af81bf7ce7fe261d572f5b603437070de93c37587798fd8ec6fc0a1332a0afd

See more details on using hashes here.

Supported by

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