Dear all,

Recently I was encouraged by a colleague to use the Native OpenFOAM reader
for ParaView, which was created by Takuya Oshima. I really appreciate the
reader since it loads my data faster and uses less memory than the standard
OpenFOAM reader and it works faster than using the OpenFOAM utility to first
create vtk files and than load these one by one. However using the vtk
reader in a python script I am able to run identical postprocessing for
similar cases. Now I would like to combine the better performance of the
native reader with python scripting. I am able to call the reader from
either a script or from the python shell, but I would like to be able to
select only certain patches, or the internal mesh separately. I used the
python trace function to find a way to do this, however the trace that
results does not work when repeated in the shell. For instance if I load
data from a case as:

foam = OpenFOAMReader(FileName='foam.foam')
foam.CellArrays = ['U','p']

as suggested from the trace, I get an error message from the second line
stating that there is no CellArrayStatus:

File
"/home/tom/Paraview/paraview3.6.2/paraView3-bin/Utilities/VTKPythonWrapping/paraview/simple.py",
line 433, in CreateObject

setattr(px, param, params[param])

File
"/home/tom/Paraview/paraview3.6.2/paraView3-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 204, in __setattr__

setter(self, value)

File
"/home/tom/Paraview/paraview3.6.2/paraView3-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 2329, in setProperty

return self.SetPropertyWithName(propName, value)

File
"/home/tom/Paraview/paraview3.6.2/paraView3-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 252, in SetPropertyWithName

raise RuntimeError, "Property %s does not exist. Please check the property
name for typos." % pname

RuntimeError: Property CellArrayStatus does not exist. Please check the
property name for typos.

I was wondering if there is a solution to this problem?

If someone could help me, that would be great!

Kind regards,

Tom Fahner
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to