[Paraview] *****SPAM***** Re: a general question,

Takuya OSHIMA oshima at eng.niigata-u.ac.jp
Tue Apr 7 21:05:51 EDT 2009


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" <kmorel at sandia.gov>
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: paraview-bounces at paraview.org [paraview-bounces at paraview.org] On Behalf Of Battalgazi YILDIRIM [yildirimga at gmail.com]
> Sent: Tuesday, April 07, 2009 8:29 AM
> To: paraview at paraview.org
> 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


More information about the ParaView mailing list