Package for reading and writing the result files from the ECLIPSE reservoir simulator
Project description
ecl
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file ecl-2.10.1-cp39-cp39-manylinux2010_x86_64.whl
.
File metadata
- Download URL: ecl-2.10.1-cp39-cp39-manylinux2010_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a786caaa9372bc4ce41184375c92ed9da8e8a42190b7a556003603d3ff8ad6b9 |
|
MD5 | 1062fe5ba6769024b132ae8fd994b2f7 |
|
BLAKE2b-256 | 315946c9cf011441bf0a4182869b56d9f21494f7d04a2d91a512199d1669d6ab |
File details
Details for the file ecl-2.10.1-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: ecl-2.10.1-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17d97d57bc1d6b4ecf41c57f905f663d7a4c7caec76380c8727e95c9992b45d8 |
|
MD5 | 193b38f6711e46e9c70ebd3e743beede |
|
BLAKE2b-256 | 4d920d45290b8051dc6de6cfc0b650c48351412b7a5e04c3cba3aaa7ab5db06d |
File details
Details for the file ecl-2.10.1-cp38-cp38-manylinux2010_x86_64.whl
.
File metadata
- Download URL: ecl-2.10.1-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.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a3b47e8e81da5f3062d2cabdab6cb28a30516e4ea70adfc3d7522d61542239c |
|
MD5 | 5345048605649e534f4bbb2f5cbd4713 |
|
BLAKE2b-256 | d3138d22326153f6c9efe62736514dd8228799642d86c5b0341369e722339e48 |
File details
Details for the file ecl-2.10.1-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: ecl-2.10.1-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.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6da4dcfc2c4640cdb22110611a8249239deebada7aa1e47b71dc96f87824c986 |
|
MD5 | 6277202a883c86c46479b3d983fd4a78 |
|
BLAKE2b-256 | 5604f5fbfe021acd1d71ea0621d911e8e2dd0261cfa32675eca753a02532637c |
File details
Details for the file ecl-2.10.1-cp37-cp37m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: ecl-2.10.1-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.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b36aa5b206b5d7dac6b30e81c56f94d2f46dbbd9bd525ca21d24ea0c29554cf7 |
|
MD5 | 22e509f9fe65ad7489d3f1df1dbd8eb0 |
|
BLAKE2b-256 | 9a4823554fb7c127ed153e3880689111c59d9bc39bbb0198ef2028dae7035478 |
File details
Details for the file ecl-2.10.1-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: ecl-2.10.1-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.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a85da3cc39bd8140c5d054a11f2f1da3280feedc1c891aab7ba55c764e4add8 |
|
MD5 | 6ce183026e7dc76820d09587addcf2ce |
|
BLAKE2b-256 | ced6d15ed2b3910b172bda186c6895d42952ea6a30d010f00fffd6d6e6066086 |
File details
Details for the file ecl-2.10.1-cp36-cp36m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: ecl-2.10.1-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.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c4c5cbee18a61b8cda9c30517167db67601ae9c85bc1f38aec6bdd6a553d52b |
|
MD5 | 5092acacb33c9dbc6931713b5536a472 |
|
BLAKE2b-256 | 3a26f1576adb6d0505e06c80b0544458db1a8b28fef881bcbbc52d474c7cd123 |
File details
Details for the file ecl-2.10.1-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: ecl-2.10.1-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.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58f9e5122c444132628943dcbdc58e5a345a43113e585513f8b08802f7b67754 |
|
MD5 | 3404be2900eca28640d1cc86507e517b |
|
BLAKE2b-256 | 995b2de8a2e95a526a8c9365170a28e338a1b598e99c3f8ea2a9f36abdc62fc6 |