You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_sources/examples.rst.txt
+30-20Lines changed: 30 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,8 @@ Via OPM Flow decks
28
28
==================
29
29
30
30
The current development of **pycopm** focuses on creating tailored models (grid refinement, grid coarsening, submodels, and transformations) by using input decks.
31
-
While in the Hello world example these four different options are demonstrated, for the latter examples the focus is on the grid coarsening functionality.
31
+
While in the Hello world example these four different options are demonstrated, for the latter examples the focus is on the grid coarsening functionality, and the
32
+
SPE10 also shows the submodel functionality.
32
33
33
34
Hello world
34
35
-----------
@@ -70,22 +71,6 @@ we apply a grid refinement on the cells in the middle x and y location, and fina
70
71
The text in the legends highlight that the pore volume is conserved (35.58) and the number of active cells is reduced from 351 to 25 in the
71
72
submodel and after increased to 41 due to the grid refinement.
72
73
73
-
74
-
SPE10
75
-
-----
76
-
77
-
By downloading the `SPE10_MODEL2 model <https://github.com/OPM/opm-data/tree/master/spe10model2>`_, then:
78
-
79
-
.. code-block:: bash
80
-
81
-
pycopm -i SPE10_MODEL2.DATA -o coarser -c 4,8,2
82
-
83
-
generates a coarsened model from ca. 1 million cells to ca. 20 thousands cells.
84
-
85
-
.. figure:: figs/spe10_model2_coarser.png
86
-
87
-
Porosity values for the (left) original and (right) coarsed SPE10 model.
88
-
89
74
Smeaheia
90
75
--------
91
76
@@ -94,7 +79,7 @@ then:
94
79
95
80
.. code-block:: bash
96
81
97
-
pycopm -i Statoil_Feasibility_sim_model_with_depletion_KROSS_INJ_SECTOR_20.DATA -o . -c 5,4,3 -a min -m all
82
+
pycopm -c 5,4,3 -a min -m all -i Statoil_Feasibility_sim_model_with_depletion_KROSS_INJ_SECTOR_20.DATA -o .
98
83
99
84
will generate a coarser model 5 times in the x direction, 4 in the y direction, and 3 in the z direction, where the coarse cell is
100
85
made inactive if at least one cell is inactive (**-a min**).
@@ -103,7 +88,7 @@ We use our `plopm <https://github.com/cssr-tools/plopm>`_ friend to generate PNG
Copy file name to clipboardExpand all lines: docs/_sources/introduction.rst.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ where
37
37
-o The base name of the :doc:`output folder <./output_folder>` ('.' by default, i.e., the folder where pycopm is executed).
38
38
-f OPM Flow full path to executable or just 'flow' ('flow' by default).
39
39
-m Execute a dry run of the input deck to generate the static properties ('prep'), generate only the modified files ('deck'), only exectute a dry run on the generated model ('dry'), 'prep_deck', 'deck_dry', or do all ('all') ('prep_deck' by default).
40
-
-v The location to extract the sub model which can be assigned by a region assignation, e.g., 'fipnum 2,4' extracts the cells with fipnums equal to 2 or 4, or can be assigned by a polygon given the xy locations in meters, e.g., 'xypolygon [0,0] [30,0] [30,30] [0,0]' ('' by default).
40
+
-v The location to extract the sub model which can be assigned by region values, e.g., 'fipnum 2,4' extracts the cells with fipnums equal to 2 or 4, by a polygon given the xy locations in meters, e.g., 'xypolygon [0,0] [30,0] [30,30] [0,0]', or by the name of the well and three different options for the neighbourhood: box, diamond, and diamondxy, where for box the i, j, and k interval around the connections are given, e.g., 'welln box [-1,1] [-2,2] [0,3]' results in a vicinity with 1 pm cell in the x direction, 2 pm cells in the y direction and only 3 cells in the k positive direction, while the diamond considers only the given number of cells around the well connections (e.g., 'welln diamond 2') and diamondxy it is restricted to the xy plane ('' by default).
41
41
-c Level of coarsening in the x, y, and z dir ('2,2,2' by default; either use this flag or the -x, -y, and -z ones).
42
42
-x Array of x-coarsening, e.g., if the grid has 6 cells in the x direction, then '0,2,0,2,0,2,0' would generate a coarsened model with 3 cells, while '0,2,2,2,2,2,0' would generate a coarser model with 1 cell, i.e., 0 keeps the pilars while 2 removes them. As an alternative, the range of the cells to coarse can be given separate them by commas, e.g., '1:3,5:6' generates a coarsened model with 3 cells where the cells with the first three and two last i indices are coarsened to one ('' by default),
43
43
-y Array of y-coarsening, see the description for -x ('' by default).
Copy file name to clipboardExpand all lines: docs/_sources/theory.rst.txt
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,13 @@ Regarding the boundary conditions in the extracted model with respect to the por
131
131
Figure 3: The shape to extract the sudmodel corresponds to "-v 'xypolygon [50,90] [60,60] [90,60] [65,40] [75,10] [50,30] [25,10] [35,40] [10,60] [40,60] [50,90]'".
132
132
The j indices for the cells have been accordingly shifted in the extracted model, and the right figure shows the projected pore volume on the boundary.
133
133
134
+
In addition, it is possible to extract submodels around wells, with three different options for the neighbourhood: box, diamond, and diamondxy. The box option allows to define
135
+
the intervals to extract the cells, while the diamond and diamondxy results in fewer cells since the cells in the corners are trimmed.
136
+
137
+
.. figure:: figs/submodelwell.png
138
+
139
+
Figure 4: The submodel in `norne <https://github.com/OPM/opm-tests/tree/master/norne>`_ by executing "-v 'E-3H diamondxy 0' -p 1", "-v 'E-3H diamond 1' -p 1", and "-v 'E-3H box [-1,2] [-2,3] [-1,1]' -p 1" respectively.
140
+
134
141
===============
135
142
Transformations
136
143
===============
@@ -143,4 +150,4 @@ groups which missmatch in the thickness of layers), and rotations (e.g., to alig
143
150
144
151
.. figure:: figs/transformation.png
145
152
146
-
Figure 4: Extracted shape in Figure 3 after a rotation "-d 'rotatexy 45'" (left) and scaling "-d 'scale [1,0.25,1]'" (right).
153
+
Figure 5: Extracted shape in Figure 3 after a rotation "-d 'rotatexy 45'" (left) and scaling "-d 'scale [1,0.25,1]'" (right).
0 commit comments