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

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.8macOS 10.9+ x86-64

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

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.7mmacOS 10.9+ x86-64

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

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

ecl-2.9.3rc0-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.3rc0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ecl-2.9.3rc0-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.3rc0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ae2b7eeee0e3f4314c3752f1725f890cbd0e6a2de9ae9dcf6ff12d37ee1f6008
MD5 8edc263eff063fc574dca19ec12619a0
BLAKE2b-256 e291457a458a4400e6f66d7cebcec02b2b5574968bc76b4e63693bbfceb1a393

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecl-2.9.3rc0-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.3rc0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0890f3927d9e07b325e1c7c00557a965114f13b7111df453f6a549b850fabb25
MD5 4e567670bd1af2cd49d99a081c34a293
BLAKE2b-256 e693f4b78dd25dad3923a09aae9d2914865c105911717384707d9d919a9e28ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecl-2.9.3rc0-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.3rc0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 99f8757917787a43fd5bd1c23608598d01d2b286b63247927f3525d6af49d756
MD5 3bde5bccf53e8be1d9a6b4ef34ad1588
BLAKE2b-256 08103a3a7a32bea3f99b5a70d7b99eb4655aa03f63f6f0494ec6f72223020bfc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecl-2.9.3rc0-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.3rc0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 368fafdc0dde5fd3adee2eaeac0f0528d3ca341da72c36462e336bf8644fe437
MD5 d5adec6e72092beab88aa57aa3e09225
BLAKE2b-256 9e78db638aa2c0f5de3740d1a48aece8be835ce07ee87bc1c41ad1ad6f664be4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecl-2.9.3rc0-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.3rc0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d9e09f3af4d34934e1f0d240da2b047d1841d8138ddd46e87422663d337d8d32
MD5 fd8c675ff30c837d33812c15ed6ac4d9
BLAKE2b-256 417735c0502fdfca0f9e9e529c52cc824b5ea6df065129e752d4cfa2328bbfd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecl-2.9.3rc0-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.3rc0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d3b724cdefbe415a76492fd25327bfb880dd6685aee36049a91b5fbcec474632
MD5 cbb6e8f0fbc85e1b4eb777ae471be240
BLAKE2b-256 a2d9bb6c461dbf1969623735bb043a95f67c7ab49b2e13e3ba9837b9b5efb39e

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