SiModIn
- Simulation Model Interface
Interface between simulation models and brightway25.
SiModIn can be used to:
Create simulation based brightway25 datasets.
Calculate the impact of your models.
Provide your simulation models for LCA studies.
Installation
Install SiModIn from PyPi:
pip install simodin
Getting started
The basic usage of SiModIn will be presented for an Tespy powerplant model from the offical Tespy documentation.
To use the existing SiModIn model, import and instantiate the SimModel class:
from SimModel_powerplant import tespy_model
from simodin import interface as link
my_model= tespy_model('powerplant')
Then inititate the model and calculate it.
my_model.init_model()
my_model.calculate_model()
Create the technosphere dictionary and pass the model to an modelInterface instance.
my_model.define_flows()
my_interface= link.modelInterface('tespy powerplant',my_model)
For LCA calculation, the needed brightway25 dataset needs to be assigned to the technosphere flows:
import bw2data as bd
bd.projects.set_current('bw_meets_tespy')
my_interface.methods=[('ecoinvent-3.11', 'EF v3.1', 'climate change', 'global warming potential (GWP100)')]
ei=bd.Database('ecoinvent-3.11-cutoff')
ei_heat=[act for act in ei if 'heat production, at hard coal industrial furnace 1-10MW' in act['name']
and 'Europe without Switzerland' in act['location'] ][0]
ei_water=[act for act in ei if 'market for tap water' in act['name']
and 'Europe without Switzerland' in act['location'] ][0]
my_interface.add_dataset('heat source', ei_steam)
my_interface.add_dataset('cooling water source', ei_water)
my_model.set_flow_attr('cooling water source', 'dataset_correction', 0.1)
After that, the LCA calculation can be executed or the data exported to a brightway25 database:
my_interface.calculate_background_impact()
my_interface.calculate_impact()
code= my_interface.export_to_bw()
This and further examples how to use SiModIn can be found here.
Metadata
Release files for simodin 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simodin-0.0.7.tar.gz | 59.3 kB | Without provenance | Details for simodin-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simodin-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for simodin-0.0.7-py3-none-any.whl |
Total release size: 71.4 kB
Release files / simodin-0.0.7.tar.gz
| Download URL | simodin-0.0.7.tar.gz |
|---|---|
| Size | 59.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb5fcfce8f056286815d2e29bc9825db77ab1cf30ca237a05e20d057d0de8f2c
|
|
BLAKE2b-256 checksum How to use checksums |
ebe26d8e12bc3eabafced3ee3b3882aeecb4e5cf4422b73a985ca509f124aef8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / simodin-0.0.7-py3-none-any.whl
| Download URL | simodin-0.0.7-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a03d386bd829e36155e0485f3588e5b7de56c5f1508aea0332b82ea11bfe08c0
|
|
BLAKE2b-256 checksum How to use checksums |
ec24b17719c4ff368677387ad0a2bff695cfc33924096e6521f11111ff9f24af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for simodin 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.