Paraview picture generation
<p>I am trying to run a python script to generate pictures.
But every time i run i get the following error.</p>

<pre><code>File "/usr2/tmp/Krishnamoorthi/case0383/New/Pics_0.py", line 16, in &lt;module&gt;
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.
</code></pre>

<p>I checked the line 16 in the py script but it is all perfect.</p>

<p>Is it something to do with the bash for paraview?? </p>

<p>The issue is that <code>SurfaceArrays</code> property does not exist on the <code>case_foam</code> reader instance.</p>

<p>Try opening the data data file in ParaView UI and see what properties are shown on the <code>Properties Panel</code>. There'd be some other property that should be used to select the <code>meshPhi</code> and <code>Phi</code> arrays to read for your reader.</p>

python paraview