Re: [Paraview] particle tracking on top of unsteady flow solution

2014-05-21 Thread Tom-Robin Teschner
wow, thanks a lot for this! I am on a report deadline at the moment but will 
try it afterwards. I guess the easiest way is just to write integers (1, 2, 3 
...) as the timesteps to the cgns file which should make the mapping work 
without problems. In any case, I will fiddle around a bit with what you give 
me, should be able to make it work, if I have serous problems I might contact 
you again but think this is already all I need :)

cheers, tom
Berk Geveci berk.gev...@kitware.com schrieb am 20:35 Dienstag, 20.Mai 2014:
 


OK try this. Apply a Programmable Filter to the csv file. Turn on advanced 
properties on that panel and use the following scripts:

Script:

oi = self.GetOutputInformation(0)
ut = oi.Get(vtk.vtkStreamingDemandDrivenPipeline.UPDATE_TIME_STEP())
t = inputs[0].RowData['t']
output.RowData.append(numpy.transpose(inputs[0].RowData['x'][t==ut]), 'x')
output.RowData.append(numpy.transpose(inputs[0].RowData['y'][t==ut]), 'y')
output.RowData.append(numpy.transpose(inputs[0].RowData['z'][t==ut]), 'z')

RequestInformation script:

oi = self.GetOutputInformation(0)
oi.Remove(vtk.vtkStreamingDemandDrivenPipeline().TIME_STEPS())
oi.Append(vtk.vtkStreamingDemandDrivenPipeline().TIME_STEPS(), 0)
oi.Append(vtk.vtkStreamingDemandDrivenPipeline().TIME_STEPS(), 1)
oi.Remove(vtk.vtkStreamingDemandDrivenPipeline().TIME_RANGE())
oi.Append(vtk.vtkStreamingDemandDrivenPipeline().TIME_RANGE(), 0)
oi.Append(vtk.vtkStreamingDemandDrivenPipeline().TIME_RANGE(), 1)

The csv file looks like:

x,y,z,t
0, 0, 0, 0
1, 0, 0, 0
2, 0, 0, 0
1, 0, 0, 1
2, 0, 0, 1
3, 0, 0, 1

If the column names are different, you can adjust the Script code.

After this filter, you can apply Table to Points and Glyph usual way. The heart 
of this is the inputs[0].RowData['x'][t==ut] bit. This selects elements from an 
array that fit a certain criteria. In this case t == ut where t is the time 
column value and ut is the time value requested from the filter by ParaView's 
animation engine. If you are running into an issue, make sure that the values 
in the csv file match exactly the values in the simulation file. If there are 
round off errors, you may have to implement a more complicated logic in the 
file to round the ut value to one that is closest in the table.

Best,
-berk



On Mon, May 19, 2014 at 5:41 AM, Tom-Robin Teschner 
tomrobin.tesch...@yahoo.de wrote:

Hi Berk, 


I think option two would be best as I don't use vtu (at least for my 
animations) + for the sake of animation I can reduce the csv file to contain 
only 1 particle per location so the csv file would be indeed small. If you 
could send me the python file I would be very thankful, could you also let me 
know how to put it into paraview as i have never used the python shell before 
(in paraview). 


Thanks, 
Tom


Berk Geveci berk.gev...@kitware.com schrieb am 19:21 Freitag, 16.Mai 2014:
 



Since you want to sync the two, you can't live without the time information, 
unless the simulation time values are simply an integer sequence of 0, 1, 2, 3 
etc. The time value is what ParaView uses to sync sources. So unless you have 
this particular case, we need to do something to fix the issue. There are two 
ways I thought of:


1. Using a pvd file pointing to vtu files
2. Doing Python magic to extract particles from a single csv file


2 is very doable and fun under two conditions:
a. the number of particles and the number of time steps are relatively small 
(otherwise the csv file will be too big)
b. you add the time value as another column.


If these hold, I can send you a script that does this. Otherwise, I can send 
you an example file collection of pvd/vtu files.


-berk



On Thu, May 15, 2014 at 5:48 PM, Tom-Robin Teschner 
tomrobin.tesch...@yahoo.de wrote:

thanks berk, 


thanks for the reply. i can live without the time information, but would 
paraview automatically map the csv file to the flow solution that i would 
load before?
the problem is that i have one cgns file containing all flow solutions so i 
wonder if paraview would know which csv file to use. 
i'll probably give it a try in the next days when i have some time, but 
thanks again for your reply.


cheers,
tom
Berk Geveci berk.gev...@kitware.com schrieb am 15:59 Dienstag, 13.Mai 2014:
 
Hi Tom-Robin,


ParaView does not support having a time series of particles within a single 
csv file. You can have a file series of csv files as described here:


http://www.paraview.org/Wiki/ParaView/Users_Guide/Loading_Data



Unfortunately, you will not be able to specify a time value in this case. 
ParaView will pick 0, 1, 2 etc.


To be able to specify time values, you will have to use a  format such as pvd 
or Xdmf. Of course, I just noticed that we have absolutely no documentation 
on the PVD format :-) We'll fix that. Here is some info:


http://www.cacr.caltech.edu/~slombey/asci/vtk/



Xdmf is better documentation.


Both of these formats support ASCII content. Xdmf supports having all of the 
data in one 

Re: [Paraview] particle tracking on top of unsteady flow solution

2014-05-20 Thread Berk Geveci
OK try this. Apply a Programmable Filter to the csv file. Turn on advanced
properties on that panel and use the following scripts:

Script:

oi = self.GetOutputInformation(0)
ut = oi.Get(vtk.vtkStreamingDemandDrivenPipeline.UPDATE_TIME_STEP())
t = inputs[0].RowData['t']
output.RowData.append(numpy.transpose(inputs[0].RowData['x'][t==ut]), 'x')
output.RowData.append(numpy.transpose(inputs[0].RowData['y'][t==ut]), 'y')
output.RowData.append(numpy.transpose(inputs[0].RowData['z'][t==ut]), 'z')

RequestInformation script:

oi = self.GetOutputInformation(0)

oi.Remove(vtk.vtkStreamingDemandDrivenPipeline().TIME_STEPS())

oi.Append(vtk.vtkStreamingDemandDrivenPipeline().TIME_STEPS(), 0)

oi.Append(vtk.vtkStreamingDemandDrivenPipeline().TIME_STEPS(), 1)

oi.Remove(vtk.vtkStreamingDemandDrivenPipeline().TIME_RANGE())

oi.Append(vtk.vtkStreamingDemandDrivenPipeline().TIME_RANGE(), 0)

oi.Append(vtk.vtkStreamingDemandDrivenPipeline().TIME_RANGE(), 1)


The csv file looks like:


x,y,z,t

0, 0, 0, 0

1, 0, 0, 0

2, 0, 0, 0

1, 0, 0, 1

2, 0, 0, 1

3, 0, 0, 1


If the column names are different, you can adjust the Script code.


After this filter, you can apply Table to Points and Glyph usual way. The
heart of this is the inputs[0].RowData['x'][t==ut] bit. This selects
elements from an array that fit a certain criteria. In this case t == ut
where t is the time column value and ut is the time value requested from
the filter by ParaView's animation engine. If you are running into an
issue, make sure that the values in the csv file match exactly the values
in the simulation file. If there are round off errors, you may have to
implement a more complicated logic in the file to round the ut value to one
that is closest in the table.


Best,

-berk


On Mon, May 19, 2014 at 5:41 AM, Tom-Robin Teschner 
tomrobin.tesch...@yahoo.de wrote:

 Hi Berk,

 I think option two would be best as I don't use vtu (at least for my
 animations) + for the sake of animation I can reduce the csv file to
 contain only 1 particle per location so the csv file would be indeed small.
 If you could send me the python file I would be very thankful, could you
 also let me know how to put it into paraview as i have never used the
 python shell before (in paraview).

 Thanks,
 Tom

Berk Geveci berk.gev...@kitware.com schrieb am 19:21 Freitag, 16.Mai
 2014:


 Since you want to sync the two, you can't live without the time
 information, unless the simulation time values are simply an integer
 sequence of 0, 1, 2, 3 etc. The time value is what ParaView uses to sync
 sources. So unless you have this particular case, we need to do something
 to fix the issue. There are two ways I thought of:

 1. Using a pvd file pointing to vtu files
 2. Doing Python magic to extract particles from a single csv file

 2 is very doable and fun under two conditions:
 a. the number of particles and the number of time steps are relatively
 small (otherwise the csv file will be too big)
 b. you add the time value as another column.

 If these hold, I can send you a script that does this. Otherwise, I can
 send you an example file collection of pvd/vtu files.

 -berk


 On Thu, May 15, 2014 at 5:48 PM, Tom-Robin Teschner 
 tomrobin.tesch...@yahoo.de wrote:

 thanks berk,

 thanks for the reply. i can live without the time information, but would
 paraview automatically map the csv file to the flow solution that i would
 load before?
 the problem is that i have one cgns file containing all flow solutions so
 i wonder if paraview would know which csv file to use.
 i'll probably give it a try in the next days when i have some time, but
 thanks again for your reply.

  cheers,
 tom
Berk Geveci berk.gev...@kitware.com schrieb am 15:59 Dienstag,
 13.Mai 2014:
  Hi Tom-Robin,

 ParaView does not support having a time series of particles within a
 single csv file. You can have a file series of csv files as described here:

 http://www.paraview.org/Wiki/ParaView/Users_Guide/Loading_Data

 Unfortunately, you will not be able to specify a time value in this case.
 ParaView will pick 0, 1, 2 etc.

 To be able to specify time values, you will have to use a  format such as
 pvd or Xdmf. Of course, I just noticed that we have absolutely no
 documentation on the PVD format :-) We'll fix that. Here is some info:

 http://www.cacr.caltech.edu/~slombey/asci/vtk/

 Xdmf is better documentation.

 Both of these formats support ASCII content. Xdmf supports having all of
 the data in one file although if you have thousands of time steps, the file
 may get somewhat bulky.

 -berk


 On Thu, May 8, 2014 at 10:59 AM, Tom-Robin Teschner 
 tomrobin.tesch...@yahoo.de wrote:

 Hi,

 I am doing particle tracking at the moment and I am visualise my results
 with paraview. I have a 3D Navier Stokes solver from which I get a CGNS
 file with the flow solution (for example velocity and vorticity in x, y and
 z) and I also get csv file where I store position of particles, which i
 track inside my code.
 Now 

Re: [Paraview] particle tracking on top of unsteady flow solution

2014-05-13 Thread Berk Geveci
Hi Tom-Robin,

ParaView does not support having a time series of particles within a single
csv file. You can have a file series of csv files as described here:

http://www.paraview.org/Wiki/ParaView/Users_Guide/Loading_Data

Unfortunately, you will not be able to specify a time value in this case.
ParaView will pick 0, 1, 2 etc.

To be able to specify time values, you will have to use a  format such as
pvd or Xdmf. Of course, I just noticed that we have absolutely no
documentation on the PVD format :-) We'll fix that. Here is some info:

http://www.cacr.caltech.edu/~slombey/asci/vtk/

Xdmf is better documentation.

Both of these formats support ASCII content. Xdmf supports having all of
the data in one file although if you have thousands of time steps, the file
may get somewhat bulky.

-berk


On Thu, May 8, 2014 at 10:59 AM, Tom-Robin Teschner 
tomrobin.tesch...@yahoo.de wrote:

 Hi,

 I am doing particle tracking at the moment and I am visualise my results
 with paraview. I have a 3D Navier Stokes solver from which I get a CGNS
 file with the flow solution (for example velocity and vorticity in x, y and
 z) and I also get csv file where I store position of particles, which i
 track inside my code.
 Now I want to bring them both together, i.e. have an animation of the
 flowfield (let's say of the x velocity) and on top I want to display the
 particles at each timestep (so how they move along the flow). the csv file
 looks something like this (shorten for visualisation):

 X , Y , Z
 0.0068 , 0.52500 , 0.005
 0.0593 , 0.52510 , 0.005
 0.1171 , 0.52542 , 0.005

 I have loaded the particles into paraview and then used tabletopoints from
 the filters but then I get all the particles displayed, instead of getting
 one particle per timestep. I have tried to use a fourth column for time but
 I was unable to map that to my animation.

 Does anyone have an idea how to solve this?

 Kind regards,
  Tom-Robin Teschner

 ___
 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


[Paraview] particle tracking on top of unsteady flow solution

2014-05-08 Thread Tom-Robin Teschner
Hi, 

I am doing particle tracking at the moment and I am visualise my results with 
paraview. I have a 3D Navier Stokes solver from which I get a CGNS file with 
the flow solution (for example velocity and vorticity in x, y and z) and I also 
get csv file where I store position of particles, which i track inside my code. 
Now I want to bring them both together, i.e. have an animation of the flowfield 
(let's say of the x velocity) and on top I want to display the particles at 
each timestep (so how they move along the flow). the csv file looks something 
like this (shorten for visualisation): 

X , Y , Z
0.0068 , 0.52500 , 0.005
0.0593 , 0.52510 , 0.005
0.1171 , 0.52542 , 0.005  

I have loaded the particles into paraview and then used tabletopoints from the 
filters but then I get all the particles displayed, instead of getting one 
particle per timestep. I have tried to use a fourth column for time but I was 
unable to map that to my animation.

Does anyone have an idea how to solve this?

Kind regards, 
Tom-Robin Teschner___
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


Re: [Paraview] particle tracking

2012-02-21 Thread Utkarsh Ayachit
Marcelo,

Is this using OSMesa for offscreen rendering? There was a memory leak
in 3.10.0 that has been subsequently fixed when saving animations with
OS Mesa and offscreen rendering enabled.

Utkarsh

On Mon, Feb 20, 2012 at 6:23 AM, Marcelo Emmel marc...@emmel.eng.br wrote:
 Jean Favre jfavre at cscs.ch writes:


 Berk Geveci wrote:
  To animate particles in a
  steady-state flow field, I'd think that you would generate streamlines
  and then somehow animate particles along those.

 this is exactly the technique I use. Generate streamlines. Then
 iso-contour the streamline object with the scalar field
 IntegrationTime. Use a single threshold. Then animate the threshold
 value. Use Mode=Sequence, get a ramp between minimum time and maximun time.
 Use Glyphs (small spheres or arrows) attached to the iso-valued contours
 and they will animate their position along the streamlines.

 Jean
 Swiss national Supercomputing Center

 Dear Jean Favre,

 Thanks a lot, you showed me the way after a long search time!
 I am facing a new problem now: when making animations, Paraview uses all
 available memory then crashes (I am using Paraview 3.12.0 64bit). I just can
 make about 400 frames before crashing. After producing the animation, I do not
 know how to flush memory, since it remains busy.
 Thanks a lot and congratulations for your job.
 Best regards,

 Marcelo Emmel
 Mechanical Engineer, MSc
 www.emmel.eng.br

 ___
 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


Re: [Paraview] particle tracking

2012-02-21 Thread Christian Richter

  
  
Hi, Utkarsh,

sorry I forgot to replay to the list. I wrote Marcelo yesterday
"Dear Marcelo,


try Edit-Settings-Render View and disable "Use
Offscreenrendering for Screenshots".

The animation will take more time, but the memory ussage is constant
low.

We have the same problem when proccessing a large number of
timesteps in PV 3.12.


Best wishes,

Christian
"

And he said now it's working fine.

But in fact, this does not solve the real problem.
I have a GTX580 GPU with NVIDIA 290.10 64bit proprietr driver and
the same memory leak when proccessing a large number of files
(200 by fileseriesreader-vtkreader or my own liggghts plugin
reader).

Can you please tell me how to check if OSMesa is used or not and how
to track down where the memory leak comes from (it is not the
reader) ?

Thanks,
Christian


Am 21.02.2012 16:19, schrieb Utkarsh Ayachit:

  Marcelo,

Is this using OSMesa for offscreen rendering? There was a memory leak
in 3.10.0 that has been subsequently fixed when saving animations with
OS Mesa and offscreen rendering enabled.

Utkarsh

On Mon, Feb 20, 2012 at 6:23 AM, Marcelo Emmel marc...@emmel.eng.br wrote:

  
Jean Favre jfavre at cscs.ch writes:



  
Berk Geveci wrote:

  
To animate particles in a
steady-state flow field, I'd think that you would generate streamlines
and then somehow animate particles along those.

  
  
this is exactly the technique I use. Generate streamlines. Then
iso-contour the streamline object with the scalar field
"IntegrationTime". Use a single threshold. Then animate the threshold
value. Use Mode=Sequence, get a ramp between minimum time and maximun time.
Use Glyphs (small spheres or arrows) attached to the iso-valued contours
and they will "animate" their position along the streamlines.

Jean
Swiss national Supercomputing Center



Dear Jean Favre,

Thanks a lot, you showed me the way after a long search time!
I am facing a new problem now: when making animations, Paraview uses all
available memory then crashes (I am using Paraview 3.12.0 64bit). I just can
make about 400 frames before crashing. After producing the animation, I do not
know how to "flush" memory, since it remains busy.
Thanks a lot and congratulations for your job.
Best regards,

Marcelo Emmel
Mechanical Engineer, MSc
www.emmel.eng.br

___
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





-- 
  

  
  


Dipl.-Ing. Christian Richter
Lehrstuhl fr Materialflusstechnik
Institut fr Logistik und Materialflusstechnik (ILM)
Fakultt fr Maschinenbau (FMB)

Otto-von-Guericke-Universitt Magdeburg
Universittsplatz 2
D-39106 Magdeburg
Gebude 10, Raum 213

University Magdeburg Otto-von-Guericke
Department of Material Handling
Institute of Logistics and Material Handling Systems (ILM)
Faculty for Mechanical Engineering (FMB)

E-Mail: christian.rich...@ovgu.de
Tel.: +49 (0)391/67-12690 NEU
Fax: +49 (0)391/67-12646
URL: http://www.ilm.ovgu.de
  
  
Der Inhalt dieser E-Mail ist vertraulich und ausschlielich fr
den bezeichneten Adressaten bestimmt. Wenn Sie nicht der
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein
sollten, so beachten Sie bitte, dass jede Form der
Kenntnisnahme, Verffentlichung, Vervielfltigung oder
Weitergabe des Inhalts
dieser E-Mail unzulssig ist. Wir bitten Sie, sich in diesem
Fall mit dem Absender der E-Mail in Verbindung zu setzen.
  

  

___
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


Re: [Paraview] particle tracking

2012-02-20 Thread Marcelo Emmel
Jean Favre jfavre at cscs.ch writes:

 
 Berk Geveci wrote:
  To animate particles in a
  steady-state flow field, I'd think that you would generate streamlines
  and then somehow animate particles along those.
 
 this is exactly the technique I use. Generate streamlines. Then
 iso-contour the streamline object with the scalar field
 IntegrationTime. Use a single threshold. Then animate the threshold
 value. Use Mode=Sequence, get a ramp between minimum time and maximun time.
 Use Glyphs (small spheres or arrows) attached to the iso-valued contours
 and they will animate their position along the streamlines.
 
 Jean
 Swiss national Supercomputing Center

Dear Jean Favre,

Thanks a lot, you showed me the way after a long search time!
I am facing a new problem now: when making animations, Paraview uses all 
available memory then crashes (I am using Paraview 3.12.0 64bit). I just can 
make about 400 frames before crashing. After producing the animation, I do not 
know how to flush memory, since it remains busy.
Thanks a lot and congratulations for your job.
Best regards,

Marcelo Emmel
Mechanical Engineer, MSc
www.emmel.eng.br

___
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


[Paraview] particle tracking

2009-11-19 Thread bastil2...@yahoo.de
I am wondering what the state of this is? I am very interested in this
feature. Up to new I used Johns workaround but iso-clipping the
streamlines makes my Paraview 3.6.1 crash without any further comment.

Regards

BastiL


I don't think this answers Pei's question. To my knowledge the

temporal stream tracer (i.e. particle tracker) works only for

time-dependent data. Am I wrong? To animate particles in a

steady-state flow field, I'd think that you would generate streamlines

and then somehow animate particles along those. I can't think of

anything that would do this out-of-box but writing a  filter that does

this would be pretty easy. Is this something more than a few users

would want?

-berk

On Thu, Feb 12, 2009 at 12:22 AM, David E DeMarle

dave.demarle at kitware.com 
http://www.paraview.org/mailman/listinfo/paraview wrote:

/ Hi Pei-Ying,/



/// You may want to try ParaView Meshless/

/ (https://twiki.cscs.ch/twiki/bin/view/ParaViewMeshless). It is a/

/ version of ParaView with the cutting edge of John Biddiscombe's/

/ particle tracking work in it. Some of those features will be/have been/

/ integrated into the main paraview code, but I can not vouch for when/

/ that will happen./



/// cheers,/

/ Dave DeMarle/



//

/// 2008/12/25 Pei-Ying Hsieh phsieh2005 at yahoo.com 
http://www.paraview.org/mailman/listinfo/paraview:/

/ Dear PVers:/



/// I have a steady state flow field.  I am wondering if PV can do particle/

/ tracking animation./



/// what I am looking for is similar to pathlines, but, instead of showing 
the/

/ lines, I would like to do an animation of seed particles flowing through/

/ the flow field.  Is this possible?/



/// Thanks! and wish everyone here a Happy New Year!/



//

/// Pei/



//

/// ___/

/ ParaView mailing list/

/ ParaView at paraview.org 
http://www.paraview.org/mailman/listinfo/paraview/

/// http://www.paraview.org/mailman/listinfo/paraview/

//

//

//

//

//

/// --/

/ David E DeMarle/

/ Kitware, Inc./

/ RD Engineer/

/ 28 Corporate Drive/

/ Clifton Park, NY 12065-8662/

/ Phone: 518-371-3971 x109/

___
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


Re: [Paraview] particle tracking

2009-03-24 Thread bastil2...@yahoo.de

Hi Berk, Jean,

Is this something more than a few users would want?
Yes I would b e very interested, Jeans workaround only works for 
streamlines calculated either forwards or backwards but not both


Jean, how do you exactly do please?
-Then iso-contour the streamline object with the scalar field 
IntegrationTime. Use a single threshold. (Contour filter?)
-Then animate the threshold value. Use Mode=Sequence, get a ramp between 
minimum time and maximun time. (How?)
-Use Glyphs (small spheres or arrows) attached to the iso-valued 
contours and they will animate their position along the streamlines. 
(How?)


Thanks BastiL
___
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


Re: [Paraview] particle tracking

2009-02-13 Thread Paul Edwards
That's great!  I've been wondering how to animate streamlines.

Regards,
Paul

2009/2/12 Jean Favre jfa...@cscs.ch

 Berk Geveci wrote:
  To animate particles in a
  steady-state flow field, I'd think that you would generate streamlines
  and then somehow animate particles along those.

 this is exactly the technique I use. Generate streamlines. Then
 iso-contour the streamline object with the scalar field
 IntegrationTime. Use a single threshold. Then animate the threshold
 value. Use Mode=Sequence, get a ramp between minimum time and maximun time.
 Use Glyphs (small spheres or arrows) attached to the iso-valued contours
 and they will animate their position along the streamlines.

 Jean
 Swiss national Supercomputing Center
 ___
 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


Re: [Paraview] particle tracking

2009-02-12 Thread John Biddiscombe




Berk 

Oops. I didn't notice that it was a "steady state" flow field. The
TemporalStremTRacer expects unsteady flows, however it would be quite
simple to modify it to use a single step. (I think easier than taking
streamlines and animating particles along them - though thinking about
it, the streamtracer code does have all that conversion of cell units
to time which would be useful).

One could subclass the temporaltreamtracer, suppress the time requests
and interpolate over a single step, then output time dependent data
where the particles animate along the path (- how many steps would one
want?) - clicking the play button would just advect them along.

(Just thinking out loud).

JB


  I don't think this answers Pei's question. To my knowledge the
temporal stream tracer (i.e. particle tracker) works only for
time-dependent data. Am I wrong? To animate particles in a
steady-state flow field, I'd think that you would generate streamlines
and then somehow animate particles along those. I can't think of
anything that would do this out-of-box but writing a  filter that does
this would be pretty easy. Is this something more than a few users
would want?

-berk

On Thu, Feb 12, 2009 at 12:22 AM, David E DeMarle
dave.dema...@kitware.com wrote:
  
  
Hi Pei-Ying,

You may want to try ParaView Meshless
(https://twiki.cscs.ch/twiki/bin/view/ParaViewMeshless). It is a
version of ParaView with the cutting edge of John Biddiscombe's
particle tracking work in it. Some of those features will be/have been
integrated into the main paraview code, but I can not vouch for when
that will happen.

cheers,
Dave DeMarle


2008/12/25 Pei-Ying Hsieh phsieh2...@yahoo.com:


  Dear PVers:

I have a steady state flow field.  I am wondering if PV can do particle
tracking animation.

what I am looking for is similar to pathlines, but, instead of showing the
lines, I would like to do an animation of seed particles "flowing" through
the flow field.  Is this possible?

Thanks! and wish everyone here a Happy New Year!


Pei


___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


  



--
David E DeMarle
Kitware, Inc.
RD Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
___
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
  



-- 
John Biddiscombe,email:biddisco @ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland  | Fax:  +41 (91) 610.82.82



___
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


Re: [Paraview] particle tracking

2009-02-12 Thread Jean Favre
Berk Geveci wrote:
 To animate particles in a
 steady-state flow field, I'd think that you would generate streamlines
 and then somehow animate particles along those.

this is exactly the technique I use. Generate streamlines. Then
iso-contour the streamline object with the scalar field
IntegrationTime. Use a single threshold. Then animate the threshold
value. Use Mode=Sequence, get a ramp between minimum time and maximun time.
Use Glyphs (small spheres or arrows) attached to the iso-valued contours
and they will animate their position along the streamlines.

Jean
Swiss national Supercomputing Center
___
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


Re: [Paraview] particle tracking

2009-02-12 Thread Berk Geveci
Interesting. I guess the biggest challenge of doing this in our
pipeline would be finding the time range. Ideally, the integration
should continue until all particles leave the domain or get stuck in a
stagnant region. That would require integrating them first and then
looking at the largest integration time.

While I was writing this, Jean's response showed up. It is pretty
ingenious :-) This is why I love ParaView. It allows you to do things
in ways developers did not foresee.

-berk

On Thu, Feb 12, 2009 at 8:42 AM, John Biddiscombe biddi...@cscs.ch wrote:
 Berk

 Oops. I didn't notice that it was a steady state flow field. The
 TemporalStremTRacer expects unsteady flows, however it would be quite simple
 to modify it to use a single step. (I think easier than taking streamlines
 and animating particles along them - though thinking about it, the
 streamtracer code does have all that conversion of cell units to time which
 would be useful).

 One could subclass the temporaltreamtracer, suppress the time requests and
 interpolate over a single step, then output time dependent data where the
 particles animate along the path (- how many steps would one want?) -
 clicking the play button would just advect them along.

 (Just thinking out loud).

 JB

 I don't think this answers Pei's question. To my knowledge the
 temporal stream tracer (i.e. particle tracker) works only for
 time-dependent data. Am I wrong? To animate particles in a
 steady-state flow field, I'd think that you would generate streamlines
 and then somehow animate particles along those. I can't think of
 anything that would do this out-of-box but writing a  filter that does
 this would be pretty easy. Is this something more than a few users
 would want?

 -berk

 On Thu, Feb 12, 2009 at 12:22 AM, David E DeMarle
 dave.dema...@kitware.com wrote:


 Hi Pei-Ying,

 You may want to try ParaView Meshless
 (https://twiki.cscs.ch/twiki/bin/view/ParaViewMeshless). It is a
 version of ParaView with the cutting edge of John Biddiscombe's
 particle tracking work in it. Some of those features will be/have been
 integrated into the main paraview code, but I can not vouch for when
 that will happen.

 cheers,
 Dave DeMarle


 2008/12/25 Pei-Ying Hsieh phsieh2...@yahoo.com:


 Dear PVers:

 I have a steady state flow field.  I am wondering if PV can do particle
 tracking animation.

 what I am looking for is similar to pathlines, but, instead of showing the
 lines, I would like to do an animation of seed particles flowing through
 the flow field.  Is this possible?

 Thanks! and wish everyone here a Happy New Year!


 Pei


 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview




 --
 David E DeMarle
 Kitware, Inc.
 RD Engineer
 28 Corporate Drive
 Clifton Park, NY 12065-8662
 Phone: 518-371-3971 x109
 ___
 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


 --
 John Biddiscombe,email:biddisco @ cscs.ch
 http://www.cscs.ch/
 CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
 Via Cantonale, 6928 Manno, Switzerland  | Fax:  +41 (91) 610.82.82
___
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


Re: [Paraview] particle tracking

2009-02-12 Thread Moreland, Kenneth
That's a really cool solution.  Bravo Jean.

-Ken


On 2/12/09 6:58 AM, Jean Favre jfa...@cscs.ch wrote:

Berk Geveci wrote:
 To animate particles in a
 steady-state flow field, I'd think that you would generate streamlines
 and then somehow animate particles along those.

this is exactly the technique I use. Generate streamlines. Then
iso-contour the streamline object with the scalar field
IntegrationTime. Use a single threshold. Then animate the threshold
value. Use Mode=Sequence, get a ramp between minimum time and maximun time.
Use Glyphs (small spheres or arrows) attached to the iso-valued contours
and they will animate their position along the streamlines.

Jean
Swiss national Supercomputing Center
___
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




     Kenneth Moreland
***  Sandia National Laboratories
***
*** *** ***  email: kmo...@sandia.gov
**  ***  **  phone: (505) 844-8919
***  web:   http://www.cs.unm.edu/~kmorel

___
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


Re: [Paraview] particle tracking

2009-02-12 Thread Moreland, Kenneth
This conversation has basically become academic, but it would also be pretty 
easy to create a filter that reported a bunch of time steps and just passed the 
same data every time.  The particle tracer would thing it was a time varying 
data even though it was not.

Jean's solution is still easier (and more clever), though.

-Ken


On 2/12/09 7:00 AM, Berk Geveci berk.gev...@kitware.com wrote:

Interesting. I guess the biggest challenge of doing this in our
pipeline would be finding the time range. Ideally, the integration
should continue until all particles leave the domain or get stuck in a
stagnant region. That would require integrating them first and then
looking at the largest integration time.

While I was writing this, Jean's response showed up. It is pretty
ingenious :-) This is why I love ParaView. It allows you to do things
in ways developers did not foresee.

-berk

On Thu, Feb 12, 2009 at 8:42 AM, John Biddiscombe biddi...@cscs.ch wrote:
 Berk

 Oops. I didn't notice that it was a steady state flow field. The
 TemporalStremTRacer expects unsteady flows, however it would be quite simple
 to modify it to use a single step. (I think easier than taking streamlines
 and animating particles along them - though thinking about it, the
 streamtracer code does have all that conversion of cell units to time which
 would be useful).

 One could subclass the temporaltreamtracer, suppress the time requests and
 interpolate over a single step, then output time dependent data where the
 particles animate along the path (- how many steps would one want?) -
 clicking the play button would just advect them along.

 (Just thinking out loud).

 JB

 I don't think this answers Pei's question. To my knowledge the
 temporal stream tracer (i.e. particle tracker) works only for
 time-dependent data. Am I wrong? To animate particles in a
 steady-state flow field, I'd think that you would generate streamlines
 and then somehow animate particles along those. I can't think of
 anything that would do this out-of-box but writing a  filter that does
 this would be pretty easy. Is this something more than a few users
 would want?

 -berk

 On Thu, Feb 12, 2009 at 12:22 AM, David E DeMarle
 dave.dema...@kitware.com wrote:


 Hi Pei-Ying,

 You may want to try ParaView Meshless
 (https://twiki.cscs.ch/twiki/bin/view/ParaViewMeshless). It is a
 version of ParaView with the cutting edge of John Biddiscombe's
 particle tracking work in it. Some of those features will be/have been
 integrated into the main paraview code, but I can not vouch for when
 that will happen.

 cheers,
 Dave DeMarle


 2008/12/25 Pei-Ying Hsieh phsieh2...@yahoo.com:


 Dear PVers:

 I have a steady state flow field.  I am wondering if PV can do particle
 tracking animation.

 what I am looking for is similar to pathlines, but, instead of showing the
 lines, I would like to do an animation of seed particles flowing through
 the flow field.  Is this possible?

 Thanks! and wish everyone here a Happy New Year!


 Pei


 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview




 --
 David E DeMarle
 Kitware, Inc.
 RD Engineer
 28 Corporate Drive
 Clifton Park, NY 12065-8662
 Phone: 518-371-3971 x109
 ___
 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


 --
 John Biddiscombe,email:biddisco @ cscs.ch
 http://www.cscs.ch/
 CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
 Via Cantonale, 6928 Manno, Switzerland  | Fax:  +41 (91) 610.82.82
___
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




     Kenneth Moreland
***  Sandia National Laboratories
***
*** *** ***  email: kmo...@sandia.gov
**  ***  **  phone: (505) 844-8919
***  web:   http://www.cs.unm.edu/~kmorel

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 

Re: [Paraview] particle tracking

2009-02-11 Thread David E DeMarle
Hi Pei-Ying,

You may want to try ParaView Meshless
(https://twiki.cscs.ch/twiki/bin/view/ParaViewMeshless). It is a
version of ParaView with the cutting edge of John Biddiscombe's
particle tracking work in it. Some of those features will be/have been
integrated into the main paraview code, but I can not vouch for when
that will happen.

cheers,
Dave DeMarle


2008/12/25 Pei-Ying Hsieh phsieh2...@yahoo.com:
 Dear PVers:

 I have a steady state flow field.  I am wondering if PV can do particle
 tracking animation.

 what I am looking for is similar to pathlines, but, instead of showing the
 lines, I would like to do an animation of seed particles flowing through
 the flow field.  Is this possible?

 Thanks! and wish everyone here a Happy New Year!


 Pei


 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview





-- 
David E DeMarle
Kitware, Inc.
RD Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
___
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