Package: libecalc
eCalc™eCalc™ is a software tool for calculation of energy demand and greenhouse gas (GHG) emissions from oil and gas production and processing.NoteeCalc™ 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.WarningThe 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™.Reference LinksDocumentationContributionSecurityCode of ConductSource CodeIntroductioneCalc™ 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 startedeCalc™ 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 theeCalc™ Docs - Getting Started,
or follow the quick guide below:PrerequisitesPython, version 3.8 or higherJava, version 8 or higherDocker(Optional), Linux or MacOSeCalc™ only supports Python 3, and will followKomodowrt. minimum requirement for Python, which currently is 3.8.Installationpipinstalllibecalc
ecalc--version
ecalcselftestAlternative using Docker:dockerbuild--targetbuild-tecalc.
dockerrun-itecalc/bin/bashInside the docker container, run:ecalc--version
ecalcselftestPlease refer toDocker Docsfor details on how to use Docker.Create and run your first modelPlease refer to thehttps://equinor.github.io/ecalc/docs/about/modelling/setup/on how to set up your own model
with the YAML API andhttps://equinor.github.io/ecalc/docs/about/getting_started/cli/on how to run it.SeeExamplesbelow to use one of our predefined examples.Development and ContributionWe 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.SeeContribution Documenton how to contribute.See theDeveloper Guidefor details.ExamplesJupyter Notebook examples can be found in /examples. In order to run these examples, you need to install the optional
dependencies.pipinstalllibecalc[notebooks]In the examples you will find examples using both the YAML specifications and Python models. See /examplesDocumentationThe documentation can be found athttps://equinor.github.io/ecalc