CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] Paraview (https://www.cfd-online.com/Forums/paraview/176767-paraview.html)

Aravind_Krish August 26, 2016 03:52

Paraview
 
I am trying to run a python script to generate pictures.
But every time i run i get the following error.


File "/usr2/tmp/Krishnamoorthi/case0383/New/Pics_0.py", line 16, in <module>
case_foam.SurfaceArrays = ['meshPhi', 'phi']
File "/cax/sw-cae1/OPENFOAM/LINUX_x86_64/ParaView/ParaView-4.4.0-Qt4-Linux-64bit/lib/paraview-4.4/site-packages/paraview/servermanager.py", line 302, in __setattr__
"to add this attribute.")
AttributeError: Attribute SurfaceArrays does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute.


I checked the line 16 in the py script but it is all perfect.
Is it something to do with the bash for paraview??


All times are GMT -4. The time now is 00:40.