Part of the Ensemble based Reservoir Tool (ERT)
Project description
libres
libres
is part of the ERT
project: Ensemble based Reservoir Tool.
$ pip install equinor-libres
Building libres
libres is now a Python-only package. It does, however, have a C++ library component. As such, a C++11-compatible compiler is required to be installed as well as CMake 3.
1. Building and installing
If you have pip >= 19
, you may simply do the following to build and install libres:
$ pip install .
Otherwise, you may install the requirements manually.
$ pip install -r requirements.txt
$ pip install wheel
$ python setup.py bdist_wheel # Build a "wheel" and place it in dist/
$ pip install dist/*
2. Building for development
If you have pip >= 19
, you may do the following to build and install libres
into the source directory. Installing into the source directory allows Python to
use the Python module immediately.
$ pip install --edit . # "-e ." is also valid
Otherwise, you may install the requirements manually.
$ pip install -r requirements.txt
$ pip install -r test_requirements.txt
$ python setup.py develop
To use this development version, have the PYTHONPATH
environment variable point to
the python/
directory.
$ PYTHONPATH=$PWD/python pytest python/tests
To test the C library:
$ mkdir build
$ cd build
$ cmake .. -DBUILD_TESTS=ON
$ cmake --build .
$ ctest --output-on-failure
3. postinstall configuration
3.1. The site_config
file
As part of the installation process libres
will install a file called
site-config
in the res
-module's .data/ert/site-config
; when ert starts
this file will be loaded before the users personal config file. For more
extensive use of ert
it might be benefical to customize the site-config
file
to your personal site. To do so, you must set the environment variable
ERT_SITE_CONFIG
to point to an alternative file that will be used when
bootstrapping.
The default site-config
is perfectly acceptable to start with, however.
3.2 Forward models
The libres
code contains basic functionality for forward models to run the
reservoir simulators Eclipse/flow and the geomodelling program RMS. Exactly how
these programs depend on the setup on your site and you must make some
modifications to two files installed with libres
:
3.2.1. Eclipse/flow configuration
In the Python distribution installed by libres
there is a file:
res/fm/ecl/ecl_config.yml
which is used to configure the eclipse/flow versions
are available at the location. You should edit this file to correspond to the
conditions at your site; alternatively you can store an alternative
configuration file elsewhere and set the environment variable ECL_SITE_CONFIG
to point to the alternative file.
3.2.2. RMS configuration
In the Python distribution installed by libres
there is a file:
res/fm/rms/rms_config.yml
which contains some site specific RMS configuration.
You should update this file with your local path to the rms
wrapper script
supplied by Roxar
; alternatively you can store an alternative configuration
file elseswhere and set the environment variable RMS_SITE_CONFIG
to point to
the alternative file.
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
Hashes for equinor_libres-3.3.1a1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 340ca8cedb6356832fe9573cc58648eda50b349a3947b906500c6a33d6dab6aa |
|
MD5 | 0e633eec5e6c6225d90ddeb03059ab31 |
|
BLAKE2b-256 | 9e884805c397e9853449bee1dcee5a7ea23bda0723a5fe80e0d5594a1796abce |
Hashes for equinor_libres-3.3.1a1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac634ebae1924f1ce93c2d4b4af113e4e5dc29cffce001d789f1d126750ca21e |
|
MD5 | 4f956cd677a1c655e38b87b8ceeab33a |
|
BLAKE2b-256 | 2c410000b41bbd1f6d7f8c4d5746325f4f7f61daaa28010251ebde92e871ecef |
Hashes for equinor_libres-3.3.1a1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d38cbc5ab61eff9532665290594e8cb977f64a9418d4afa28f563c1291f52fbe |
|
MD5 | 49a55577d02208e94a1caf9ffb2eeb64 |
|
BLAKE2b-256 | 5f2522213a02115de446dd544649755ca950de3bfe18d68e0ec3d0709cd4c55e |
Hashes for equinor_libres-3.3.1a1-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7e50a895a1465632aaaa466ec3f87faff8d5f22f667b1c89cb37e6288a25e1c |
|
MD5 | 08aa48f6d13bfefb41f837652cb8513a |
|
BLAKE2b-256 | 0a04de387c047feed1cd3d7819af4f88f99fb51afccd25b3f60ec717c8d69625 |