OPM / opm-simulators

Simulator programs and utilities for automatic differentiation.
http://www.opm-project.org
GNU General Public License v3.0
112 stars 122 forks source link

Compressed air models not running in Flow #5260

Open EdmundStephens opened 6 months ago

EdmundStephens commented 6 months ago

[v2023.10.0] We are running single cells and well / pipeline performance models for a compressed air energy storage investigation. (Adjunct to Windfarm curtailment and load balancing). Please can you suggest what is going wrong, if there are any --parameter-file settings that might help ?

These are single phase (GAS only) models, the model runs in Eclipse but not in Flow. CAES_test1_Ecl.zip CAES_test1_Flow.zip

The Flow run gives the following error:

Complete report step 1 (1 DAYS) at 2030-01-02 (0 DAYS)

Initializing report step 2/289 at 2030-01-02 (0 DAYS) line 389
Processing keyword RPTRST at line 392
Processing keyword WELOPEN at line 401
Complete report step 2 (0.041666666666666664 DAYS) at 2030-01-02 (1 DAYS)

Initializing report step 3/289 at 2030-01-02 (1 DAYS) line 406
Complete report step 3 (0.041666666666666664 DAYS) at 2030-01-02 (1.0416666666666665 DAYS)

Initializing report step 4/289 at 2030-01-02 (1.0416666666666665 DAYS) line 406
Complete report step 4 (0.041666666666666664 DAYS) at 2030-01-02 (1.0833333333333333 DAYS)

Initializing report step 5/289 at 2030-01-02 (1.0833333333333333 DAYS) line 406
Complete report step 5 (0.041666666666666664 DAYS) at 2030-01-02 (1.125 DAYS)
No suitable configuration found, valid are Twophase, polymer, foam, brine, solvent, energy, and blackoil.

When I put in a WATER phase, again this runs Ok in Eclipse but a different error is produced by Flow: CAES_test2_Flow.zip CAES_test2_Ecl.zip

================ Starting main simulation loop ===============

Report step  0/289 at day 0/13, date = 01-Jan-2030
Using Newton nonlinear solver.

Starting time step 0, stepsize 1 days, at day 0/1, date = 01-Jan-2030

Error: [./opm/simulators/wells/StandardWellPrimaryVariables.cpp:694] Infinite primary variable after update from wellState, well: I1A

Warning: Inner well iterations failed for well I1A Treat the well as unconverged.

Error: [./opm/simulators/wells/StandardWellPrimaryVariables.cpp:694] Infinite primary variable after update from wellState, well: I1A

Warning: Inner well iterations failed for well I1A Treat the well as unconverged.

Error: [./opm/simulators/wells/StandardWellPrimaryVariables.cpp:694] Infinite primary variable after update from wellState, well: I1A

Warning: Inner well iterations failed for well I1A Treat the well as unconverged.

Error: [./opm/simulators/wells/StandardWellPrimaryVariables.cpp:694] Infinite primary variable after update from wellState, well: I1A

Warning: Inner well iterations failed for well I1A Treat the well as unconverged.
Restart file written for report step   0/289, date = 01-Jan-2030 00:00:00

Error: [./opm/simulators/wells/StandardWellPrimaryVariables.cpp:694] Infinite primary variable after update from wellState, well: I1A

Warning: Inner well iterations failed for well I1A Treat the well as unconverged.
 well I1A gets SHUT during iteration
flow: ./ebos/eclproblem.hh:1382: void Opm::EclProblem<TypeTag>::source(Opm::EclProblem<TypeTag>::RateVector&, unsigned int, unsigned int) const [with TypeTag = Opm::Properties::TTag::EclFlowGasWaterProblem; Opm::EclProblem<TypeTag>::RateVector = Opm::BlackOilRateVector<Opm::Properties::TTag::EclFlowGasWaterProblem>]: Assertion `isfinite(rate[eqIdx])' failed.
[DESKTOP-8VC26F1:00011] *** Process received signal ***
[DESKTOP-8VC26F1:00011] Signal: Aborted (6)
[DESKTOP-8VC26F1:00011] Signal code:  (-6)
[DESKTOP-8VC26F1:00011] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7fe2aca6b420]
[DESKTOP-8VC26F1:00011] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7fe2aafd500b]
[DESKTOP-8VC26F1:00011] [ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7fe2aafb4859]
[DESKTOP-8VC26F1:00011] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x22729)[0x7fe2aafb4729]
[DESKTOP-8VC26F1:00011] [ 4] /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7fe2aafc5fd6]
[DESKTOP-8VC26F1:00011] [ 5] flow(+0x7c58eb)[0x563fd78138eb]
[DESKTOP-8VC26F1:00011] [ 6] /lib/x86_64-linux-gnu/libgomp.so.1(GOMP_parallel+0x46)[0x7fe2ab6098e6]
[DESKTOP-8VC26F1:00011] [ 7] flow(+0x7ec9a2)[0x563fd783a9a2]
[DESKTOP-8VC26F1:00011] [ 8] flow(+0x7ed210)[0x563fd783b210]
[DESKTOP-8VC26F1:00011] [ 9] flow(+0x7ffaa2)[0x563fd784daa2]
[DESKTOP-8VC26F1:00011] [10] flow(+0x803aa9)[0x563fd7851aa9]
[DESKTOP-8VC26F1:00011] [11] flow(+0x8060ff)[0x563fd78540ff]
[DESKTOP-8VC26F1:00011] [12] flow(+0x807145)[0x563fd7855145]
[DESKTOP-8VC26F1:00011] [13] flow(+0x80cf93)[0x563fd785af93]
[DESKTOP-8VC26F1:00011] [14] flow(+0x80eb0b)[0x563fd785cb0b]
[DESKTOP-8VC26F1:00011] [15] flow(+0x777d6d)[0x563fd77c5d6d]
[DESKTOP-8VC26F1:00011] [16] flow(+0x7f7439)[0x563fd7845439]
[DESKTOP-8VC26F1:00011] [17] flow(+0x76b7a3)[0x563fd77b97a3]
[DESKTOP-8VC26F1:00011] [18] flow(+0x124792)[0x563fd7172792]
[DESKTOP-8VC26F1:00011] [19] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7fe2aafb6083]
[DESKTOP-8VC26F1:00011] [20] flow(+0x13d5de)[0x563fd718b5de]
[DESKTOP-8VC26F1:00011] *** End of error message ***
/bin/bash: line 1:    11 Aborted                 flow CAES_test2_Flow
gdfldm commented 5 months ago

@EdmundStephens I believe the VFP input/calculations are set up for three-phase black-oil simulations, and have been adapted to work for oil-water simulations, but not currently for gas-water simulations. I was able to get CAES_test2_flow to run by adding a dummy OIL phase to the model. I also seemed to need to set --enable-adaptive-time-stepping=false.