Skip to content

Commit

Permalink
FIX: Update documentation for export_inplace_volumes (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnatt committed Jan 2, 2025
1 parent d69eb6e commit d2a80e8
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions docs/src/rms_oneliners.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,46 @@ a few lines will be needed.

Currently only volumes are exposed, but this will be extended in the near future.

.. note::
All simplified export functions requires that the global configuration file is found at the standard
location in FMU. For RMS exports that will be ``'../../fmuconfig/output/global_variables.yml'``.

.. _example-export-volumes-rms:

Exporting volumetrics from RMS
------------------------------
Exporting inplace volumes from RMS
----------------------------------

Inplace volumes for grids in RMS should always be computed in a **single** RMS volumetrics job, and
the result should be stored as a report table inside RMS. The simplified export function will use
the RMS API behind the scene to retrieve this table, and all necessary data needed for ``fmu.dataio``.

The performance of the volumetrics jobs in RMS has greatly improved from the past, now typically
representing the fastest method for calculating in-place volumes. However, it is important to note
that generating output maps, such as Zone maps, during the volumetrics job can significantly
decelerate the process.

Volumetrics in RMS is always done in a so-called volume jobs. The intention with the simplification
is to use the RMS API behind the scene to retrieve all necessary data needed for ``fmu.dataio``.
Note some assets are using erosion multipliers as a means to reduce the bulk and pore volume, instead of
performing actual erosion by cell removal in the grid. This is not supported, and proper grid erosion
is required. If the erosion multiplier is important for flow simulation, the erosion and volumetrics job
should be moved to after the export for flow simulation.

Example:

.. code-block:: python
from fmu.dataio.export.rms import export_volumetrics
from fmu.dataio.export.rms import export_inplace_volumes
...
# here 'Geogrid' is the grid model name, and 'geogrid_volumes' is the name of the volume job
outfiles = export_volumetrics(project, "Geogrid", "geogrid_volumes")
export_results = export_inplace_volumes(project, "Geogrid", "geogrid_volumes")
print(f"Output volumes to {outfiles}")
Most ``dataio`` settings are here defaulted, but some keys can be altered optionally, e.g.:

.. code-block:: python
for result in export_results.items:
print(f"Output volumes to {result.absolute_path}")
outfiles = export_volumetrics(
project,
"Geogrid",
"geogrid_volumes",
global_variables="../whatever/global_variables.yml",
tagname="vol",
subfolder="volumes",
)
Details
-------

.. automodule:: fmu.dataio.export.rms.volumetrics
.. automodule:: fmu.dataio.export.rms.inplace_volumes
:members:

0 comments on commit d2a80e8

Please sign in to comment.