Automate ParaView PostProcessing Using Python script - pvbatch

Поділитися
Вставка
  • Опубліковано 28 гру 2024
  • IMPORTANT:
    To fix the error
    ERROR: In /home/ubuntu/OpenFOAM/ThirdParty-dev/ParaView-5.6.0/ParaViewCore/ServerManager/Rendering/vtkSMViewLayoutProxy.cxx, line 569 vtkSMViewLayoutProxy (0x55f8ae165d60): Cell is not empty.
    Comment the line containing:
    layout1.AssignView(2, lineChartView1)
    because the code in trying to assign multiple views to the same layout
    --------------------------------------------------------------------------------------------
    This video shows how to avoid repetitive and time consuming tasks by automating the postprocessing in ParaView using Python script.
    --------------------------------------------------------------------------------------------
    Linkedin:
    / asmaa-hadane-935991a3
    --------------------------------------------------------------------------------------------
    facebook
    / openfoamforcfd
    --------------------------------------------------------------------------------------------

КОМЕНТАРІ • 27

  • @CFDAsmaaHadane
    @CFDAsmaaHadane  3 роки тому +4

    IMPORTANT:
    To fix the error
    ERROR: In /home/ubuntu/OpenFOAM/ThirdParty-dev/ParaView-5.6.0/ParaViewCore/ServerManager/Rendering/vtkSMViewLayoutProxy.cxx, line 569 vtkSMViewLayoutProxy (0x55f8ae165d60): Cell is not empty.
    Comment the line containing:
    layout1.AssignView(2, lineChartView1)
    because the code in trying to assign multiple views to the same layout

  • @SelmanBaysal
    @SelmanBaysal Рік тому +2

    Thanks for this helpful video!
    The first half of the video focuses on creating a Python code with the "Start Trace" tool and using this PostProcessing code in Python Shell embedded in ParaView and also as a macro.
    The information on batch processing (pvbatch) starts at 11:04.

  • @mlndz111
    @mlndz111 3 роки тому +1

    This is like the only useful tutorial I've found. All others just do the example from the manual which uses the pre determined sources... one hardly ever uses them. In my case, all I want to do is open each of 120 geometries I have and save them as .ply in ASCII format. I had named my files as "model1.stl" through "model120.stl" thinking I was going to be able to assign the model number to a variable and do a for loop with a macro simply saving the file and setting the format. I'll put your video into practice and come back with he result in case anyone is as lost and frustrated as I am.

  • @scugglebottom
    @scugglebottom 4 роки тому +1

    Thanks for putting together the these videos on Paraview, very much appreciated!
    I have normally used statefiles within paraview, but it can be hit and miss whether it opens successfully without crashing.
    I may try this route using Python macros and see if its an improvement

  • @ieames1
    @ieames1 3 роки тому +1

    Dear Asmaa, Really useful tutorial - thank you ! Best regards, Ian

  • @mariafernandadavila8332
    @mariafernandadavila8332 4 роки тому +2

    Amazing! Extremely helpful! Thank you!

  • @98danielray
    @98danielray 11 місяців тому

    That was very useful. I appreciate the showing of the trace tool

  • @arjunputhusseri2545
    @arjunputhusseri2545 3 роки тому

    Saved a week atleast. thank you madam... love you

  • @anirbankisku
    @anirbankisku 2 роки тому +1

    This was very helpful. Great Tutorial

  • @ibrahimaburady
    @ibrahimaburady 3 роки тому

    Extremely helpful! Thanks

  • @isaacbannerman9685
    @isaacbannerman9685 3 роки тому +1

    Thanks so much for the video. Could you please make a video on how to calculate the lift and drag for the 2D flow over cylinder case?

    • @CFDAsmaaHadane
      @CFDAsmaaHadane  3 роки тому

      For drag and lift calculation in paraview:
      ua-cam.com/video/J944HOj_4b0/v-deo.html
      For drag and lift calculation in OpenFOAM:
      ua-cam.com/video/YOT62t2IiDE/v-deo.html

  • @KW-12
    @KW-12 10 місяців тому

    Thank you. Really useful.
    Excuse, what if the comand pvbatch doens't work?
    I Always get the error: "Show expects 2 arguments but 3 were given"... This issue doens't allow me to automate my Foamfiles.
    (Don't know if the problem is that I didn't convert them to VTK because my cases are really heavy (~GB pero case))

  • @NiliVolk08
    @NiliVolk08 2 місяці тому

    thank you so much for the tutorial, it helped me a lot!!!

  • @nguyenkhoa9201
    @nguyenkhoa9201 3 роки тому +2

    Is there any way to use python script with direct paraFoam (not use foamtoVTK then paraview)?

    • @CFDAsmaaHadane
      @CFDAsmaaHadane  3 роки тому +1

      It could be possible but personally I had an error when trying to do it.

  • @lirilsilvi
    @lirilsilvi 4 роки тому

    I have a single case file. But, I need to extract data for various slices at different distances. How can I automate it?

  • @mahmoodmousavi8614
    @mahmoodmousavi8614 10 місяців тому

    Thanks Asmaa

  • @enriquemoreno8078
    @enriquemoreno8078 4 роки тому

    Great video!

  • @yinjun5937
    @yinjun5937 2 роки тому +1

    Hello, Do you know how to loop this with time? I mean I can create the python script using paraview. But I want to python code do it for every time step. Do you know how can I modify the python code?

    • @CFDAsmaaHadane
      @CFDAsmaaHadane  2 роки тому

      Hello @Yin Jun, when creating the trace, instead of export view you should use: File => Save Data => write time steps, so all the time steps will be written

  • @dmytrosky
    @dmytrosky 4 роки тому +1

    Thanks!

  • @ujjwalchetan4907
    @ujjwalchetan4907 3 роки тому

    Great tutorial ma'am. Thanks. I wanted to know when I run the python script for plot selection over time, generated from trace in the paraview , I get everything correct except the last step of saving the file into .csv ( plotselectionovertime spreadsheet is generated but is empty) and the python shell throws an error:
    "Warning: In /home/ubuntu/OpenFOAM/ThirdParty-dev/ParaView-5.4.0/VTK/Common/DataModel/vtkDataObject.cxx, line 522
    vtkTable (0x3b65340): Attempted to ShallowCopy from null."
    How to resolve this issue ma'am? please guide us. Thanks

  • @tayebmezri
    @tayebmezri 6 місяців тому

    Salut, merci pour votre effort je veux savoir comment je peux récupérer le module paraview.simple ?

  • @nausheensultana92
    @nausheensultana92 2 роки тому

    Hi Asmaa, thanks for this video, very helpful.
    However, it throws up this error for me '( 1.029s) [pvbatch ] vtkEGLRenderWindow.cxx:295 WARN| vtkEGLRenderWindow (0x7fffe27e91e0): EGL device index: 0 is greater than the number of supported deviced in the system: 0. Using device 0 ...'
    Any suggestions?

  • @bideshsengupta9455
    @bideshsengupta9455 3 роки тому +1

    Thank you.