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
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.
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.
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
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))
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
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
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?
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
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?
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
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.
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.
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
That was very useful. I appreciate the showing of the trace tool
Amazing! Extremely helpful! Thank you!
Dear Asmaa, Really useful tutorial - thank you ! Best regards, Ian
This was very helpful. Great Tutorial
Saved a week atleast. thank you madam... love you
thank you so much for the tutorial, it helped me a lot!!!
Extremely helpful! Thanks
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))
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?
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
I have a single case file. But, I need to extract data for various slices at different distances. How can I automate it?
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
Is there any way to use python script with direct paraFoam (not use foamtoVTK then paraview)?
It could be possible but personally I had an error when trying to do it.
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?
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
Salut, merci pour votre effort je veux savoir comment je peux récupérer le module paraview.simple ?
Great video!
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?
Thanks Asmaa
Thanks!
Thank you.