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

2017-06-29 Thread Andy Bauer
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.

Cheers,
Andy

On Thu, Jun 29, 2017 at 11:47 AM, A .  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
>
>
___
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


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

2017-06-29 Thread A .
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