Skip to content

Commit 3b90b95

Browse files
committed
Update to ogs5py 1.0
1 parent d70a997 commit 3b90b95

File tree

1,831 files changed

+3966895
-26362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,831 files changed

+3966895
-26362
lines changed

LICENSE.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Copyright (c) 2019, OpenGeoSys Community (http://www.opengeosys.org)
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
1. Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
2. Redistributions in binary form must reproduce the above copyright
9+
notice, this list of conditions and the following disclaimer in the
10+
documentation and/or other materials provided with the distribution.
11+
3. All advertising materials mentioning features or use of this software
12+
must display the following acknowledgement:
13+
This product includes software developed by the OpenGeoSys Community.
14+
4. Neither the name of the OpenGeoSys Community nor the
15+
names of its contributors may be used to endorse or promote products
16+
derived from this software without specific prior written permission.
17+
5. Attribute the OpenGeoSys Community, preferably citing an appropriate
18+
paper listed on the OpenGeoSys Community homepage:
19+
http://www.opengeosys.org/papers
20+
21+
THIS SOFTWARE IS PROVIDED BY THE OpenGeoSys Community ''AS IS'' AND ANY
22+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24+
DISCLAIMED. IN NO EVENT SHALL THE OpenGeoSys Community BE LIABLE FOR ANY
25+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
28+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 27 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,35 @@
1-
Welcome to the ogs5py benchmarks
2-
================================
3-
4-
Purpose
5-
-------
6-
Most of the OGS5 benchmarks were rewritten into a ogs5py-script in this repository.
7-
8-
The following were skipped:
9-
10-
+ `HT_EOS` (folder) \*.bat files to copy stuff... uarg.. (maybe rewrite with ogs5py)
11-
+ `bact_growth_new` #THERMAL in mfp
12-
+ `HT_var_density_1D` $AREA in mmp
13-
+ `thm_quad` $STORATIVITY in mmp
14-
+ `viscosity_yaws` $AREA in mmp
15-
+ `uc_pris` GLI not valid (SRF not present for VOLUME)
16-
+ `brand_m1_l1` GLI not valid (TIN and Polylines at the same time[?])
17-
+ `2d_h_us_line_Warrick` lonesome mmp
18-
+ `model_1` $AREA in msh (not supported by ogs5py)
19-
20-
The following benchmarks have multiple sub keywords in some files, which is
21-
not convertable to a ogs5py script at the moment. Therefore the following are skipped as well:
22-
23-
+ `lag2d` repeated NEIGHBOR (cct)
24-
+ `decal` repeated NEIGHBOR (cct)
25-
+ `2D1P_transport` repeated POROSITY (mmp)
26-
+ `Nuklidtransport` repeated MASS_DISPERSION (mmp)
27-
+ `cement2d` repeated KINETIC_GEM (gem)
28-
+ `model_1` repeated DAT_TYPE (out)
29-
+ `Leakage` repeated TIM_TYPE (out)
30-
+ `CO2-FLOW` repeated DAT_TYPE (out)
31-
+ `2pf_2pt` repeated SIMULATOR (pcs)
32-
33-
34-
Generation
35-
----------
1+
# Welcome to the ogs5py benchmarks
2+
3+
<p align="center">
4+
<img src="https://raw.githubusercontent.com/GeoStat-Framework/ogs5py/master/docs/source/pics/OGS.png" alt="ogs5py-LOGO" width="251px"/>
5+
</p>
6+
7+
## Purpose
8+
9+
To get in touch with [``ogs5py``][ogs5_link], most of the OGS5 benchmarks were rewritten into a ogs5py-script in this repository.
10+
These benchmarks can be seen as a smorgasbord to provide a starting point for your own ogs5py model.
11+
12+
You can clone this repository with:
13+
14+
git clone https://github.com/GeoStat-Framework/ogs5py_benchmarks.git
15+
16+
Or simply download it as a [zip-file][zip].
17+
18+
The original Benchmarks can be found here: https://github.com/ufz/ogs5-benchmarks
19+
20+
21+
## Generation
3622

3723
The scripts were generated with the python script
3824

3925
gen_benchmark_scripts.py
40-
26+
4127
You can run all generated scripts for testing with the python script
42-
28+
4329
run_ogs5py_scripts.py
4430

4531

46-
Created January 2019, Copyright Sebastian Müller 2019
32+
Copyright Sebastian Müller 2019
33+
34+
[ogs5_link]: https://github.com/GeoStat-Framework/ogs5py
35+
[zip]: https://github.com/GeoStat-Framework/ogs5py_benchmarks/archive/master.zip

benchmarks/Anisotropy/moleculardiffusion/soil_layer.gli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
|-------------- Written with ogs5py --------------|
1+
|------------------ Written with ogs5py ------------------|
22
#POINTS
33
0 0.0 1.0 0.0 $NAME POINT0 $MD 0.05
44
1 0.0 0.0 0.0 $NAME POINT1 $MD 0.05
@@ -265,4 +265,4 @@
265265
$POLYLINES
266266
POLYLINE6
267267
#STOP
268-
|-- Written with ogs5py (0.6.1) on: 2019-01-22_19-37-18 --|
268+
|-- Written with ogs5py (1.0.0.rc1) on: 2019-08-22_15-03-32 --|

benchmarks/Anisotropy/moleculardiffusion/soil_layer.msh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,4 +1153,4 @@
11531153
734 6 tri 324 162 161
11541154
735 6 tri 324 163 162
11551155
#STOP
1156-
|-- Written with ogs5py (0.6.1) on: 2019-01-22_19-37-18 --|
1156+
|-- Written with ogs5py (1.0.0.rc1) on: 2019-08-22_15-03-32 --|

benchmarks/Anisotropy/moleculardiffusion/soil_layer.py

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66
task_id='soil_layer',
77
output_dir='out',
88
)
9+
model.msh.read_file('soil_layer.msh')
10+
model.gli.read_file('soil_layer.gli')
11+
model.pcs.add_block(
12+
main_key='PROCESS',
13+
PCS_TYPE='LIQUID_FLOW',
14+
NUM_TYPE='NEW',
15+
)
16+
model.pcs.add_block(
17+
main_key='PROCESS',
18+
PCS_TYPE='MASS_TRANSPORT',
19+
NUM_TYPE='NEW',
20+
)
921
model.bc.add_block(
1022
main_key='BOUNDARY_CONDITION',
1123
PCS_TYPE='LIQUID_FLOW',
@@ -34,7 +46,6 @@
3446
GEO_TYPE=['POLYLINE', 'POLYLINE11'],
3547
DIS_TYPE=['CONSTANT', 1.0],
3648
)
37-
model.gli.read_file('soil_layer.gli')
3849
model.ic.add_block(
3950
main_key='INITIAL_CONDITION',
4051
PCS_TYPE='LIQUID_FLOW',
@@ -56,19 +67,8 @@
5667
GEO_TYPE=['POLYLINE', 'POLYLINE11'],
5768
DIS_TYPE=['CONSTANT', 1.0],
5869
)
59-
model.mcp.add_block(
60-
main_key='COMPONENT_PROPERTIES',
61-
NAME='Tracer',
62-
MOBILE=1,
63-
TRANSPORT_PHASE=0,
64-
DIFFUSION=[1, 6e-10],
65-
)
66-
model.mfp.add_block(
67-
main_key='FLUID_PROPERTIES',
68-
FLUID_TYPE='LIQUID',
69-
PCS_TYPE='PRESSURE1',
70-
DENSITY=[1, 1000.0],
71-
VISCOSITY=[1, 0.001],
70+
model.st.add_block(
71+
main_key='SOURCE_TERM',
7272
)
7373
model.mmp.add_block(
7474
main_key='MEDIUM_PROPERTIES',
@@ -154,7 +154,6 @@
154154
MASS_DISPERSION=[1, 0.0, 0.0],
155155
DENSITY=[1, 2000.0],
156156
)
157-
model.msh.read_file('soil_layer.msh')
158157
model.msp.add_block(
159158
main_key='SOLID_PROPERTIES',
160159
DENSITY=[1, 2000.0],
@@ -239,6 +238,20 @@
239238
[1, 0.00118799939],
240239
],
241240
)
241+
model.mfp.add_block(
242+
main_key='FLUID_PROPERTIES',
243+
FLUID_TYPE='LIQUID',
244+
PCS_TYPE='PRESSURE1',
245+
DENSITY=[1, 1000.0],
246+
VISCOSITY=[1, 0.001],
247+
)
248+
model.mcp.add_block(
249+
main_key='COMPONENT_PROPERTIES',
250+
NAME='Tracer',
251+
MOBILE=1,
252+
TRANSPORT_PHASE=0,
253+
DIFFUSION=[1, 6e-10],
254+
)
242255
model.num.add_block(
243256
main_key='NUMERICS',
244257
PCS_TYPE='LIQUID_FLOW',
@@ -251,29 +264,6 @@
251264
LINEAR_SOLVER=[2, 6, 1e-14, 1000, 0.5, 1, 2],
252265
ELE_GAUSS_POINTS=3,
253266
)
254-
model.out.add_block(
255-
main_key='OUTPUT',
256-
NOD_VALUES=[
257-
['PRESSURE1'],
258-
['Tracer'],
259-
],
260-
GEO_TYPE='DOMAIN',
261-
TIM_TYPE=['STEPS', 1],
262-
DAT_TYPE='PVD',
263-
)
264-
model.pcs.add_block(
265-
main_key='PROCESS',
266-
PCS_TYPE='LIQUID_FLOW',
267-
NUM_TYPE='NEW',
268-
)
269-
model.pcs.add_block(
270-
main_key='PROCESS',
271-
PCS_TYPE='MASS_TRANSPORT',
272-
NUM_TYPE='NEW',
273-
)
274-
model.st.add_block(
275-
main_key='SOURCE_TERM',
276-
)
277267
model.tim.add_block(
278268
main_key='TIME_STEPPING',
279269
PCS_TYPE='LIQUID_FLOW',
@@ -288,5 +278,15 @@
288278
TIME_START=0.0,
289279
TIME_END=300000000.0,
290280
)
281+
model.out.add_block(
282+
main_key='OUTPUT',
283+
NOD_VALUES=[
284+
['PRESSURE1'],
285+
['Tracer'],
286+
],
287+
GEO_TYPE='DOMAIN',
288+
TIM_TYPE=['STEPS', 1],
289+
DAT_TYPE='PVD',
290+
)
291291
model.write_input()
292292
model.run_model()

benchmarks/Anisotropy/permeability/soil_layer.gli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
|-------------- Written with ogs5py --------------|
1+
|------------------ Written with ogs5py ------------------|
22
#POINTS
33
0 0.0 1.0 0.0 $NAME POINT0 $MD 0.05
44
1 0.0 0.0 0.0 $NAME POINT1 $MD 0.05
@@ -265,4 +265,4 @@
265265
$POLYLINES
266266
POLYLINE6
267267
#STOP
268-
|-- Written with ogs5py (0.6.1) on: 2019-01-22_19-37-18 --|
268+
|-- Written with ogs5py (1.0.0.rc1) on: 2019-08-22_15-03-32 --|

benchmarks/Anisotropy/permeability/soil_layer.msh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,4 +1153,4 @@
11531153
734 6 tri 324 162 161
11541154
735 6 tri 324 163 162
11551155
#STOP
1156-
|-- Written with ogs5py (0.6.1) on: 2019-01-22_19-37-18 --|
1156+
|-- Written with ogs5py (1.0.0.rc1) on: 2019-08-22_15-03-32 --|

benchmarks/Anisotropy/permeability/soil_layer.py

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66
task_id='soil_layer',
77
output_dir='out',
88
)
9+
model.msh.read_file('soil_layer.msh')
10+
model.gli.read_file('soil_layer.gli')
11+
model.pcs.add_block(
12+
main_key='PROCESS',
13+
PCS_TYPE='LIQUID_FLOW',
14+
NUM_TYPE='NEW',
15+
)
16+
model.pcs.add_block(
17+
main_key='PROCESS',
18+
PCS_TYPE='MASS_TRANSPORT',
19+
NUM_TYPE='NEW',
20+
)
921
model.bc.add_block(
1022
main_key='BOUNDARY_CONDITION',
1123
PCS_TYPE='LIQUID_FLOW',
@@ -34,7 +46,6 @@
3446
GEO_TYPE=['POLYLINE', 'POLYLINE11'],
3547
DIS_TYPE=['CONSTANT', 1.0],
3648
)
37-
model.gli.read_file('soil_layer.gli')
3849
model.ic.add_block(
3950
main_key='INITIAL_CONDITION',
4051
PCS_TYPE='LIQUID_FLOW',
@@ -56,19 +67,8 @@
5667
GEO_TYPE=['POLYLINE', 'POLYLINE11'],
5768
DIS_TYPE=['CONSTANT', 1.0],
5869
)
59-
model.mcp.add_block(
60-
main_key='COMPONENT_PROPERTIES',
61-
NAME='Tracer',
62-
MOBILE=1,
63-
TRANSPORT_PHASE=0,
64-
DIFFUSION=[1, 6e-10],
65-
)
66-
model.mfp.add_block(
67-
main_key='FLUID_PROPERTIES',
68-
FLUID_TYPE='LIQUID',
69-
PCS_TYPE='PRESSURE1',
70-
DENSITY=[1, 1000.0],
71-
VISCOSITY=[1, 0.001],
70+
model.st.add_block(
71+
main_key='SOURCE_TERM',
7272
)
7373
model.mmp.add_block(
7474
main_key='MEDIUM_PROPERTIES',
@@ -154,7 +154,6 @@
154154
MASS_DISPERSION=[1, 0.0, 0.0],
155155
DENSITY=[1, 2000.0],
156156
)
157-
model.msh.read_file('soil_layer.msh')
158157
model.msp.add_block(
159158
main_key='SOLID_PROPERTIES',
160159
DENSITY=[1, 2000.0],
@@ -183,6 +182,20 @@
183182
main_key='SOLID_PROPERTIES',
184183
DENSITY=[1, 2000.0],
185184
)
185+
model.mfp.add_block(
186+
main_key='FLUID_PROPERTIES',
187+
FLUID_TYPE='LIQUID',
188+
PCS_TYPE='PRESSURE1',
189+
DENSITY=[1, 1000.0],
190+
VISCOSITY=[1, 0.001],
191+
)
192+
model.mcp.add_block(
193+
main_key='COMPONENT_PROPERTIES',
194+
NAME='Tracer',
195+
MOBILE=1,
196+
TRANSPORT_PHASE=0,
197+
DIFFUSION=[1, 6e-10],
198+
)
186199
model.num.add_block(
187200
main_key='NUMERICS',
188201
PCS_TYPE='LIQUID_FLOW',
@@ -195,29 +208,6 @@
195208
LINEAR_SOLVER=[2, 6, 1e-14, 1000, 0.5, 1, 2],
196209
ELE_GAUSS_POINTS=3,
197210
)
198-
model.out.add_block(
199-
main_key='OUTPUT',
200-
NOD_VALUES=[
201-
['PRESSURE1'],
202-
['Tracer'],
203-
],
204-
GEO_TYPE='DOMAIN',
205-
TIM_TYPE=['STEPS', 1],
206-
DAT_TYPE='PVD',
207-
)
208-
model.pcs.add_block(
209-
main_key='PROCESS',
210-
PCS_TYPE='LIQUID_FLOW',
211-
NUM_TYPE='NEW',
212-
)
213-
model.pcs.add_block(
214-
main_key='PROCESS',
215-
PCS_TYPE='MASS_TRANSPORT',
216-
NUM_TYPE='NEW',
217-
)
218-
model.st.add_block(
219-
main_key='SOURCE_TERM',
220-
)
221211
model.tim.add_block(
222212
main_key='TIME_STEPPING',
223213
PCS_TYPE='LIQUID_FLOW',
@@ -232,5 +222,15 @@
232222
TIME_START=0.0,
233223
TIME_END=300000000.0,
234224
)
225+
model.out.add_block(
226+
main_key='OUTPUT',
227+
NOD_VALUES=[
228+
['PRESSURE1'],
229+
['Tracer'],
230+
],
231+
GEO_TYPE='DOMAIN',
232+
TIM_TYPE=['STEPS', 1],
233+
DAT_TYPE='PVD',
234+
)
235235
model.write_input()
236236
model.run_model()

0 commit comments

Comments
 (0)