The array calculator does not use Python but it is slow nevertheless. Actually, this could be done much faster using Python/NumPy. This is currently possible but hard to do (complicated API). We are working on an easier-to-use interface. If you are adventurous, I can give you some pointers. Otherwise, C++ custom filter is the way to go.
-berk On Tue, Sep 9, 2008 at 8:58 AM, Tobias Brandvik <[EMAIL PROTECTED]> wrote: > Hi, > > I've written a CFD solver that uses Paraview in parallel mode with > hdf5/xdmf. Currently, the application writes out the primary variables > and lets the user calculate any desired secondary variables using the > calculator. However, this procedure is very slow -- it seems to be an > order of magnitude faster to calculate the data in the solver itself > and have Paraview read it from disk. I suspect this is because the > calculator expressions get translated to python code, but I might also > be doing something wrong. > > Am I correct in thinking that the easiest way to fix this would be to > write a custom filter in C++? > > Cheers, > Tobias > > -- > Tobias Brandvik > PhD Student > Whittle Laboratory > 1 JJ Thomson Avenue > Cambridge CB3 0DY, UK > _______________________________________________ > ParaView mailing list > [email protected] > http://www.paraview.org/mailman/listinfo/paraview > _______________________________________________ ParaView mailing list [email protected] http://www.paraview.org/mailman/listinfo/paraview
