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:
https://www.linkedin.com/in/asmaa-hadane-935991a3/
——————————————————————————————–
facebook
https://www.facebook.com/OpenFoamForCFD
——————————————————————————————–
source
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
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?
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?
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.
Dear Asmaa, Really useful tutorial – thank you ! Best regards, Ian
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?
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
Extremely helpful! Thanks
Saved a week atleast. thank you madam… love you <3
Is there any way to use python script with direct paraFoam (not use foamtoVTK then paraview)?
Thank you.
Great video!
I have a single case file. But, I need to extract data for various slices at different distances. How can I automate it?
Amazing! Extremely helpful! Thank you!
Thanks!
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