Skip to content

Commit ce0b87f

Browse files
Increase number of allowed fractures to 100,000
1 parent c013f43 commit ce0b87f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/geophires_x/Reservoir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def __init__(self, model: Model):
287287
self.fracnumb = self.ParameterDict[self.fracnumb.Name] = intParameter(
288288
"Number of Fractures",
289289
DefaultValue=10,
290-
AllowableRange=list(range(1, 150, 1)),
290+
AllowableRange=list(range(1, 100_000, 1)),
291291
UnitType=Units.NONE,
292292
ErrMessage="assume default number of fractures (10)",
293293
ToolTipText="Number of identical parallel fractures in EGS fracture-based reservoir model."

tests/geophires_x_tests/test_reservoir.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
from geophires_x.GeoPHIRESUtils import static_pressure_MPa
88
from geophires_x.Model import Model
99
from geophires_x.Reservoir import Reservoir
10+
from geophires_x_client import GeophiresInputParameters
11+
from geophires_x_client import GeophiresXClient
1012
from tests.base_test_case import BaseTestCase
1113

1214

@@ -27,6 +29,7 @@ def test_reservoir_lithostatic_pressure(self):
2729
self.assertAlmostEqual(79.433865, p.magnitude, places=3)
2830
self.assertEqual('megapascal', p.units)
2931

32+
# noinspection PyMethodMayBeStatic
3033
def _new_model(self, input_file=None) -> Model:
3134
stash_cwd = Path.cwd()
3235
stash_sys_argv = sys.argv
@@ -45,3 +48,15 @@ def _new_model(self, input_file=None) -> Model:
4548
os.chdir(stash_cwd)
4649

4750
return m
51+
52+
def test_number_of_fractures(self):
53+
r = GeophiresXClient().get_geophires_result(
54+
GeophiresInputParameters(
55+
from_file_path=self._get_test_file_path('generic-egs-case.txt'),
56+
params={
57+
'Number of Fractures': 10_000,
58+
},
59+
)
60+
)
61+
62+
self.assertEqual(10_000, r.result['RESERVOIR PARAMETERS']['Number of fractures']['value'])

0 commit comments

Comments
 (0)