Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvarlia committed Dec 6, 2024
1 parent 0f435d7 commit 13d0c24
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
21 changes: 9 additions & 12 deletions src/fmu/tools/rms/generate_petro_jobs_for_field_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
def main(config_file, debug=False, report_unused=False):
"""Generate new RMS petrosim jobs from an original petrosim job.
Description:
Description
This function can be used to generate new petrosim jobs in RMS from an existing
petrosim job. The input (original) petrosim job is assumed to be a job for
either a single zone or multi zone grid where the petrophysical properties
Expand All @@ -50,7 +50,7 @@ def main(config_file, debug=False, report_unused=False):
petrosim jobs, one per facies the user wants to use in field parameter
updating in ERT.
Input:
Input
An existing RMS project with a petrophysical job conditioning petrophysical
properties on an existing facies realization.
Expand All @@ -60,14 +60,14 @@ def main(config_file, debug=False, report_unused=False):
that are created. It is possible to not use all petrophysical variables in the
original job and this can vary from facies to facies and zone to zone.
Output:
Output
A set of new petrosim jobs, one per facies that is specified in at least
one of the zones. For a multi zone grid, each of the new petrosim jobs will
contain specification of the petrophysical properties that is to be modelled
for each zone for a given facies. The new jobs will get a name reflecting which
facies it belongs to.
How to use the new petrosim jobs in the RMS workflow:
How to use the new petrosim jobs in the RMS workflow
When initial ensemble is created (ERT iteration = 0):
The RMS workflow should first use the original petrosim job to generate
Expand Down Expand Up @@ -104,19 +104,21 @@ def main(config_file, debug=False, report_unused=False):
had after the original petrosim job was run.
Summary:
Summary
The current function is made to simplify the preparation step of the
RMS project by creating the necessary petrosim jobs for a workflow
supporting simultaneous update of both facies and petrophysical
properties in ERT.
Usage of this function:
Usage of this function
Input: Name of config file with specification of which field parameters
to simulate per zone per facies.
Optional parameters:
debug info (True/False),
report field parameters not used (True/False)
Output: A set of new petro sim jobs to appear in RMS project.
Output:A set of new petro sim jobs to appear in RMS project.
"""

Expand Down Expand Up @@ -337,17 +339,12 @@ def create_new_petro_job_per_facies(spec_dict, debug_print=False, report_unused=
used_petro_per_zone_per_facies_dict = spec_dict["used_petro_var"]

if len(used_petro_per_zone_per_facies_dict.keys()) == 1:
print("Initial dict")
print(used_petro_per_zone_per_facies_dict)
# Only one zone, set zone name to empty
zone_name = list(used_petro_per_zone_per_facies_dict.keys())[0]
print(f"zones for single zone grid: {zone_name}")
tmp = {}
tmp[""] = used_petro_per_zone_per_facies_dict[zone_name]
used_petro_per_zone_per_facies_dict = tmp
tmp = None
print("Modified dict")
print(used_petro_per_zone_per_facies_dict)

# Original job parameter setting
owner_string_list = [GRID_MODELS, grid_name, GRID]
Expand Down
2 changes: 1 addition & 1 deletion tests/rms/test_generate_petro_jobs_for_field_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

@pytest.mark.parametrize(
"original_variable_names, facies_name, new_variable_names_input, "
"original_Lcorr_mat, reference_var_names, reference_corr_mat",
"original_lower_corr_mat, reference_var_names, reference_corr_mat",
[
(
["phit", "vsh", "klogh", "vphyl"],
Expand Down

0 comments on commit 13d0c24

Please sign in to comment.