From 2d21f34bc00630de160c0996b9223fd7d63211f6 Mon Sep 17 00:00:00 2001 From: Daniel Sollien <62246179+daniel-sol@users.noreply.github.com> Date: Fri, 8 Mar 2024 12:50:28 +0100 Subject: [PATCH] Fix tests w realization1 (#44) * Add test data for realization 1 * Give better names for action --- .github/workflows/build_docs.yaml | 2 +- .github/workflows/run_tests.yaml | 2 +- .../iter-0/eclipse/model/2_R001_REEK-1.DATA | 282 ++++++++++++++++++ .../fmuconfig/output/global_variables.yml | 27 ++ .../output/global_variables_w_eclpath.yml | 28 ++ .../global_variables_w_eclpath_and_extras.yml | 37 +++ 6 files changed, 376 insertions(+), 2 deletions(-) create mode 100644 tests/data/reek/realization-1/iter-0/eclipse/model/2_R001_REEK-1.DATA create mode 100644 tests/data/reek/realization-1/iter-0/fmuconfig/output/global_variables.yml create mode 100644 tests/data/reek/realization-1/iter-0/fmuconfig/output/global_variables_w_eclpath.yml create mode 100644 tests/data/reek/realization-1/iter-0/fmuconfig/output/global_variables_w_eclpath_and_extras.yml diff --git a/.github/workflows/build_docs.yaml b/.github/workflows/build_docs.yaml index 92f8d314..c8d7de77 100644 --- a/.github/workflows/build_docs.yaml +++ b/.github/workflows/build_docs.yaml @@ -1,5 +1,5 @@ # build and test some end points -name: Build and deploy docs for fmu-sumo +name: Build and deploy docs for fmu-sumo-sim2sumo on: pull_request: diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index 36cd3569..8271a57b 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -1,4 +1,4 @@ -name: Build and test fmu-sumo-uploader +name: Build and test fmu-sumo-sim2sumo on: pull_request: diff --git a/tests/data/reek/realization-1/iter-0/eclipse/model/2_R001_REEK-1.DATA b/tests/data/reek/realization-1/iter-0/eclipse/model/2_R001_REEK-1.DATA new file mode 100644 index 00000000..7d4b9e06 --- /dev/null +++ b/tests/data/reek/realization-1/iter-0/eclipse/model/2_R001_REEK-1.DATA @@ -0,0 +1,282 @@ +--============================================================================== +-- Synthetic reservoir simulation model Reek (2016) +--============================================================================== +-- The model is a variant of an old synthetic case used in a BASRA course (2006) +-- Used in a FMU set up +-- Grid input data generated from RMS project reek +-------------------------------------------------------------------------------- +--RUNSPEC SECTION +-------------------------------------------------------------------------------- + +RUNSPEC + +-- Simulation run title +TITLE +Reek synthetic reservoir model + + +-- Create unformated save file (also need a SAVE at the end of history) +SAVE +/ + +NOECHO + +-- Simulation grid dimension (Imax, Jmax, Kmax) +DIMENS + 40 64 14 / + +-- Simulation run start +START + 1 JAN 2000 / + +--Activate Data Check Only option +--NOSIM + +-- Fluid phases present +OIL +GAS +WATER +--DISGAS + +-- Measurement unit used +METRIC + +GRIDOPTS + 'YES' 1* / + +--Use saturation table end-point scaling +--ENDSCALE +-- 'NODIR' 'REVERS' 1 20 / + +--Options for equilibration +EQLOPTS + 'QUIESC' / + +--Table dimensions +TABDIMS +-- NTSFUN NTPVT NSSFUN NPPVT NTFIP NRPVT + 1 1 50 24 6 20 / + +-- Dimensions for equilibration tables +EQLDIMS + 2 100 20 / + +--Regions dimension data +REGDIMS +-- NTFIP NMFIPR NRFREG NTFREG + 6 1 0 3 / + +--Dimensions for fault data +FAULTDIM + 1300 / + +--Dimension for well data +WELLDIMS + 100 100 100 100 / + +--Production well VFP table dimension +VFPPDIMS + 20 20 15 15 15 50 / + +-- If injection well VFP data is required, +-- they should be specified here first +VFPIDIMS + 10 2 5 / + +--Summary file dimensions +SMRYDIMS + 15000 / + +-- Input and output files format +UNIFIN +UNIFOUT + +-- Disables the initial index file output +NOINSPEC + +-- Disables the restart index file output +NORSSPEC + +------------------------------------------------------------------------- +--GRID SECTION +------------------------------------------------------------------------- + +GRID + +--Disable echoing of the input file +NOECHO + +--Requests output of an INIT file +INIT + +--Control output of the Grid geometry file +GRIDFILE + 0 1 / + +--Message print and stop limits +MESSAGES + 1* 1* 1* 1000 1* 1* 1* 1* 1000000 1000 0 / + +--Generates connections across pinched-out layers +PINCH + 0.4 NOGAP 1* TOPBOT TOP / + + +NOECHO + +--Include simulation grid +INCLUDE + '../include/grid/reek.grid' / + +-- Include faults +-- Make sure that faults' name have 8 characters max. +INCLUDE + '../include/grid/reek.faults' / + +--Include porosity +INCLUDE + '../include/grid/reek.poro' / + +--Include permeability +INCLUDE + '../include/grid/reek.perm' / + + +--Set Kv to Kh ratio +MULTIPLY + PERMZ 0.3 / +/ + +-- Modifies the transmissibility across named fault +INCLUDE + '../include/grid/reek.multflt' / + +--Introduce a vertical barrier to obtain different pressure systems in observed RFT +INCLUDE + '../include/grid/reek.multz' / + + +------------------------------------------------------------------------- +--EDIT SECTION +------------------------------------------------------------------------- + +EDIT + + +------------------------------------------------------------------------ +--PROPS SECTION +------------------------------------------------------------------------- + +PROPS + +-- Include relative perm data: +INCLUDE + '../include/props/swof.inc' / + +INCLUDE + '../include/props/sgof.txt' / + +-- Include endpoints: +INCLUDE + '../include/props/reek.endpoints' / + +-- In this example SWCR(critical water saturation) = SWL (connate water saturation) +COPY + SWL SWCR / + SWL SGU / +/ + +-- Next 2 keywords are used to make maximum gas saturation consistent: SGU=1-SWL +MULTIPLY + SGU -1 / +/ +ADD + SGU 1 / +/ + +SCALECRS +YES / + +-- Include PVT data +INCLUDE + '../include/props/reek.pvt' / + +-- Include SWinit data +INCLUDE + '../include/props/reek.swatinit' / + +------------------------------------------------------------------------ +--REGIONS SECTION +------------------------------------------------------------------------ + +REGIONS + +--Include EQLNUM regions +INCLUDE + '../include/regions/reek.eqlnum' / + +--Include FIPNUM regions +INCLUDE + '../include/regions/reek.fipnum' / + +EQUALS + SATNUM 1 / + PVTNUM 1 / +/ + +------------------------------------------------------------------------- +--SOLUTION SECTION +------------------------------------------------------------------------- + +SOLUTION + +RTEMP + 100 / + +INCLUDE +'../include/solution/reek.equil' / + +-- Dissolved gas-oil ratio versus depth +RSVD + 1500 184.0 + 4000 184.0 / + 1500 184.0 + 4000 184.0 / + +RPTSOL + FIP=2 RESTART=2 FIPRESV / + +RPTRST + BASIC=5 FLOWS / + +------------------------------------------------------------------------ +--SUMMARY SECTION +------------------------------------------------------------------------ + +SUMMARY + +INCLUDE + '../include/summary/reek.smry' / + +------------------------------------------------------------------------- +--SCHEDULE SECTION +------------------------------------------------------------------------- + +SCHEDULE + +TUNING + 1 5 7* 1 / + / + 12 1 50 1 50 50 / + +INCLUDE + '../include/schedule/reek_history.sch' / + +-- Write save file at the end of history +SAVE + +-- There must be a TSTEP or DATES between SAVE and END, otherwise no save file is created +TSTEP + 1 / + +END diff --git a/tests/data/reek/realization-1/iter-0/fmuconfig/output/global_variables.yml b/tests/data/reek/realization-1/iter-0/fmuconfig/output/global_variables.yml new file mode 100644 index 00000000..badeeb23 --- /dev/null +++ b/tests/data/reek/realization-1/iter-0/fmuconfig/output/global_variables.yml @@ -0,0 +1,27 @@ +model: + name: ff + revision: 21.x.0.dev +masterdata: + smda: + country: + - identifier: Norway + uuid: ad214d85-8a1d-19da-e053-c918a4889309 + discovery: + - short_identifier: DROGON + uuid: ad214d85-8a1d-19da-e053-c918a4889309 + field: + - identifier: DROGON + uuid: 00000000-0000-0000-0000-000000000000 + coordinate_system: + identifier: ST_WGS84_UTM37N_P32637 + uuid: ad214d85-dac7-19da-e053-c918a4889309 + stratigraphic_column: + identifier: DROGON_HAS_NO_STRATCOLUMN + uuid: 00000000-0000-0000-0000-000000000000 +access: + asset: + name: Drogon + ssdl: + access_level: internal + rep_include: true +sim2sumo: true diff --git a/tests/data/reek/realization-1/iter-0/fmuconfig/output/global_variables_w_eclpath.yml b/tests/data/reek/realization-1/iter-0/fmuconfig/output/global_variables_w_eclpath.yml new file mode 100644 index 00000000..7759c637 --- /dev/null +++ b/tests/data/reek/realization-1/iter-0/fmuconfig/output/global_variables_w_eclpath.yml @@ -0,0 +1,28 @@ +model: + name: ff + revision: 21.x.0.dev +masterdata: + smda: + country: + - identifier: Norway + uuid: ad214d85-8a1d-19da-e053-c918a4889309 + discovery: + - short_identifier: DROGON + uuid: ad214d85-8a1d-19da-e053-c918a4889309 + field: + - identifier: DROGON + uuid: 00000000-0000-0000-0000-000000000000 + coordinate_system: + identifier: ST_WGS84_UTM37N_P32637 + uuid: ad214d85-dac7-19da-e053-c918a4889309 + stratigraphic_column: + identifier: DROGON_HAS_NO_STRATCOLUMN + uuid: 00000000-0000-0000-0000-000000000000 +access: + asset: + name: Drogon + ssdl: + access_level: internal + rep_include: true +sim2sumo: + datafile: eclipse/model/2_R001_REEK-0.DATA diff --git a/tests/data/reek/realization-1/iter-0/fmuconfig/output/global_variables_w_eclpath_and_extras.yml b/tests/data/reek/realization-1/iter-0/fmuconfig/output/global_variables_w_eclpath_and_extras.yml new file mode 100644 index 00000000..46516f5e --- /dev/null +++ b/tests/data/reek/realization-1/iter-0/fmuconfig/output/global_variables_w_eclpath_and_extras.yml @@ -0,0 +1,37 @@ +model: + name: ff + revision: 21.x.0.dev +masterdata: + smda: + country: + - identifier: Norway + uuid: ad214d85-8a1d-19da-e053-c918a4889309 + discovery: + - short_identifier: DROGON + uuid: ad214d85-8a1d-19da-e053-c918a4889309 + field: + - identifier: DROGON + uuid: 00000000-0000-0000-0000-000000000000 + coordinate_system: + identifier: ST_WGS84_UTM37N_P32637 + uuid: ad214d85-dac7-19da-e053-c918a4889309 + stratigraphic_column: + identifier: DROGON_HAS_NO_STRATCOLUMN + uuid: 00000000-0000-0000-0000-000000000000 +access: + asset: + name: Drogon + ssdl: + access_level: internal + rep_include: true +sim2sumo: + datafile: eclipse/model/2_R001_REEK-0.DATA + datatypes: + - summary + - grid + - rft + options: + arrow: false + time_index: daily, + start_date: 2002-01-02 + end_date: 2003-01-02