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.

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.9.3-cp38-cp38-manylinux2010_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

ecl-2.9.3-cp38-cp38-macosx_10_9_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

ecl-2.9.3-cp37-cp37m-manylinux2010_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

ecl-2.9.3-cp37-cp37m-macosx_10_9_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

ecl-2.9.3-cp36-cp36m-manylinux2010_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

ecl-2.9.3-cp36-cp36m-macosx_10_9_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file ecl-2.9.3-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ecl-2.9.3-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ecl-2.9.3-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 86d7e3e542255885b90b81777751276d7054ca24ded004bf0ea94986460b1924
MD5 2ddc31dc42fe5cb3cf34517ff960cf0d
BLAKE2b-256 2fc80b2f6cb443defcadbb31546ffbbcc95904140afffce948abab124726a0e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecl-2.9.3-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ecl-2.9.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3bfa15cb581983b4384a25b71fd17c2d62b47fa86605335aa301d9380f921a1a
MD5 0257344fc9a666e77b241099322f4668
BLAKE2b-256 af65ed0efd67cb06ceade4bfec511ccc9a9634b0ed5747f3c426ed8c5700393d

See more details on using hashes here.

File details

Details for the file ecl-2.9.3-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ecl-2.9.3-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ecl-2.9.3-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d6108faad4a99fa53e2071fcb58ec3c3b94c25ccbcdc23824186657601825112
MD5 5d89275347fd1d6be8a81e2ff0f67fbe
BLAKE2b-256 614ddc6333f96436c0f397cfb8a8404e5acd75972b9506d0e237c691c0111fa7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecl-2.9.3-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ecl-2.9.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8ee83901cef182acd0c93d3148ea4c4e485ffecf5494733712e3fafcc5714080
MD5 c99e71cbea4ec779af3d8b17e5fb121e
BLAKE2b-256 b9093f32154ed05c540648faf75c0ea2c6263df6ea458757c9474b1fe2710e9f

See more details on using hashes here.

File details

Details for the file ecl-2.9.3-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ecl-2.9.3-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ecl-2.9.3-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 66b55625691823b2932e48ae12104450245dab3c3f0ccdbb602c9fc291f73eaf
MD5 5ec044e762fb2288964d4e661b30d606
BLAKE2b-256 d3af4bf8f96a9c891194116ea2c1c159c5cf263425ce2531585958e7cc3723c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecl-2.9.3-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ecl-2.9.3-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8a58fd5a9b77b03b161e732e82ae9083d52c2e9994ff9bdc7b3311dd22419bf9
MD5 7dca2d97cd5438450654e73481ad68ef
BLAKE2b-256 f7324da649a6e15d5bb10fc7bf5d161306bfb3408933dfa20afcd28116fb10ad

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