[Paraview] how Python interact with ParaView
liuning
tantics at gmail.com
Thu Mar 18 09:56:09 EDT 2010
Hi Andy,
That is great! I will try the CoProcessing soon. We have a cluster(about 500
nodes) to do physical simulation. The generated data mainly consist of
volume data ,meshes and particles. We want to visualize the data and show
the result using a tiled display. People can interact with the viz process
through a master node. I really appreciate if you can give me more details.
Thank you.
-Ning
On Thu, Mar 18, 2010 at 9:12 PM, Andy Bauer <andy.bauer at kitware.com> wrote:
> I'm working on doing in situ viz with paraview and have committed some beta
> code into the paraview repository. The code is in ParaView3/CoProcessing if
> you want to look at it. You can turn it on by setting the
> paraview_enable_coprocessing cmake variable to on. It uses python to set up
> the pipelines for you in the coprocessing libraries. You can also build
> paraview with PARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator which will
> create a plugin to create the python scripts for coprocessing. We have this
> working and are in the processing of getting performance numbers on some
> supercomputers with a parallel cfd code but everything is still a bit
> sparsely documented. If you're interested I can give you more details.
>
> Andy
>
>
> On Thu, Mar 18, 2010 at 8:04 AM, David E DeMarle <dave.demarle at kitware.com
> > wrote:
>
>>
>>> PS: Boost.Python seems to be capable of enabling Python to invoke C++
>> methods.Does ParaView use Boost.Python ?
>>
>> It does not. For completeness you should also investigate swig which is
>> the standard for doing that.
>>
>> But ParaView uses neither of those. Instead it has its own (older)
>> wrapping technology, which is the same technology at work in Tcl, Java and
>> Python wrapped VTK, and also behind the wrapping into ParaView's own client
>> server language. The idea is the same behind all of them, cmake scripts that
>> drive a lex/yacc based executable that parses VTK C++ header files to create
>> code that can instantiate VTK classes and then call public methods on those
>> instances. See http://www.vtk.org/Wiki/VTK/Python_Wrapping_FAQ for more
>> information. But you will have to read the code to learn the details.
>>
>> Once wrapped, python scripts can call into ParaView's C++ servermanager
>> API just like the standard C++ client does once they have loaded the wrapped
>> ParaView libraries.
>>
>>
>> Thanks a lot.
>>>
>>> -Ning
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100318/79399d13/attachment.htm>
More information about the ParaView
mailing list