opm-simulators icon indicating copy to clipboard operation
opm-simulators copied to clipboard

remove 16 days restriction for timestep in predicition mode

Open totto82 opened this issue 5 years ago • 24 comments

This PR is for testing. Both the time-stepping, convergence and well models has improved since this hard-coded limit was enforced. Is it time to remove it? The initial testing I have done indicates so, but more testing is needed.

totto82 avatar Dec 08 '20 12:12 totto82

For clarification, the 16-day limitation was imposed to obtain comparable results for the targeting field case at that time. It was not due to stability reason.

The commercial simulator typically uses much smaller time steps for prediction cases, I guess the reason is that you will be able to do more accurate prediction. Even for commercial simulators, with different time steps the results for prediction case can be significantly different due to closing and opening wells at different orders and different timing. For prediction cases, smaller time steps and more stable simulation will be much more preferable. Because the closing and opening wells can be determined within much smaller time intervals (just like a ruler's smallest unit decides how accurate/precise the ruler is).

GitPaean avatar Dec 08 '20 20:12 GitPaean

benchmark please

totto82 avatar Feb 19 '21 08:02 totto82

Benchmark result overview:

Test Configuration Relative
opm-git OPM Benchmark: flow_mpi_extra - Threads: 1 0.995
opm-git OPM Benchmark: flow_mpi_extra - Threads: 8 0.998
opm-git OPM Benchmark: flow_mpi_norne - Threads: 1 0.995
opm-git OPM Benchmark: flow_mpi_norne - Threads: 8 0.986
  • Speed-up = Total time master / Total time pull request. Above 1.0 is an improvement. *

View result details @ https://www.ytelses.com/opm/?page=result&id=1077

ytelses avatar Feb 19 '21 12:02 ytelses

benchmark please

totto82 avatar Mar 15 '21 11:03 totto82

Benchmark result overview:

Test Configuration Relative
opm-git OPM Benchmark: flow_mpi_extra - Threads: 1 1.018
opm-git OPM Benchmark: flow_mpi_extra - Threads: 8 0.98
opm-git OPM Benchmark: flow_mpi_norne - Threads: 1 1.028
opm-git OPM Benchmark: flow_mpi_norne - Threads: 8 1.047
opm-git OPM Benchmark: flow_mpi_norne_4c_msw - Threads: 1 1.048
  • Speed-up = Total time master / Total time pull request. Above 1.0 is an improvement. *

View result details @ https://www.ytelses.com/opm/?page=result&id=1110

ytelses avatar Mar 15 '21 16:03 ytelses

Nice improvement on the prediction case! Good motivation for replacing this feature with something more sophisticated.

alfbr avatar Mar 16 '21 08:03 alfbr

Do we know why we are missing OPM Benchmark: flow_mpi_norne_4c_msw - Threads: 8?

totto82 avatar Mar 16 '21 08:03 totto82

Do we know why we are missing OPM Benchmark: flow_mpi_norne_4c_msw - Threads: 8?

Sorry, did not see that one. Probably it timed out, i.e., take too long to finish or did not finish at all. Have you tried to run it locally?

alfbr avatar Mar 16 '21 08:03 alfbr

Have you tried to run it locally?

Not yet. But I will and report back.

totto82 avatar Mar 16 '21 08:03 totto82

It runs throw with 8 cores locally, but number of problems is increased. There are lot of convergence issues related to wells for both the single and the mpi run. I suggest we wait to merge this until we have improved the convergence. We may also want to consider to use a smaller value for target newton iterations or improve the timestep estimator further.

totto82 avatar Mar 16 '21 09:03 totto82

We may also want to consider to use a smaller value for target newton iterations

This will reduce the time step more quickly due to target newton iteration numbers, is this what you want to achieve?

GitPaean avatar Mar 16 '21 09:03 GitPaean

jenkins build this please

totto82 avatar Nov 11 '21 07:11 totto82

benchmark please

totto82 avatar Nov 12 '21 10:11 totto82

benchmark please

totto82 avatar Dec 08 '21 12:12 totto82

jenkins build this please

totto82 avatar Dec 13 '21 14:12 totto82

With more cases we have seen now, we should try to remove the 16 days constraints in some way.

GitPaean avatar Sep 06 '23 09:09 GitPaean

16 days constraints were introduced back then for some cases (group control related), the reference running were performed with much smaller time steps (smaller than 16 days due to their time stepping algorithms), then without this constraint, it was hard to have comparable results. With the time stepping algorithms back then, we obtained much larger time steps.

Now we see for many cases, the reference running were performed with much larger time steps. Maybe we should try to remove this 16-day time step constraint. while I not sure how to proceed with the testing.

GitPaean avatar Sep 06 '23 09:09 GitPaean

jenkins build this please

totto82 avatar Feb 05 '24 10:02 totto82

jenkins build this please

totto82 avatar Feb 05 '24 11:02 totto82

jenkins build this please

totto82 avatar Jun 06 '24 13:06 totto82

jenkins build this please

totto82 avatar Aug 26 '24 12:08 totto82

benchmark please

totto82 avatar Aug 28 '24 07:08 totto82

benchmark please

totto82 avatar Sep 02 '24 07:09 totto82

jenkins build this please

totto82 avatar Sep 14 '24 20:09 totto82