Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugs with RESTART keyword #5485

Open
flammmes opened this issue Jul 19, 2024 · 0 comments
Open

Bugs with RESTART keyword #5485

flammmes opened this issue Jul 19, 2024 · 0 comments

Comments

@flammmes
Copy link

flammmes commented Jul 19, 2024

I encountered a few bugs when I tried to restart a simulation.
Whenever the SCHEDULE section of the original simply moves forward the time to take a RESTART step of the initial conditions basically

SCHEDULE
RPTRST
 'BASIC=1' 'ALLPROPS' /

WELSPECS
 'I1' 'Inj' 84 15 1* 'GAS' 1* 'STD' 'SHUT' 'NO' /
 'I2' 'Inj' 60 26 1* 'GAS' 1* 'STD' 'SHUT' 'NO' /
 'I3' 'Inj' 74 9 1* 'GAS' 1* 'STD' 'SHUT' 'NO' /
 'P1' 'Prod' 67 123 1* 'OIL' 1* 'STD' 'SHUT' 'NO' /
 'P2' 'Prod' 53 72 1* 'OIL' 1* 'STD' 'SHUT' 'NO' /
 'P3' 'Prod' 76 29 1* 'OIL' 1* 'STD' 'SHUT' 'NO' /

/
COMPDAT
 'I1' 2* 1 4 'OPEN' 2* 0.708 3* 'Z' /
 'I2' 2* 1 4 'OPEN' 2* 0.708 3* 'Z' /
 'I3' 2* 1 4 'OPEN' 2* 0.708 3* 'Z' /
 'P1' 2* 1 3 'SHUT' 2* 0.708 3* 'Z' /
 'P1' 2* 4 4 'OPEN' 2* 0.708 3* 'Z' /
 'P2' 2* 1 3 'SHUT' 2* 0.708 3* 'Z' /
 'P2' 2* 4 4 'OPEN' 2* 0.708 3* 'Z' /
 'P3' 2* 1 3 'SHUT' 2* 0.708 3* 'Z' /
 'P3' 2* 4 4 'OPEN' 2* 0.708 3* 'Z' /
/


TSTEP
 90 /

while the RESTART file introduces the production/injection keywords

SCHEDULE
RPTRST
 'BASIC=1' 'ALLPROPS' /
WELSPECS
 'I1' 'Inj' 84 15 1* 'GAS' 1* 'STD' 'SHUT' 'NO' /
 'I2' 'Inj' 60 26 1* 'GAS' 1* 'STD' 'SHUT' 'NO' /
 'I3' 'Inj' 74 9 1* 'GAS' 1* 'STD' 'SHUT' 'NO' /
 'P1' 'Prod' 67 123 1* 'OIL' 1* 'STD' 'SHUT' 'NO' /
 'P2' 'Prod' 53 72 1* 'OIL' 1* 'STD' 'SHUT' 'NO' /
 'P3' 'Prod' 76 29 1* 'OIL' 1* 'STD' 'SHUT' 'NO' /
/
COMPDAT
 'I1' 2* 1 4 'OPEN' 2* 0.708 3* 'Z' /
 'I2' 2* 1 4 'OPEN' 2* 0.708 3* 'Z' /
 'I3' 2* 1 4 'OPEN' 2* 0.708 3* 'Z' /
 'P1' 2* 1 3 'SHUT' 2* 0.708 3* 'Z' /
 'P1' 2* 4 4 'OPEN' 2* 0.708 3* 'Z' /
 'P2' 2* 1 3 'SHUT' 2* 0.708 3* 'Z' /
 'P2' 2* 4 4 'OPEN' 2* 0.708 3* 'Z' /
 'P3' 2* 1 3 'SHUT' 2* 0.708 3* 'Z' /
 'P3' 2* 4 4 'OPEN' 2* 0.708 3* 'Z' /
/
TSTEP
 90 /
GCONINJE
 'FIELD' 'GAS' 'RATE' 170000 3* 'NO' /
 'Inj' 'GAS' 'RATE' 170000 3* 'NO' /
/
WCONINJE
 'I1' 'GAS' 'OPEN' 'GRUP' 100000 1* 9000 /
 'I2' 'GAS' 'OPEN' 'GRUP' 100000 1* 9000 /
 'I3' 'GAS' 'OPEN' 'GRUP' 100000 1* 9000 /
/
WCONPROD
 'P1' 'OPEN' 'ORAT' 86044.96304 1* 5414.573108 2* 3000 /
 'P2' 'OPEN' 'ORAT' 74540.0642 1* 2945.678003 2* 3000 /
 'P3' 'OPEN' 'ORAT' 48925.649 1* 2149.891064 2* 3000 /
/
TSTEP
 90 /

then I always get the error

Error: An error occurred while creating the reservoir schedule
Internal error: Cannot convert integer value -10 to producer control mode

Error: Unrecoverable errors while loading input: Cannot convert integer value -10 to producer control mode

Similarly, errors are produced even if i had already introduced GCONPROD,WCONPROD and WCONINJE in the original file and then changed them in timesteps after the restart point but they don't have a specific message, this is only what I get

flow: /root/opm/opm-models/opm/models/blackoil/blackoilintensivequantities.hh:505: void Opm::BlackOilIntensiveQuantities<TypeTag>::update(const ElementContext&, unsigned int, unsigned int) [with TypeTag = Opm::Properties::TTag::FlowGasOilProblem; Opm::BlackOilIntensiveQuantities<TypeTag>::ElementContext = Opm::FvBaseElementContext<Opm::Properties::TTag::FlowGasOilProblem>]: Assertion `isfinite(fluidState_.density(phaseIdx))' failed.
flow: /root/opm/opm-models/opm/models/blackoil/blackoilintensivequantities.hh:505: void Opm::BlackOilIntensiveQuantities<TypeTag>::update(const ElementContext&, unsigned int, unsigned int) [with TypeTag = Opm::Properties::TTag::FlowGasOilProblem; Opm::BlackOilIntensiveQuantities<TypeTag>::ElementContext = Opm::FvBaseElementContext<Opm::Properties::TTag::FlowGasOilProblem>]: Assertion `isfinite(fluidState_.density(phaseIdx))' failed.
[MSI:22483] *** Process received signal ***
[MSI:22483] Signal: Aborted (6)
[MSI:22483] Signal code:  (-6)
flow: /root/opm/opm-models/opm/models/blackoil/blackoilintensivequantities.hh:505: void Opm::BlackOilIntensiveQuantities<TypeTag>::update(const ElementContext&, unsigned int, unsigned int) [with TypeTag = Opm::Properties::TTag::FlowGasOilProblem; Opm::BlackOilIntensiveQuantities<TypeTag>::ElementContext = Opm::FvBaseElementContext<Opm::Properties::TTag::FlowGasOilProblem>]: Assertion `isfinite(fluidState_.density(phaseIdx))' failed.
[MSI:22482] *** Process received signal ***
[MSI:22482] Signal: Aborted (6)
[MSI:22482] Signal code:  (-6)
flow: /root/opm/opm-models/opm/models/blackoil/blackoilintensivequantities.hh:505: void Opm::BlackOilIntensiveQuantities<TypeTag>::update(const ElementContext&, unsigned int, unsigned int) [with TypeTag = Opm::Properties::TTag::FlowGasOilProblem; Opm::BlackOilIntensiveQuantities<TypeTag>::ElementContext = Opm::FvBaseElementContext<Opm::Properties::TTag::FlowGasOilProblem>]: Assertion `isfinite(fluidState_.density(phaseIdx))' failed.
flow: /root/opm/opm-models/opm/models/blackoil/blackoilintensivequantities.hh:505: void Opm::BlackOilIntensiveQuantities<TypeTag>::update(const ElementContext&, unsigned int, unsigned int) [with TypeTag = Opm::Properties::TTag::FlowGasOilProblem; Opm::BlackOilIntensiveQuantities<TypeTag>::ElementContext = Opm::FvBaseElementContext<Opm::Properties::TTag::FlowGasOilProblem>]: Assertion `isfinite(fluidState_.density(phaseIdx))' failed.
flow: /root/opm/opm-models/opm/models/blackoil/blackoilintensivequantities.hh:505: void Opm::BlackOilIntensiveQuantities<TypeTag>::update(const ElementContext&, unsigned int, unsigned int) [with TypeTag = Opm::Properties::TTag::FlowGasOilProblem; Opm::BlackOilIntensiveQuantities<TypeTag>::ElementContext = Opm::FvBaseElementContext<Opm::Properties::TTag::FlowGasOilProblem>]: Assertion `isfinite(fluidState_.density(phaseIdx))' failed.
flow: /root/opm/opm-models/opm/models/blackoil/blackoilintensivequantities.hh:505: void Opm::BlackOilIntensiveQuantities<TypeTag>::update(const ElementContext&, unsigned int, unsigned int) [with TypeTag = Opm::Properties::TTag::FlowGasOilProblem; Opm::BlackOilIntensiveQuantities<TypeTag>::ElementContext = Opm::FvBaseElementContext<Opm::Properties::TTag::FlowGasOilProblem>]: Assertion `isfinite(fluidState_.density(phaseIdx))' failed.
[MSI:22485] *** Process received signal ***
[MSI:22485] Signal: Aborted (6)
[MSI:22485] Signal code:  (-6)
[MSI:22484] *** Process received signal ***
[MSI:22484] Signal: Aborted (6)
[MSI:22484] Signal code:  (-6)
flow: /root/opm/opm-models/opm/models/blackoil/blackoilintensivequantities.hh:505: void Opm::BlackOilIntensiveQuantities<TypeTag>::update(const ElementContext&, unsigned int, unsigned int) [with TypeTag = Opm::Properties::TTag::FlowGasOilProblem; Opm::BlackOilIntensiveQuantities<TypeTag>::ElementContext = Opm::FvBaseElementContext<Opm::Properties::TTag::FlowGasOilProblem>]: Assertion `isfinite(fluidState_.density(phaseIdx))' failed

For more context, this is the SOLUTION section of the original file

SOLUTION
EQUIL
 10000 5000 12000 0 0 0 1 1 0 /
RTEMPVD
 0 200 12000 200 /
RSVD
 0 0 10000 0 /

and this is the SOLUTION section of the supposed RESTART file

SOLUTION
RESTART
 '0/DECKOLDBO0' 1 /

The Restart points in the SCHEDULE section are written with either

RPTRST
 'BASIC=1' 'ALLPROPS' /

or

RPTRST
 'BASIC=2' 'ALLPROPS' /

but the bugs are the same.

EDIT: I forgot to mention that I used the CO2STORE keyword. No matter what I tried I seem to be unable to use RESTART with a CO2STORE case and the errors indicate that something is wrong with how the density's calculation after restarting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant