Dear all,<br><br>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:<br>
<br>foam = OpenFOAMReader(FileName='foam.foam')<br>foam.CellArrays = ['U','p']<br><br>as suggested from the trace, I get an error message from the second line stating that there is no CellArrayStatus:<br>
<meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);"> File "/home/tom/Paraview/paraview3.6.2/paraView3-bin/Utilities/VTKPythonWrapping/paraview/simple.py", line 433, in CreateObject</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);"> setattr(px, param, params[param])</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);"> File "/home/tom/Paraview/paraview3.6.2/paraView3-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py", line 204, in __setattr__</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);"> setter(self, value)</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);"> File "/home/tom/Paraview/paraview3.6.2/paraView3-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py", line 2329, in setProperty</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);"> return self.SetPropertyWithName(propName, value)</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);"> File "/home/tom/Paraview/paraview3.6.2/paraView3-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py", line 252, in SetPropertyWithName</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);"> raise RuntimeError, "Property %s does not exist. Please check the property name for typos." % pname</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);">RuntimeError: Property CellArrayStatus does not exist. Please check the property name for typos.</p><br>I was wondering if there is a solution to this problem?<br>
<br>If someone could help me, that would be great!<br><br>Kind regards,<br><br>Tom Fahner<br>