Skip to main content

Exergy analysis for tabular input data

Project description

ExerPy is a Python library designed to perform detailed exergy analysis of energy conversion systems. It builds on the exergy analysis methodology implemented in TESPy, while extending its capabilities to seamlessly integrate with simulation tools such as Ebsilon Professional, Aspen Plus, and TESPy itself. ExerPy enables engineers and researchers to identify inefficiencies and optimize the performance of thermodynamic systems through automated workflows and consistent data handling.

With its advanced features, ExerPy calculates both physical and chemical exergy, allowing users to analyze both individual components and entire systems. This helps to identify where and why exergy losses occur, facilitating strategies to improve efficiency, reduce costs, and support sustainable energy usage.

https://raw.githubusercontent.com/oemof/exerpy/refs/heads/main/docs/_static/images/logo_exerpy_big.svg

Key Features

  • Comprehensive Exergy Analysis: Calculate physical and chemical exergy, perform component-level and system-wide analysis.

  • Flexible Integration: Compatible with multiple simulation tools (Ebsilon Professional, Aspen Plus, TESPy).

  • Advanced Component Library: Pre-built components for common energy system elements (turbines, heat exchangers, etc.).

  • Extensible Architecture: Easy-to-use framework for implementing custom components and analysis methods.

  • Robust Data Handling: Consistent fluid property models and automated data extraction from simulation tools.

  • Open Source: MIT licensed, free for academic and commercial use.

Getting Started

Installation

You can install the latest version of ExerPy using pip:

pip install exerpy

Quick Start Example

Here’s a simple example how to perform an exergy analysis using ExerPy:

Custom json

from exerpy import ExergyAnalysis

model_path = 'my_model.json'

ean = ExergyAnalysis.from_json(model_path, chemExLib='Ahrendts')

fuel = {"inputs": ['Fuel'], "outputs": []}
product = {"inputs": ['Power'], "outputs": []}

ean.analyse(E_F=fuel, E_P=product)
ean.exergy_results()

Exported tespy model

from exerpy import ExergyAnalysis

model_path = 'tespy_model_export.json'

ean = ExergyAnalysis.from_tespy(model_path, chemExLib='Ahrendts')

fuel = {"inputs": ['Fuel'], "outputs": []}
product = {"inputs": ['Power'], "outputs": []}

ean.analyse(E_F=fuel, E_P=product)
ean.exergy_results()

You can also use a tespy network object instead!

Ebsilon model

from exerpy import ExergyAnalysis

model_path = 'my_model.ebs'

ean = ExergyAnalysis.from_ebsilon(model_path, chemExLib='Ahrendts')

fuel = {"inputs": ['Fuel'], "outputs": []}
product = {"inputs": ['Power'], "outputs": []}

ean.analyse(E_F=fuel, E_P=product)
ean.exergy_results()

For more detailed tutorials and examples, see the online documentation.

Citation

If you use ExerPy in your scientific work, please consider citing it to support ongoing development. You can cite ExerPy using the following BibTeX entry:

@software{ExerPy,
     author = {Tomasinelli, Sergio and Witte, Francesco and Müller, Robert},
     title = {{ExerPy}: Exergy Analysis in Python},
     note = {Supervision: Prof. Dr.-Ing. Fontina Petrakopoulou}
     url = {https://github.com/oemof/exerpy},
     version = {0.0.7},
     year = {2026}
}

License

MIT License

Copyright (c) Sergio Tomasinelli

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

exerpy-0.0.7.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

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

exerpy-0.0.7-py3-none-any.whl (143.2 kB view details)

Uploaded Python 3

File details

Details for the file exerpy-0.0.7.tar.gz.

File metadata

  • Download URL: exerpy-0.0.7.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for exerpy-0.0.7.tar.gz
Algorithm Hash digest
SHA256 9c4d3e42c750c1ec68929138542736191eca699693e200b8513ae9c667924e9e
MD5 9266315c99a8a397e82cd73da74489ba
BLAKE2b-256 b1f931ceca33d2764854b185aafd18698d90a1cbb55cb8a517effd40bf1e30d2

See more details on using hashes here.

File details

Details for the file exerpy-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: exerpy-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 143.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for exerpy-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3e04665697d3a936b3181603191b268fa6ec1c4e43801de17171d9bed32bf9b1
MD5 bfb9435aa8b7d8a581d7a333503807a2
BLAKE2b-256 a8968a11015e7b3ed4fcabd441c72ffb3f34583f97cf65356db1e458a2feaf53

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