Skip to main content

Package for reading and writing the result files from the ECLIPSE reservoir simulator

Project description

ecl Build Status

ecl is a package for reading and writing the result files from the Eclipse reservoir simulator. The file types covered are the restart, init, rft, summary and grid files. Both unified and non-unified and formatted and unformatted files are supported.

ecl is mainly developed on Linux and macOS, in addition there is a portability layer which ensures that most of the functionality is available on Windows. The main functionality is written in C/C++, and should typically be linked in in other compiled programs. ecl was initially developed as part of the Ensemble Reservoir Tool, other applications using ecl are the reservoir simulator flow and Resinsight from the OPM project.

Dependencies

Regardless of how you build ecl, it will depend on the following system-level components.

Software Debian / Ubuntu RHEL / Fedora macOS
libz zlib1g-dev zlib-devel builtin
Conan N/A N/A conan (Homebrew)
pipx (Optional) pipx pipx pipx (Homebrew)

Note: The Conan package manager is not available for most Linux systems. Conan recommends installing it via pip. If using pipx, simply pipx install conan and it'll be availabe for your user regardless if you're using a virtualenv or not.

Alternative 1: Python only

For small interactive scripts, such as forward models, the recommended way to use ecl is by installing it from PyPI. This method doesn't require setting PYTHONPATH or LD_LIBRARY_PATH environment variables:

$ pip install ecl

Alternative 2: C library only

This is for when you need to link directly with the ecl C library, but don't need the Python bindings. ecl requires a conforming C++11 or later compiler such as GNU GCC, the CMake build system and, optionally, zlib.

$ git clone https://github.com/Equinor/ecl
$ mkdir ecl/build
$ cd ecl/build
$ cmake ..
$ make
$ make install

To install ecl in a non-standard location, add -DCMAKE_INSTALL_PREFIX=/path/to/install to the first cmake command. Remember to set LD_LIBRARY_PATH=/path/to/install/lib64:$LD_LIBRARY_PATH if you do use a non-standard location for your program to find libecl.so.

If you intend to develop and change ecl you should build the tests by passing -DBUILD_TESTS=ON and run the tests with ctest.

Alternative 3: C library with Python bindings

It is also possible to install both the C library and Python bindings using CMake. Note that this alternative is incompatible with ecl installed from PyPI (Alternative 1). As before, we require a conforming C++11 or later compiler, CMake and, optionally, zlib.

$ git clone https://github.com/Equinor/ecl
$ mkdir ecl/build
$ cd ecl/build
$ pip install -r ../requirements.txt
$ cmake .. -DENABLE_PYTHON=ON
$ make
$ make install

You will most likely want to install ecl into a Python virtual environment. First activate the virtualenv, then add the argument -DCMAKE_INSTALL_PREFIX=$(python -c "import sys; print(sys.prefix)") to the cmake command when building.

Then, you must tell Python where to find the package[1]:

$ export PYTHONPATH=/path/to/install/lib/python2.7/site-packages:$PYTHONPATH
$ export LD_LIBRARY_PATH=/path/to/install/lib64:$LD_LIBRARY_PATH

Then you can fire up your Python interpreter and try it out:

>>> from ecl.summary import EclSum
>>> import sys

>>> summary = EclSum(sys.argv[1])
>>> fopt = summary.numpy_vector("FOPT")

The installation with Python enabled is described in a YouTube video by Carl Fredrik Berg.

[1]: The exact paths here will depend on your system and Python version. The example given is for a RedHat system with Python version 2.7.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

ecl-2.14.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

ecl-2.14.3-cp311-cp311-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

ecl-2.14.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

ecl-2.14.3-cp310-cp310-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

ecl-2.14.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

ecl-2.14.3-cp39-cp39-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

ecl-2.14.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

ecl-2.14.3-cp38-cp38-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

Details for the file ecl-2.14.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5152c5e9adfc2e1a235c27ec21cfa90063ea96197eef0c097d00d82244a0d873
MD5 32d34b2c01284f5d023445116cc34c99
BLAKE2b-256 9844e056879d84f6de59005f2b2fad32f38a358c9479701213a5923c41637d9e

See more details on using hashes here.

File details

Details for the file ecl-2.14.3-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dd0a96b9918fac4aa570abd84852243bdbf997c113f4ac02d2cf1a4cf69557f0
MD5 035e8eb180818b6b98ce5a246878ad90
BLAKE2b-256 ff9ced403e5c53cf9c8a6502b4ebcf3a390be47f3f308fd73b1ba909fb164f92

See more details on using hashes here.

File details

Details for the file ecl-2.14.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6efadcadabb756f65bb389eca52e1241e531d3dfa60726ca3f425cf45ec343a2
MD5 7147ce27a7d56333fd475671ad47ef64
BLAKE2b-256 3a5e8a41ad885738962506e26bd71fe217d55784680ce9a337398e3a724a57b6

See more details on using hashes here.

File details

Details for the file ecl-2.14.3-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 468a5d67f410c4391d23dfbfab2704a5340c0ec301e564af938fc5af201c1259
MD5 c63012714c0e24fd7b012a742ae2348f
BLAKE2b-256 b50765210350c92592b0f3e3ff32b4152e2f8c26e8757a44a1f812cbaa137253

See more details on using hashes here.

File details

Details for the file ecl-2.14.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ecc4e63d52bfbf47b255a3a713d326a8ccefd7ad5f64d76a3c9abc3c6c5b1ae7
MD5 c429050faa6dad84beb86c53f1f8f4b6
BLAKE2b-256 bec207d892c0031fdad930fb5bf60a7681933c8097a3a17373e7a9af6999e4bc

See more details on using hashes here.

File details

Details for the file ecl-2.14.3-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0db66c9521e53ec41aa3d7d05af9928dec741ec4f3164b60c52d9f5f928c5d09
MD5 d40cb3656f6bd04ed5a54fe6e53aca88
BLAKE2b-256 fd189e40d307fdf2bdceaec24fce6607fe328e1f64442d3cb829125deaa36654

See more details on using hashes here.

File details

Details for the file ecl-2.14.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f50481aede3a1c68f0daa5fc72442a8222b0b1f0fef86141253087a6cf0aae69
MD5 b8f2cb4c6779b0985f2153ffc1bfc6cc
BLAKE2b-256 2d1767e90b9c1dc9cc055dd01b7fd3bfe073a33a08e4fa8a3014a165177d02a7

See more details on using hashes here.

File details

Details for the file ecl-2.14.3-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cb90afbcf5b8d7833a98028144751b94e4772eaff28479414bd1e712a6ba39da
MD5 4492d41e9ba51740ea54622dddbba5ae
BLAKE2b-256 b5c0a43ed3b7c00a2957066b8da25c80b38b67c73405ec6957205de61c5777ca

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