Skip to main content

eCalc™ is a software tool for calculation of energy demand and greenhouse gas (GHG) emissions from oil and gas production and processing.

Project description

eCalc Logo

CI Build License Code style: black PyPI - Python Version PyPI - Wheel PyPI - Implementation Pre-commit - Enabled

eCalc™

eCalc™ is a software tool for calculation of energy demand and greenhouse gas (GHG) emissions from oil and gas production and processing.

Note

eCalc™ is a work in progress and is by no means considered a finished and final product. We currently recommend to use the YAML API when using eCalc, and only fallback to the Python API when it is strictly needed.

Warning

The quality of the results produced by eCalc™ is highly dependent on the quality of the input data. Further, we do not make any guarantees and are not liable for the quality of results when using eCalc™.


eCalc Illustration


Reference Links


Introduction

eCalc™ is a software tool for calculation of energy demand and GHG emissions from oil and gas production and processing. It enables the cross-disciplinary collaboration required to achieve high-quality and transparent energy and GHG emission prognosis and decision support.

eCalc™ performs energy and emission calculations by integrating data, knowledge and future plans from different disciplines. This could be production and injection profiles from the reservoir engineer, characteristics of energy consuming equipment units such as gas turbines, compressors and pumps from the facility engineer, and emission factors for different fuels from the sustainability engineer. The main idea is using physical or data-driven models to relate production rates and pressures to the required processing energy and resulting emissions. Integrated bookkeeping for all emission sources is offered.

eCalc™ uses a bottom-up approach to give high-quality installation and portfolio level forecasts at the same time as detailed insights about the energy drivers and processing capacities for the individual installation.

Getting started

eCalc™ is both a Python library and has a command line interface (CLI) to use with eCalc YAML Models. We currently recommend using eCalc™ from the command line with eCalc YAML Models, since the Python API is about to change soon, but the YAML will be more or less stable and backwards compatible.

To get started, please refer to the eCalc™ Docs - Getting Started, or follow the quick guide below:

Prerequisites

  • Python, version 3.8 or higher
  • Java, version 8 or higher
  • Docker (Optional), Linux or MacOS

eCalc™ only supports Python 3, and will follow Komodo wrt. minimum requirement for Python, which currently is 3.8.

Installation

pip install libecalc
ecalc --version
ecalc selftest

Alternative using Docker:

docker build --target build -t ecalc .
docker run -it ecalc /bin/bash

Inside the docker container, run:

ecalc --version
ecalc selftest

Please refer to Docker Docs for details on how to use Docker.

Create and run your first model

Please refer to the https://equinor.github.io/ecalc/docs/about/modelling/setup/ on how to set up your own model with the YAML API and https://equinor.github.io/ecalc/docs/about/getting_started/cli/ on how to run it.

See Examples below to use one of our predefined examples.

Development and Contribution

We welcome all kinds of contributions, including code, bug reports, issues, feature requests, and documentation. The preferred way of submitting a contribution is to either make an issue on GitHub or by forking the project on GitHub and making a pull request.

See Contribution Document on how to contribute.

See the Developer Guide for details.

Examples

Jupyter Notebook examples can be found in /examples. In order to run these examples, you need to install the optional dependencies.

pip install libecalc[notebooks]

In the examples you will find examples using both the YAML specifications and Python models. See /examples

Documentation

The documentation can be found at https://equinor.github.io/ecalc

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

libecalc-8.20.8.tar.gz (28.5 MB view details)

Uploaded Source

Built Distribution

libecalc-8.20.8-py3-none-any.whl (28.7 MB view details)

Uploaded Python 3

File details

Details for the file libecalc-8.20.8.tar.gz.

File metadata

  • Download URL: libecalc-8.20.8.tar.gz
  • Upload date:
  • Size: 28.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for libecalc-8.20.8.tar.gz
Algorithm Hash digest
SHA256 7e9751de1ebccdd7611a647912f35fa064e8806bacf633648292f4135bcfa56e
MD5 e449ddba4c9b5884599d4e8a70b30a1b
BLAKE2b-256 9e957f6f5254f5a1ede65bee81dbd997c88bdf1a6616c8dcd6b3e5403db0f4a2

See more details on using hashes here.

File details

Details for the file libecalc-8.20.8-py3-none-any.whl.

File metadata

  • Download URL: libecalc-8.20.8-py3-none-any.whl
  • Upload date:
  • Size: 28.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for libecalc-8.20.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fdba5936df75e7da43658f2d49775b8306546b3c660fe004270782410cdd2259
MD5 cd0923fd81dc3d066a9898365be9f16e
BLAKE2b-256 926dc9200c435d53672586cac66fece392730fc93c81c5865e3f97e32097f156

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