OPM / opm-simulators

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

Assertion `phases.size() == 4' failed. #5442

Open EnriqueRamonV opened 1 week ago

EnriqueRamonV commented 1 week ago

hello,

I am attempting to conduct a simulation using polymer injection in my oil reservoir. I have activated POLYMER and POLYMW in the RUNSPEC file as per the provided instructions.

During execution, I encountered the following error message:

image

I understand this error is related to the expected number of phases at some point in the simulation. I have verified the configuration in RUNSPEC, and it appears to be correctly defined to use the required four phases

Could you please advise on what might be causing this issue and how I can resolve it? I have attached a screenshot of the complete error message for your review.

I would appreciate any assistance or suggestions you can provide to address this issue.

Thank you for your attention to this matter.

Best regards,

GitPaean commented 1 week ago

Hei,

Without looking at your RUNSPEC, my best guess is that you are running a black oil three phase case with POLYMER and POLYMW.

At the moment, the POLYMW only works with oil and water two phase setup. It might not be a lot of work, while we just have not been able to make a black oil version for the POLYMW simulation.

With only POLYMER, there is a three phase blackoil version and oil water two phase version.

Please let me know if that is the case.

Cheers, Kai


From: EnriqueRamonV @.> Sent: Tuesday, June 25, 2024 6:58 PM To: OPM/opm-simulators @.> Cc: Subscribed @.***> Subject: [OPM/opm-simulators] Assertion `phases.size() == 4' failed. (Issue #5442)

hello,

I am attempting to conduct a simulation using polymer injection in my oil reservoir. I have activated POLYMER and POLYMW in the RUNSPEC file as per the provided instructions.

During execution, I encountered the following error message:

image.png (view on web)https://github.com/OPM/opm-simulators/assets/171874458/a4e5ac5b-48ff-4aa9-9587-20ec35711c9f

I understand this error is related to the expected number of phases at some point in the simulation. I have verified the configuration in RUNSPEC, and it appears to be correctly defined to use the required four phases

Could you please advise on what might be causing this issue and how I can resolve it? I have attached a screenshot of the complete error message for your review.

I would appreciate any assistance or suggestions you can provide to address this issue.

Thank you for your attention to this matter.

Best regards,

— Reply to this email directly, view it on GitHubhttps://github.com/OPM/opm-simulators/issues/5442, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABUH3RNAAFDZ5V6UXSE3QYDZJGOR7AVCNFSM6AAAAABJ4H27CCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TGMJXGM4TIMY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

EnriqueRamonV commented 1 week ago

Hello Kai,

Thank you very much for your help earlier! You were indeed correct about using the four-phase setup in my simulation. I utilized POLYMER in my four-phase system with OPM and successfully executed the simulation. However, I encountered an issue with the PLYSHLOG keyword Screenshot 2024-06-26 010353 campoX.docx POLYMERR.docx (attached is an image of the error). The keyword is correctly formulated according to the OPM manual, but I'm getting the error shown in the image. I decided to remove it, and unexpectedly, the simulator worked.

I'm wondering what could be causing the issue with the PLYSHLOG keyword. Attached are the files for your reference.

I greatly appreciate your assistance and guidance on this matter. currently I'm conducting a study in a real field in Ecuador to investigate polymer injection

Best regards,

GitPaean commented 1 week ago

For this error, my guess is that we might not support multiple regions of PLYSHLOG. The reason was that the setup of the PLYSHLOG poses huge challenge to our keyword definition system (a reference condition followed by a table). We did some hacks for it and we did not manage to make PLYSHLOG supports multiple regions.