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

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

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

ecl-2.14.2-cp311-cp311-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

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

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

ecl-2.14.2-cp310-cp310-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

ecl-2.14.2-cp39-cp39-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

ecl-2.14.2-cp38-cp38-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

ecl-2.14.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

ecl-2.14.2-cp37-cp37m-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

ecl-2.14.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

ecl-2.14.2-cp36-cp36m-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for ecl-2.14.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ca4b547e27762c73bf129a22ada75d88759f4e02d2a21cad3dab58cf979f3d8b
MD5 df2c2cc53def294456ecc260e3306aa6
BLAKE2b-256 3b743123eecff2c5f5f2ee58207257d26820133c3279e382a351fc923ae05fa6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecl-2.14.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 097bf825b88571d9fd8e3060fbe80d4e8d72f8e18497b860e6762bd4323cfa7f
MD5 f54681754bd8ac721671f44dd1f9fef4
BLAKE2b-256 d2ea81efd6d8a16b53c9db23021b8b8799683175c8b7f1f6a6f72d1cfea3c928

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecl-2.14.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 51c384b57b39c0332979e93782edad8b60c93d93eb057c588936c0d7f5181e35
MD5 a4449217a18894cf5972bccb0f0cd0b3
BLAKE2b-256 b681badd7f068a1da168361389b9d68fc98078a47e97f6280df1dcc31a326a4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecl-2.14.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4cc15c5053a1598fbdd5c1c6c64b39135c787f5a8fa69ab1f95bc85ef477864c
MD5 d916af3407a4b834966073b5e0fe72ed
BLAKE2b-256 58103aab8f036be268074a626d08dd8958b76295448d98b5a60b46899a7ab86d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecl-2.14.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 93fbe12c741e440ed46f19b1570c3f39edec8d66f42e73bb68f6296e81f462f6
MD5 c3e3d27a035047df2108737bb620c8c3
BLAKE2b-256 497c3501cb400aa88564bd15cad18306e0c80e2a7a897ee5730a84b2507f967b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecl-2.14.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e02ea207cf9d7f3478659da4b151ba8faa2078e4183791a4ce6c58ef60cc8106
MD5 3b8e101740604b8870c17e4c3df13cfd
BLAKE2b-256 0f534f5f63fd3ebc6b1306e53a8274f4ea822a2891652fc2ebe436aa00a1e81f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecl-2.14.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5a9fa1922fe3fde64f9c5512f10969e8199524ab41119b1fe5d83c516378ec48
MD5 f69972929e1285c2c887a6f0465968d4
BLAKE2b-256 9eed5a4f54848d33e49c781b047405ed7e1f69baa3558cf3073f3454d8b56e42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecl-2.14.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8af5d2b3768d89cf7d8d93bae37f6c0dbeed5a0d21537fb4da58bceca96401fc
MD5 d9b178b6a47d940e570c6f45b59289c7
BLAKE2b-256 17a8ea163b2ddbd45c043d89f548a7154139ded08754bc1cc47a780e79103c5e

See more details on using hashes here.

File details

Details for the file ecl-2.14.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0f5a2ed918c134509524024612db3218bf3676fdcb994b75813f2812164f3bb8
MD5 05713c9ec916d449dca97f65c8576af3
BLAKE2b-256 d621e35acae51aa68e12e3b7dd1dae8d5f86941d26da86e41dd8ca8ca5d589b7

See more details on using hashes here.

File details

Details for the file ecl-2.14.2-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a06f801f40acbb4c0737526a01e8c917d88a4bda3e69cf3b3a9a9fcef9622f6c
MD5 caf1b523524745928ec7bbdda2d3e242
BLAKE2b-256 6ebf877dcdce74fcf4ce972bee884543247f295735efccd19f5f660383c5f183

See more details on using hashes here.

File details

Details for the file ecl-2.14.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a775d97441efad5d03d0cbd8b996f3abaeadbb0549052d919d7f290da8ceb185
MD5 67da41c3e5a3678dd126bbd5f4a5c048
BLAKE2b-256 591da50f5efae23c9bcc130f8909f6cdedfd28e91f9fb6fcce0152ed5ca902a6

See more details on using hashes here.

File details

Details for the file ecl-2.14.2-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e441243c6dd7b025dbd0d29b8a8bcdabdd569c391c27745b7a9ba187d3cb0255
MD5 09b53fc3788bcfd283ec9bf9ff0a5119
BLAKE2b-256 7a0704c0c10dabe68b22707df849d88917ce6e0742a300b4a24f447da025d645

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