[Paraview] Pipe back data from ParaView to simulation program through Catalyst

Andy Bauer andy.bauer at kitware.com
Thu Jun 29 13:50:37 EDT 2017

Hi Jimmy,

There is no current way to do this in Catalyst without custom code. I know
others have done it already but haven't seen the actual implementation for
that. We hope to have funding in the next year to get more sophisticated
with this in Catalyst but there are not specific projects yet that will
fund us to work on this.

If I were to try to do a simple implementation of this now what I would do
is add in a filter with the options you want and add that in as a plugin to
PV. Then in your Python script you can interrogate those values and pass
the data back to the simulation through the vtkCPDataDescription::UserData.


On Thu, Jun 29, 2017 at 11:47 AM, A . <super_achie at hotmail.com> wrote:

> Dear members,
> I have successfully been able to use ParaView Catalyst to do in-situ
> visualization. The data that is generated from my simulation program is
> forwarded to ParaView with the use of these so-called 'adaptors'. The API
> is very straightforward and it was done easily. However I was wondering if
> feeding back data from ParaView into my simulation program through Catalyst
> is also possible. In other words can ParaView serve as a (semi) graphical
> user interface?
> For instance, at some point in the simulation in ParaView I want to change
> the size of one of my simulation objects, which in my simulation program is
> represented as a private data member of the object's class. So I want to
> pause the simulation, select the object and change the value of the
> object's size. Is there a way to pipe this data back into the simulation
> (in-situ) and continue the simulation?
> If the above description is too specific, I would just like to ask if the
> user can be interactive with simulation program through ParaView in any
> way. I can think of a way of exporting the changed ParaView state to file,
> parse that in my simulation program and update the simulation state, but I
> was wondering if there is a neater / faster way of doing this.
> Best,
> Jimmy
> _______________________________________________
> 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
> Search the list archives at: http://markmail.org/search/?q=ParaView
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170629/42b09024/attachment.html>

More information about the ParaView mailing list