Skip to main content

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

Project description

libecl Build Status

libecl 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.

libecl 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. libecl was initially developed as part of the Ensemble Reservoir Tool, other applications using libecl 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 libecl is by installing it from PyPI. This method doesn't require setting PYTHONPATH or LD_LIBRARY_PATH environment variables:

$ pip install libecl

Alternative 2: C library only

This is for when you need to link directly with the libecl C library, but don't need the Python bindings. libecl 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/libecl
$ mkdir libecl/build
$ cd libecl/build
$ cmake ..
$ make
$ make install

To install libecl 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 libecl 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 libecl 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/libecl
$ mkdir libecl/build
$ cd libecl/build
$ pip install -r ../requirements.txt
$ cmake .. -DENABLE_PYTHON=ON
$ make
$ make install

You will most likely want to install libecl 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.

libecl-2.9.0-cp38-cp38-manylinux2010_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

libecl-2.9.0-cp38-cp38-macosx_10_9_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

libecl-2.9.0-cp37-cp37m-manylinux2010_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

libecl-2.9.0-cp37-cp37m-macosx_10_9_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

libecl-2.9.0-cp36-cp36m-manylinux2010_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

libecl-2.9.0-cp36-cp36m-macosx_10_9_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

libecl-2.9.0-cp27-cp27mu-manylinux2010_x86_64.whl (1.8 MB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

File details

Details for the file libecl-2.9.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: libecl-2.9.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for libecl-2.9.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 85e063fe80999dddc045f72b95bf7ccdd0e795487659baf78888ccd6977b7926
MD5 5103eb80d19dcf89e6f4a18a22edfa85
BLAKE2b-256 333212b816ff1848fa3c34bfcbc9b587e27a989f99747bb716320839f01dfbd4

See more details on using hashes here.

File details

Details for the file libecl-2.9.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: libecl-2.9.0-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.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for libecl-2.9.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 81679668003711945389f87ad3751d32021f0680f83d6823aa41bb2779af2d16
MD5 0191ea16c6034a4155f0979ddcc7c2c5
BLAKE2b-256 785a3daee55d77c3e70c51366dc64d2c6d7f178d63414886f70c9da7256206b3

See more details on using hashes here.

File details

Details for the file libecl-2.9.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: libecl-2.9.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for libecl-2.9.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 acad82cfb238772ff991afdd47e246f7b0306186a70e6fe9981ccb91e6749206
MD5 983fd22d5a4e4d204097981e329c63cb
BLAKE2b-256 df6fc2063125cfe54e223b4e5e58ef5be02b141d45991314cd2cb5b37ba43f31

See more details on using hashes here.

File details

Details for the file libecl-2.9.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: libecl-2.9.0-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.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for libecl-2.9.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3088fd54299dff2062bb8aa666f6e332f36ec52e8826efbbff790824204fa5cd
MD5 8dead8a0e2ba11d2690cca5f4062a67c
BLAKE2b-256 ce6efd71ff61aaa7ee36b17e63ded79b0f8581db94104ff17107c02d2e5bfd52

See more details on using hashes here.

File details

Details for the file libecl-2.9.0-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: libecl-2.9.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for libecl-2.9.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f35b0c115e6b3714f52c04a09902cd3b18287f8c7b4b04e9f05ce00ecc84017d
MD5 1329202cb44796d2e255dd8c2b6451d7
BLAKE2b-256 d13ee8e869b63949e55c9b6fc38032128bbb233430db0cee4b45811bf279f754

See more details on using hashes here.

File details

Details for the file libecl-2.9.0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: libecl-2.9.0-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.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for libecl-2.9.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1f285a02fa071a2e81e4a19eacff7d6fc64364710e706431c8968910d9e9b289
MD5 4ef28331b769be6d9bc569c70dedbc06
BLAKE2b-256 156688a256230948fad68f4319d45a2a00c674a007396637de8604cddaa7fce6

See more details on using hashes here.

File details

Details for the file libecl-2.9.0-cp27-cp27mu-manylinux2010_x86_64.whl.

File metadata

  • Download URL: libecl-2.9.0-cp27-cp27mu-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 2.7mu, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for libecl-2.9.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0c2ae015a6708f99071a8b55052a03df1283e1e1fc33d78281d448a5f1b9052b
MD5 51d4bb9869efddada085148abe605d70
BLAKE2b-256 5cf6c1932047b3252227d21287954e9ac93f973ea90b70c8f2388702e2590ba6

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