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

Help : Unable to install python summaryplot, can't visualize well curve.

Open NdipOj opened this issue 1 year ago • 4 comments

Hello Good day I am Emmanuel and I am currently using the OPM project to make runs of the reservoir data provided on the OPM website (Norne case). I have not been able to visualize the data on the X-Y plot. I have a problem installing the python script called Summary plot, even after carefully following the procedure on the OPM website, and the ECL Python bindings despite following all the steps on the website and GitHub.
Please, I need guidance and support. I have been struggling with this for the past two months and no help has been offered to guide me.

I am currently working on my final year project and I am using the OPM software for my reservoir simulations but these problems make it very difficult since I cannot get my results plotted.

NdipOj avatar Jul 16 '24 09:07 NdipOj

Thanks for reaching out.

Could you tell us a little bit more about what you're doing, please? In particular, what commands did you run and what diagnostic messages did you receive, if any?

bska avatar Jul 16 '24 10:07 bska

Hey Emmanuel. I also had problems with Summary plot when I first installed flow. Maybe it is a bit deprecated.

If you have built flow with python bindings, then you can simply use

from opm.io.ecl import ESmry
summary = ESmry('{your_file_name}.SMSPEC') # maybe the summary file has another extension than SMSPEC, it depends on the input/ouput keywords you have used
summary['{any_word_from_summary_section}'] 

and you can get any array that you want to plot.

If you haven't installed the python bindings, then you can alternatively use ResInsight and simply load the .EGRID file. Then you go the tab Windows-> open plot window and on the right hand side you will see the loaded case along with all the keywords you have used in the summary section. Simply drag and drop them to the blank space and you have your plots.

If you still want to use Python for the plots for better visualization, you need to load the ResInsight case in python. There is a two hour tutorial on youtube on how to do it. Simply search for "resinsight python" and the first video from Orkahub Energy will help you.

Personally, ResInsight with python didn't work on my linux wsl environment so I simply installed it on Windows and loaded the cases from wsl directly.

I am working with flow for the last seven months and these methods are what I use to get the plots I need.

flammmes avatar Jul 18 '24 09:07 flammmes

Thank you all for your kind interventions. The issue was resolved from the ideas I got from you all. I am grateful.

Emmanuel.

NdipOj avatar Jul 21 '24 03:07 NdipOj

Thank you all so much for your kind interventions. I am grateful. The issue was resolved with your wonderful recommendations. I am grateful and amazed at how willing you are to render help. Thank you once more for your time.

Emmanuel

On Thu, 18 Jul 2024 at 10:20, flammmes @.***> wrote:

Hey Emmanuel. I also had problems with Summary plot when I first installed flow. Maybe it is a bit deprecated.

If you have built flow with python bindings, then you can simply use

from opm.io.ecl import ESmry summary = ESmry('{your_file_name}.SMSPEC') # maybe the summary file has another extension than SMSPEC, it depends on the input/ouput keywords you have used summary['{any_word_from_summary_section}']

and you can get any array that you want to plot.

If you haven't installed the python bindings, then you can alternatively use ResInsight and simply load the .EGRID file. Then you go the tab Windows-> open plot window and on the right hand side you will see the loaded case along with all the keywords you have used in the summary section. Simply drag and drop them to the blank space and you have your plots.

If you still want to use Python for the plots for better visualization, you need to load the ResInsight case in python. There is a two hour tutorial on youtube on how to do it. Simply search for "resinsight python" and the first video from Orkahub Energy will help you.

Personally, ResInsight with python didn't work on my linux wsl environment so I simply installed it on Windows and loaded the cases from wsl directly.

I am working with flow for the last seven months and these methods are what I use to get the plots I need.

— Reply to this email directly, view it on GitHub https://github.com/OPM/opm-simulators/issues/5481#issuecomment-2236032432, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJ4O77WP7RZJQQ4U7GP3YRTZM6CF5AVCNFSM6AAAAABK6G6D5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZWGAZTENBTGI . You are receiving this because you authored the thread.Message ID: @.***>

NdipOj avatar Jul 21 '24 03:07 NdipOj