Skip to content

Commit 01d3a2c

Browse files
Merge pull request NREL#266 from kfbeckers/main
changes invertlaplace method to Stehfest Algorithm to make Gringarten model more stable
2 parents 67815a8 + 1c623f1 commit 01d3a2c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/geophires_x/MPFReservoir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def Calculate(self, model: Model):
8888
Twnd = []
8989
try:
9090
for t in range(1, len(model.reserv.timevector.value)):
91-
Twnd = Twnd + [float(invertlaplace(fp, td[t], method='talbot'))]
91+
Twnd = Twnd + [float(invertlaplace(fp, td[t], method='stehfest'))]
9292
except:
9393
print(
9494
"Error: GEOPHIRES could not execute numerical inverse laplace calculation for reservoir model 1. Simulation will abort.")

tests/examples/Fervo_Norbeck_Latimer_2023.out

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.4.42
8-
Simulation Date: 2024-07-17
9-
Simulation Time: 11:19
10-
Calculation Time: 0.353 sec
7+
GEOPHIRES Version: 3.5.0
8+
Simulation Date: 2024-07-24
9+
Simulation Time: 18:06
10+
Calculation Time: 1.152 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -144,7 +144,7 @@ Simulation Metadata
144144
6 1.0129 184.12 0.6919 2.1612 8.8239
145145
7 1.0129 184.13 0.6920 2.1612 8.8237
146146
8 1.0108 183.75 0.6925 2.1430 8.7720
147-
9 1.0019 182.13 0.6948 2.0640 8.5463
147+
9 1.0019 182.13 0.6948 2.0640 8.5464
148148
10 0.9771 177.63 0.7009 1.8532 7.9258
149149

150150

0 commit comments

Comments
 (0)