Hi Battalgazi,

Since you already can drive your simulation with Python, another
relatively simple way (until ParaView directly supports it) could be
to add to your Python code to update the ParaView scene every time
after you write the simulation data.
http://paraview.org/Wiki/ParaView/Python_Scripting

I may be wrong in details since I have done this only in C++ not in
Python, but the steps should look something like
- mark anyhow your ParaView reader as modified
- reader.UpdatePipelineInformation() to rescan the timesteps
- reader.UpdatePropertyInformation() to pull the updated timesteps
- get the last element of reader.TimestepValues
- set the view.ViewTime to the last timestep
- (optional) rescale the range of the color lookup table
- view.StillRender()

Takuya OSHIMA, Ph.D.
Faculty of Engineering, Niigata University
8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN

From: "Moreland, Kenneth" <[email protected]>
Subject: Re: [Paraview] a general question,
Date: Tue, 7 Apr 2009 10:05:22 -0600

> The lowest hanging fruit: If your simulation is writing out data files 
> intermittently, you can just start ParaView and load them in.  This is a 
> somewhat common mode of operation.
> 
> Further integration requires some coding, which in turn has some much steeper 
> learning curves.  There are several ongoing projects that are integrating 
> ParaView with running simulations (most operating in "batch" mode).  The end 
> game we hope for is to make the process much simpler.
> 
> -Ken
> 
> ________________________________________
> From: [email protected] [[email protected]] On Behalf 
> Of Battalgazi YILDIRIM [[email protected]]
> Sent: Tuesday, April 07, 2009 8:29 AM
> To: [email protected]
> Subject: [Paraview] a general question,
> 
> Hi everyone,
> 
> We have python wrappers (C++) to run our simulation ( unstructured grid based 
> solver).
> When a simulation is running, I would like to see update results on Paraview.
> Could you help me for initial guidiance?
> 
> I  just started using  Paraview, sorry if it is asked before,
> 
> Thanks,
> 
> --
> B. Gazi YILDIRIM
> 
> _______________________________________________
> 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

Reply via email to