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.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.10macOS 10.9+ x86-64

ecl-2.14.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.9macOS 10.9+ x86-64

ecl-2.14.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.8macOS 10.9+ x86-64

ecl-2.14.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.7mmacOS 10.9+ x86-64

ecl-2.14.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file ecl-2.14.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9370d40699198df1a8c631b5245c1674535e62716f55634bf04fb0fce2810e41
MD5 99c9f47072d674bf98a45e4fc42f032a
BLAKE2b-256 98050db211e115b77a383802bf025abc057c186bd5b0138344e4763e20da4311

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecl-2.14.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 67b4dd8486bec57fcadadfd9ffd9af095d183918c182a8807dd52486b41ccdd4
MD5 8856f26d5c4dddb1a3f2c7c52429ff16
BLAKE2b-256 c04c6be21b1aff77bef09123fd5631c311520b64184aaa3506ab625e55113fa6

See more details on using hashes here.

File details

Details for the file ecl-2.14.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4b1c7efb6f281907505d4830dbcbeb3aeff6c3a2148731d1420877da1e54b3bc
MD5 044458122e9e91629b5d8398cf78f5e0
BLAKE2b-256 ee86942f2e97bc7c270cd89ba6074680b51bf7539ed5e6b076594ff906e20f35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecl-2.14.0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for ecl-2.14.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0f92b3177163069fc0c916aae0f28ca0a898017fc9fdcec2eeeb2d80d0216b51
MD5 c4d248123cb71950a478c3e7d1a2cee3
BLAKE2b-256 d8cbab7e5a41f7cd8c8a16e04a4acf921f52db7027975fc65ccc1b3cb772a1a0

See more details on using hashes here.

File details

Details for the file ecl-2.14.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2a98d189f55e998cb6de5de5794d1ef42da8852eee9b8b6ee66e56d64c1288e1
MD5 1cd18a25c30da49bd6865e06e6efc26c
BLAKE2b-256 dfe693d5a1978accec42219d197b21ac30a78b755becee7f1ef46ced5fcf7b7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecl-2.14.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for ecl-2.14.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 03ea4433489c332d584e3316e0df24d2d4791d49267b87028898bac7bc6ea420
MD5 42f5e06128032a378efb1dcd4857f57b
BLAKE2b-256 8b1f0d90437f710a15bbf999b745ec36ad3292c7c45be668a11b580c746d7367

See more details on using hashes here.

File details

Details for the file ecl-2.14.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 55d922b1f33b3d861d972a3dc703111171674e6424d42b17ea64824190cd726b
MD5 4a3a83a96311b91733161cff9aa50b0d
BLAKE2b-256 78e26a9ca4f7cd31764742adb71b62c9dd9446ac77db08fc7aed756ed98e912c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecl-2.14.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4e5fc53e1659aa7e7d5ca93e70c9b692c4461d1c69f9d30d26c0aa06435d41c8
MD5 1a04408421bf047494e9cd615e37d0f9
BLAKE2b-256 4187b7d733f22d3776f88e70b326332b7aa181d1106836d6a525810c896d1907

See more details on using hashes here.

File details

Details for the file ecl-2.14.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for ecl-2.14.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a50df74be4bdd4f18d9921ec4cf9b92ff9f173b8a530069fef47640a2b1a2451
MD5 6082b305bb541bc7052490a92bbfc5c3
BLAKE2b-256 35a4460136b375f7e99f089c450fe18edcfe7e1f649e5652ada9443348fcb6e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ecl-2.14.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 af938c14be842c57f6e12143b60618b672df6738a6d18edb5d39f8178de11115
MD5 0cb44edac4e6c39f415d09aa2d4e6f03
BLAKE2b-256 394d95f08edabb386b0341116e7ce0a8b107a28315d12191a142f3433139826a

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