[Paraview] Calculator speed
Tobias Brandvik
tbrandvik at gmail.com
Tue Sep 9 14:40:27 EDT 2008
Thanks for the replies. I've got some experience with Python/NumPy so
any pointers on that approach would be appreciated.
Tobias
--
Tobias Brandvik
PhD Student
Whittle Laboratory
1 JJ Thomson Avenue
Cambridge CB3 0DY, UK
On Tue, Sep 9, 2008 at 2:51 PM, Berk Geveci <berk.geveci at kitware.com> wrote:
> 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 <tbrandvik at gmail.com> 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
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>
More information about the ParaView
mailing list