Discussion:
[Paraview] Make animation from steady state result
minh hien
2014-06-05 13:52:35 UTC
Permalink
Hi all,

I got steady state solution for my problem. After plotting streamlines at
steady state, I would like to make animation showing moving of spheres
(resulted from Glyph filter) on the streamlines, the spheres' velocity
should be defined by the flow velocity. How can I make this?
Any suggestion would be very much appreciated.

Thank you in advance.

Minh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140605/ddd41a6e/attachment.html>
David E DeMarle
2014-06-05 14:07:02 UTC
Permalink
Make an isocontour of the streamlines' integrationTime variable.
Then in animation view, make a track for the isocontour value.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
Post by minh hien
Hi all,
I got steady state solution for my problem. After plotting streamlines at
steady state, I would like to make animation showing moving of spheres
(resulted from Glyph filter) on the streamlines, the spheres' velocity
should be defined by the flow velocity. How can I make this?
Any suggestion would be very much appreciated.
Thank you in advance.
Minh
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://paraview.org/Wiki/ParaView
http://www.paraview.org/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140605/61145ab4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: animate_along_streamlines.pvsm
Type: application/octet-stream
Size: 152030 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140605/61145ab4/attachment-0001.obj>
minh hien
2014-06-05 15:14:06 UTC
Permalink
Thank you David,

It works for me now.

MH
Post by David E DeMarle
Make an isocontour of the streamlines' integrationTime variable.
Then in animation view, make a track for the isocontour value.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
Post by minh hien
Hi all,
I got steady state solution for my problem. After plotting streamlines at
steady state, I would like to make animation showing moving of spheres
(resulted from Glyph filter) on the streamlines, the spheres' velocity
should be defined by the flow velocity. How can I make this?
Any suggestion would be very much appreciated.
Thank you in advance.
Minh
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://paraview.org/Wiki/ParaView
http://www.paraview.org/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140605/6f99f97d/attachment.html>
Moreland, Kenneth
2014-06-06 17:42:45 UTC
Permalink
Here's a more expanded list of steps outlining the solution David gave in case you are not very familiar with the contour filter and animation controls in ParaView.

1. Create the streamlines as you normally would.

2. Add a Contour filter to the streamline (third toolbar, second button from the left).
2.a. Change the Contour By property to IntegrationTime.
2.b. Press Apply.
This little trick will create a point on each streamline at a particular time in the particle advection simulation that created the streamlines.

3. Open the Animation View (View -> Animation View)
3.a. On the bottom row, select the contour filter in the first chooser box and Isosurfaces in the second chooser box. Then hit the blue plus button at the left.
3.b. Make sure Mode is set to Sequence and change No. Frames to 100.
3.c. Hit the play button in the VCR controls (green triangle in the top toolbar). You will see the dots animate over the streamlines.
3.d. You can adjust the speed of the animation by changing the No. Frames.

4. If you want to see glyphs instead of dots, just add the glyph filter to the output of the contour filter.

BTW, props to Jean Favre for originally posting this solution to the ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg).

-Ken

From: David E DeMarle <dave.demarle at kitware.com<mailto:dave.demarle at kitware.com>>
Date: Thursday, June 5, 2014 8:07 AM
To: minh hien <minh.cfd at gmail.com<mailto:minh.cfd at gmail.com>>
Cc: "paraview at paraview.org<mailto:paraview at paraview.org>" <paraview at paraview.org<mailto:paraview at paraview.org>>
Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result

Make an isocontour of the streamlines' integrationTime variable.
Then in animation view, make a track for the isocontour value.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Thu, Jun 5, 2014 at 9:52 AM, minh hien <minh.cfd at gmail.com<mailto:minh.cfd at gmail.com>> wrote:
Hi all,

I got steady state solution for my problem. After plotting streamlines at steady state, I would like to make animation showing moving of spheres (resulted from Glyph filter) on the streamlines, the spheres' velocity should be defined by the flow velocity. How can I make this?
Any suggestion would be very much appreciated.

Thank you in advance.

Minh

_______________________________________________
Powered by www.kitware.com<http://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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140606/4ba071a5/attachment.html>
Scott, W Alan
2014-06-06 19:30:49 UTC
Permalink
Ken and Jean, excellent idea! I liked it so much that I wrote it up in the SNL ParaView tutorials, tips and tricks page. It is located here: http://www.paraview.org/Wiki/Advanced_Tips_and_Tricks

Alan

From: ParaView [mailto:paraview-bounces at paraview.org] On Behalf Of Moreland, Kenneth
Sent: Friday, June 06, 2014 11:43 AM
To: David E DeMarle; minh hien
Cc: paraview at paraview.org
Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result

Here's a more expanded list of steps outlining the solution David gave in case you are not very familiar with the contour filter and animation controls in ParaView.

1. Create the streamlines as you normally would.

2. Add a Contour filter to the streamline (third toolbar, second button from the left).
2.a. Change the Contour By property to IntegrationTime.
2.b. Press Apply.
This little trick will create a point on each streamline at a particular time in the particle advection simulation that created the streamlines.

3. Open the Animation View (View -> Animation View)
3.a. On the bottom row, select the contour filter in the first chooser box and Isosurfaces in the second chooser box. Then hit the blue plus button at the left.
3.b. Make sure Mode is set to Sequence and change No. Frames to 100.
3.c. Hit the play button in the VCR controls (green triangle in the top toolbar). You will see the dots animate over the streamlines.
3.d. You can adjust the speed of the animation by changing the No. Frames.

4. If you want to see glyphs instead of dots, just add the glyph filter to the output of the contour filter.

BTW, props to Jean Favre for originally posting this solution to the ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg).

-Ken

From: David E DeMarle <dave.demarle at kitware.com<mailto:dave.demarle at kitware.com>>
Date: Thursday, June 5, 2014 8:07 AM
To: minh hien <minh.cfd at gmail.com<mailto:minh.cfd at gmail.com>>
Cc: "paraview at paraview.org<mailto:paraview at paraview.org>" <paraview at paraview.org<mailto:paraview at paraview.org>>
Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result

Make an isocontour of the streamlines' integrationTime variable.
Then in animation view, make a track for the isocontour value.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Thu, Jun 5, 2014 at 9:52 AM, minh hien <minh.cfd at gmail.com<mailto:minh.cfd at gmail.com>> wrote:
Hi all,

I got steady state solution for my problem. After plotting streamlines at steady state, I would like to make animation showing moving of spheres (resulted from Glyph filter) on the streamlines, the spheres' velocity should be defined by the flow velocity. How can I make this?
Any suggestion would be very much appreciated.

Thank you in advance.

Minh

_______________________________________________
Powered by www.kitware.com<http://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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140606/f717d707/attachment-0001.html>
Andrew Parker via ParaView
2018-01-19 11:27:55 UTC
Permalink
Dear all,

Sorry to post onto an old thread. I have been reading this thread and the
related write up here:
https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#Animating_a_static_vector_field

This thread (and the tips and tricks post) is really close to what I want
to do, but I have a few follow-up questions. I too have a steady-state
solution field. I want to trace particles from the inlet of my domain to
the exit, following the steady-state velocity field, and report for each
particle the temperature-time history (or any other scalar from my
simulation) that the particle sees. In additional and crucially, the time
the particle has within the domain: a residence time. The residence time
would be the maximum value or IntegrationTime each particle attains before
it leaves the domain.

I see that if I follow the notes I can plot (using Glyphs) the temperature
as it varies across my domain as the particles are animated down the
streamlines: this is working. What I do not seem to be able to find
however, is the IntegrationTime. It appears as point-field data after the
streamlines are created, but vanishes after the contour filter is applied.
I guess the contour filter is computing a singular value for all values of
the IntegrationTime from T=0 to T=N with a specific level of granularity.
However, I can't seem to extract the specific value of IntegrationTime (the
contour value) when I stop the simulation at any given point. Do you know
how to do that? The "time" scale in the VCR window always goes from 0->1
not from 0->(max value of IntegrationTime in seconds). Can the actual
value of time be backed out or animated? If so how do I do that, or am I
applying the Contour filter wrongly: as per the post, I am only using the
default values in the Counter filter panel.

Finally, and importantly for me, while the Glyphs move across the screen
following the streamlines, and render via the temperature field, how to I
actually extract information from this pseudo time series to perform
analysis? For example, the min and max temperature seen by a particle as
it moved across the streamline for instance? I'm actually hoping to plot
offline (as a function of IntegrationTime) the min and max temperature
obtained for each particle: I can then take the min and max of that set for
the quickest and slowest particles.

Using the latest stock version of paraview.

Cheers,
Andy
Post by Scott, W Alan
Ken and Jean, excellent idea! I liked it so much that I wrote it up in
http://www.paraview.org/Wiki/Advanced_Tips_and_Tricks
Alan
Kenneth
*Sent:* Friday, June 06, 2014 11:43 AM
*To:* David E DeMarle; minh hien
*Subject:* [EXTERNAL] Re: [Paraview] Make animation from steady state
result
Here's a more expanded list of steps outlining the solution David gave in
case you are not very familiar with the contour filter and animation
controls in ParaView.
1. Create the streamlines as you normally would.
2. Add a Contour filter to the streamline (third toolbar, second button from the left).
2.a. Change the Contour By property to IntegrationTime.
2.b. Press Apply.
This little trick will create a point on each streamline at a particular
time in the particle advection simulation that created the streamlines.
3. Open the Animation View (View -> Animation View)
3.a. On the bottom row, select the contour filter in the first chooser box
and Isosurfaces in the second chooser box. Then hit the blue plus button at
the left.
3.b. Make sure Mode is set to Sequence and change No. Frames to 100.
3.c. Hit the play button in the VCR controls (green triangle in the top
toolbar). You will see the dots animate over the streamlines.
3.d. You can adjust the speed of the animation by changing the No. Frames.
4. If you want to see glyphs instead of dots, just add the glyph filter to
the output of the contour filter.
BTW, props to Jean Favre for originally posting this solution to the
ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg).
-Ken
*Date: *Thursday, June 5, 2014 8:07 AM
*Subject: *[EXTERNAL] Re: [Paraview] Make animation from steady state
result
Make an isocontour of the streamlines' integrationTime variable.
Then in animation view, make a track for the isocontour value.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909 <(518)%20881-4909>
Hi all,
I got steady state solution for my problem. After plotting streamlines at
steady state, I would like to make animation showing moving of spheres
(resulted from Glyph filter) on the streamlines, the spheres' velocity
should be defined by the flow velocity. How can I make this?
Any suggestion would be very much appreciated.
Thank you in advance.
Minh
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/
opensource/opensource.html
http://paraview.org/Wiki/ParaView
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
http://paraview.org/Wiki/ParaView
http://www.paraview.org/mailman/listinfo/paraview
Cory Quammen
2018-01-19 13:18:18 UTC
Permalink
Andrew,

Responses inlined below:

On Fri, Jan 19, 2018 at 6:27 AM, Andrew Parker via ParaView
Post by Andrew Parker via ParaView
Dear all,
Sorry to post onto an old thread. I have been reading this thread and the
https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#Animating_a_static_vector_field
This thread (and the tips and tricks post) is really close to what I want to
do, but I have a few follow-up questions. I too have a steady-state
solution field. I want to trace particles from the inlet of my domain to the
exit, following the steady-state velocity field, and report for each
particle the temperature-time history (or any other scalar from my
simulation) that the particle sees. In additional and crucially, the time
the particle has within the domain: a residence time. The residence time
would be the maximum value or IntegrationTime each particle attains before
it leaves the domain.
I see that if I follow the notes I can plot (using Glyphs) the temperature
as it varies across my domain as the particles are animated down the
streamlines: this is working. What I do not seem to be able to find
however, is the IntegrationTime. It appears as point-field data after the
streamlines are created, but vanishes after the contour filter is applied.
I guess the contour filter is computing a singular value for all values of
the IntegrationTime from T=0 to T=N with a specific level of granularity.
By default, the Contour filter does not copy the scalar field used to
determine the contour surface since it will always be the same value.
You can tell it to copy the scalar field by enabling the Compute
Scalars option.
Post by Andrew Parker via ParaView
However, I can't seem to extract the specific value of IntegrationTime (the
contour value) when I stop the simulation at any given point. Do you know
how to do that? The "time" scale in the VCR window always goes from 0->1
not from 0->(max value of IntegrationTime in seconds). Can the actual value
of time be backed out or animated? If so how do I do that, or am I applying
the Contour filter wrongly: as per the post, I am only using the default
values in the Counter filter panel.
Instead of using the Sequence animation mode, use Real Time. Then, set
the Start Time to the minimum IntegrationTime value and End Time to
the maximum IntegrationTime value. You can see these listed either in
the Information tab of the StreamTracer filter in the Pipeline Browser
or under the Contour filter's Property tab under the Isosurfaces
section (Value Range). To show the current time in the render view,
use an Annotate Time source, available in the Sources menu.
Post by Andrew Parker via ParaView
Finally, and importantly for me, while the Glyphs move across the screen
following the streamlines, and render via the temperature field, how to I
actually extract information from this pseudo time series to perform
analysis? For example, the min and max temperature seen by a particle as it
moved across the streamline for instance? I'm actually hoping to plot
offline (as a function of IntegrationTime) the min and max temperature
obtained for each particle: I can then take the min and max of that set for
the quickest and slowest particles.
You can run the Connectivity filter on the StreamTracer output to
assign a unique value to each streamline. This unique value will be
called RegionId. It starts at 0 and ends at the number of stream lines
minus 1. Selecting each stream line can be done with the Threshold
filter in ParaView using the RegionId as the threshold array, then you
can see the min/max of your temperature and IntegrationTime variables
in the Information tab. Iterating over all stream lines and saving the
min/max of the different scalar fields is possible using ParaView's
Python scripting capabilities. However, you may find it faster to
export the data to a tool with which you are more familiar.

To do that, I would suggest saving the Connectivity filter output to a
.csv file. The CSV file will contain all the scalar fields in
different columns, including the aforementioned RegionId field. Simply
filter on the RegionId field using your favorite software/plotting
tool to find the min and max temperature and max IntegrationTime of
the particle along the stream line.

HTH,
Cory
Post by Andrew Parker via ParaView
Using the latest stock version of paraview.
Cheers,
Andy
Post by Scott, W Alan
Ken and Jean, excellent idea! I liked it so much that I wrote it up in
http://www.paraview.org/Wiki/Advanced_Tips_and_Tricks
Alan
Moreland, Kenneth
Sent: Friday, June 06, 2014 11:43 AM
To: David E DeMarle; minh hien
Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result
Here's a more expanded list of steps outlining the solution David gave in
case you are not very familiar with the contour filter and animation
controls in ParaView.
1. Create the streamlines as you normally would.
2. Add a Contour filter to the streamline (third toolbar, second button from the left).
2.a. Change the Contour By property to IntegrationTime.
2.b. Press Apply.
This little trick will create a point on each streamline at a particular
time in the particle advection simulation that created the streamlines.
3. Open the Animation View (View -> Animation View)
3.a. On the bottom row, select the contour filter in the first chooser box
and Isosurfaces in the second chooser box. Then hit the blue plus button at
the left.
3.b. Make sure Mode is set to Sequence and change No. Frames to 100.
3.c. Hit the play button in the VCR controls (green triangle in the top
toolbar). You will see the dots animate over the streamlines.
3.d. You can adjust the speed of the animation by changing the No. Frames.
4. If you want to see glyphs instead of dots, just add the glyph filter to
the output of the contour filter.
BTW, props to Jean Favre for originally posting this solution to the
ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg).
-Ken
Date: Thursday, June 5, 2014 8:07 AM
Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result
Make an isocontour of the streamlines' integrationTime variable.
Then in animation view, make a track for the isocontour value.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
Hi all,
I got steady state solution for my problem. After plotting streamlines at
steady state, I would like to make animation showing moving of spheres
(resulted from Glyph filter) on the streamlines, the spheres' velocity
should be defined by the flow velocity. How can I make this?
Any suggestion would be very much appreciated.
Thank you in advance.
Minh
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://paraview.org/Wiki/ParaView
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
http://paraview.org/Wiki/ParaView
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
http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
https://paraview.org/mailman/listinfo/paraview
--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
_______________________________________________
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:
https://paraview.org/mailman/listinfo/paraview
Andrew Parker
2018-01-19 13:36:55 UTC
Permalink
Thank you very much for these comments. I'll give them a go and follow up
if need be.
Thanks,
Andy
Post by Cory Quammen
Andrew,
On Fri, Jan 19, 2018 at 6:27 AM, Andrew Parker via ParaView
Post by Andrew Parker via ParaView
Dear all,
Sorry to post onto an old thread. I have been reading this thread and the
https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#
Animating_a_static_vector_field
Post by Andrew Parker via ParaView
This thread (and the tips and tricks post) is really close to what I
want to
Post by Andrew Parker via ParaView
do, but I have a few follow-up questions. I too have a steady-state
solution field. I want to trace particles from the inlet of my domain to
the
Post by Andrew Parker via ParaView
exit, following the steady-state velocity field, and report for each
particle the temperature-time history (or any other scalar from my
simulation) that the particle sees. In additional and crucially, the
time
Post by Andrew Parker via ParaView
the particle has within the domain: a residence time. The residence time
would be the maximum value or IntegrationTime each particle attains
before
Post by Andrew Parker via ParaView
it leaves the domain.
I see that if I follow the notes I can plot (using Glyphs) the
temperature
Post by Andrew Parker via ParaView
as it varies across my domain as the particles are animated down the
streamlines: this is working. What I do not seem to be able to find
however, is the IntegrationTime. It appears as point-field data after
the
Post by Andrew Parker via ParaView
streamlines are created, but vanishes after the contour filter is
applied.
Post by Andrew Parker via ParaView
I guess the contour filter is computing a singular value for all values
of
Post by Andrew Parker via ParaView
the IntegrationTime from T=0 to T=N with a specific level of granularity.
By default, the Contour filter does not copy the scalar field used to
determine the contour surface since it will always be the same value.
You can tell it to copy the scalar field by enabling the Compute
Scalars option.
Post by Andrew Parker via ParaView
However, I can't seem to extract the specific value of IntegrationTime
(the
Post by Andrew Parker via ParaView
contour value) when I stop the simulation at any given point. Do you
know
Post by Andrew Parker via ParaView
how to do that? The "time" scale in the VCR window always goes from 0->1
not from 0->(max value of IntegrationTime in seconds). Can the actual
value
Post by Andrew Parker via ParaView
of time be backed out or animated? If so how do I do that, or am I
applying
Post by Andrew Parker via ParaView
the Contour filter wrongly: as per the post, I am only using the default
values in the Counter filter panel.
Instead of using the Sequence animation mode, use Real Time. Then, set
the Start Time to the minimum IntegrationTime value and End Time to
the maximum IntegrationTime value. You can see these listed either in
the Information tab of the StreamTracer filter in the Pipeline Browser
or under the Contour filter's Property tab under the Isosurfaces
section (Value Range). To show the current time in the render view,
use an Annotate Time source, available in the Sources menu.
Post by Andrew Parker via ParaView
Finally, and importantly for me, while the Glyphs move across the screen
following the streamlines, and render via the temperature field, how to I
actually extract information from this pseudo time series to perform
analysis? For example, the min and max temperature seen by a particle
as it
Post by Andrew Parker via ParaView
moved across the streamline for instance? I'm actually hoping to plot
offline (as a function of IntegrationTime) the min and max temperature
obtained for each particle: I can then take the min and max of that set
for
Post by Andrew Parker via ParaView
the quickest and slowest particles.
You can run the Connectivity filter on the StreamTracer output to
assign a unique value to each streamline. This unique value will be
called RegionId. It starts at 0 and ends at the number of stream lines
minus 1. Selecting each stream line can be done with the Threshold
filter in ParaView using the RegionId as the threshold array, then you
can see the min/max of your temperature and IntegrationTime variables
in the Information tab. Iterating over all stream lines and saving the
min/max of the different scalar fields is possible using ParaView's
Python scripting capabilities. However, you may find it faster to
export the data to a tool with which you are more familiar.
To do that, I would suggest saving the Connectivity filter output to a
.csv file. The CSV file will contain all the scalar fields in
different columns, including the aforementioned RegionId field. Simply
filter on the RegionId field using your favorite software/plotting
tool to find the min and max temperature and max IntegrationTime of
the particle along the stream line.
HTH,
Cory
Post by Andrew Parker via ParaView
Using the latest stock version of paraview.
Cheers,
Andy
Post by Scott, W Alan
Ken and Jean, excellent idea! I liked it so much that I wrote it up in
http://www.paraview.org/Wiki/Advanced_Tips_and_Tricks
Alan
Moreland, Kenneth
Sent: Friday, June 06, 2014 11:43 AM
To: David E DeMarle; minh hien
Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state
result
Post by Andrew Parker via ParaView
Post by Scott, W Alan
Here's a more expanded list of steps outlining the solution David gave
in
Post by Andrew Parker via ParaView
Post by Scott, W Alan
case you are not very familiar with the contour filter and animation
controls in ParaView.
1. Create the streamlines as you normally would.
2. Add a Contour filter to the streamline (third toolbar, second button
from the left).
2.a. Change the Contour By property to IntegrationTime.
2.b. Press Apply.
This little trick will create a point on each streamline at a particular
time in the particle advection simulation that created the streamlines.
3. Open the Animation View (View -> Animation View)
3.a. On the bottom row, select the contour filter in the first chooser
box
Post by Andrew Parker via ParaView
Post by Scott, W Alan
and Isosurfaces in the second chooser box. Then hit the blue plus
button at
Post by Andrew Parker via ParaView
Post by Scott, W Alan
the left.
3.b. Make sure Mode is set to Sequence and change No. Frames to 100.
3.c. Hit the play button in the VCR controls (green triangle in the top
toolbar). You will see the dots animate over the streamlines.
3.d. You can adjust the speed of the animation by changing the No.
Frames.
Post by Andrew Parker via ParaView
Post by Scott, W Alan
4. If you want to see glyphs instead of dots, just add the glyph filter
to
Post by Andrew Parker via ParaView
Post by Scott, W Alan
the output of the contour filter.
BTW, props to Jean Favre for originally posting this solution to the
ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg).
-Ken
Date: Thursday, June 5, 2014 8:07 AM
Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state
result
Post by Andrew Parker via ParaView
Post by Scott, W Alan
Make an isocontour of the streamlines' integrationTime variable.
Then in animation view, make a track for the isocontour value.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
Hi all,
I got steady state solution for my problem. After plotting streamlines
at
Post by Andrew Parker via ParaView
Post by Scott, W Alan
steady state, I would like to make animation showing moving of spheres
(resulted from Glyph filter) on the streamlines, the spheres' velocity
should be defined by the flow velocity. How can I make this?
Any suggestion would be very much appreciated.
Thank you in advance.
Minh
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://paraview.org/Wiki/ParaView
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
http://paraview.org/Wiki/ParaView
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
http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
https://paraview.org/mailman/listinfo/paraview
--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
Andrew Parker via ParaView
2018-02-02 09:44:23 UTC
Permalink
Cory,

As a follow up. Can I ask if it would be possible to do all that is
suggested on Scott's page:
https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#
Animating_a_static_vector_field

Along with all of your additional steps below from your last post (be great
to add these to Scott's page), entirely in pvpython or pvbatch? I make use
of the anaconda version from here: https://anaconda.org/conda-forge/paraview

Would it be possible do you think to script all of this? I have not tired
it yet I should add just checking for show stoppers before I begin.
Thanks,
Andy
Post by Cory Quammen
Andrew,
On Fri, Jan 19, 2018 at 6:27 AM, Andrew Parker via ParaView
Post by Andrew Parker via ParaView
Dear all,
Sorry to post onto an old thread. I have been reading this thread and the
https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#
Animating_a_static_vector_field
Post by Andrew Parker via ParaView
This thread (and the tips and tricks post) is really close to what I
want to
Post by Andrew Parker via ParaView
do, but I have a few follow-up questions. I too have a steady-state
solution field. I want to trace particles from the inlet of my domain to
the
Post by Andrew Parker via ParaView
exit, following the steady-state velocity field, and report for each
particle the temperature-time history (or any other scalar from my
simulation) that the particle sees. In additional and crucially, the
time
Post by Andrew Parker via ParaView
the particle has within the domain: a residence time. The residence time
would be the maximum value or IntegrationTime each particle attains
before
Post by Andrew Parker via ParaView
it leaves the domain.
I see that if I follow the notes I can plot (using Glyphs) the
temperature
Post by Andrew Parker via ParaView
as it varies across my domain as the particles are animated down the
streamlines: this is working. What I do not seem to be able to find
however, is the IntegrationTime. It appears as point-field data after
the
Post by Andrew Parker via ParaView
streamlines are created, but vanishes after the contour filter is
applied.
Post by Andrew Parker via ParaView
I guess the contour filter is computing a singular value for all values
of
Post by Andrew Parker via ParaView
the IntegrationTime from T=0 to T=N with a specific level of granularity.
By default, the Contour filter does not copy the scalar field used to
determine the contour surface since it will always be the same value.
You can tell it to copy the scalar field by enabling the Compute
Scalars option.
Post by Andrew Parker via ParaView
However, I can't seem to extract the specific value of IntegrationTime
(the
Post by Andrew Parker via ParaView
contour value) when I stop the simulation at any given point. Do you
know
Post by Andrew Parker via ParaView
how to do that? The "time" scale in the VCR window always goes from 0->1
not from 0->(max value of IntegrationTime in seconds). Can the actual
value
Post by Andrew Parker via ParaView
of time be backed out or animated? If so how do I do that, or am I
applying
Post by Andrew Parker via ParaView
the Contour filter wrongly: as per the post, I am only using the default
values in the Counter filter panel.
Instead of using the Sequence animation mode, use Real Time. Then, set
the Start Time to the minimum IntegrationTime value and End Time to
the maximum IntegrationTime value. You can see these listed either in
the Information tab of the StreamTracer filter in the Pipeline Browser
or under the Contour filter's Property tab under the Isosurfaces
section (Value Range). To show the current time in the render view,
use an Annotate Time source, available in the Sources menu.
Post by Andrew Parker via ParaView
Finally, and importantly for me, while the Glyphs move across the screen
following the streamlines, and render via the temperature field, how to I
actually extract information from this pseudo time series to perform
analysis? For example, the min and max temperature seen by a particle
as it
Post by Andrew Parker via ParaView
moved across the streamline for instance? I'm actually hoping to plot
offline (as a function of IntegrationTime) the min and max temperature
obtained for each particle: I can then take the min and max of that set
for
Post by Andrew Parker via ParaView
the quickest and slowest particles.
You can run the Connectivity filter on the StreamTracer output to
assign a unique value to each streamline. This unique value will be
called RegionId. It starts at 0 and ends at the number of stream lines
minus 1. Selecting each stream line can be done with the Threshold
filter in ParaView using the RegionId as the threshold array, then you
can see the min/max of your temperature and IntegrationTime variables
in the Information tab. Iterating over all stream lines and saving the
min/max of the different scalar fields is possible using ParaView's
Python scripting capabilities. However, you may find it faster to
export the data to a tool with which you are more familiar.
To do that, I would suggest saving the Connectivity filter output to a
.csv file. The CSV file will contain all the scalar fields in
different columns, including the aforementioned RegionId field. Simply
filter on the RegionId field using your favorite software/plotting
tool to find the min and max temperature and max IntegrationTime of
the particle along the stream line.
HTH,
Cory
Post by Andrew Parker via ParaView
Using the latest stock version of paraview.
Cheers,
Andy
Post by Scott, W Alan
Ken and Jean, excellent idea! I liked it so much that I wrote it up in
http://www.paraview.org/Wiki/Advanced_Tips_and_Tricks
Alan
Moreland, Kenneth
Sent: Friday, June 06, 2014 11:43 AM
To: David E DeMarle; minh hien
Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state
result
Post by Andrew Parker via ParaView
Post by Scott, W Alan
Here's a more expanded list of steps outlining the solution David gave
in
Post by Andrew Parker via ParaView
Post by Scott, W Alan
case you are not very familiar with the contour filter and animation
controls in ParaView.
1. Create the streamlines as you normally would.
2. Add a Contour filter to the streamline (third toolbar, second button
from the left).
2.a. Change the Contour By property to IntegrationTime.
2.b. Press Apply.
This little trick will create a point on each streamline at a particular
time in the particle advection simulation that created the streamlines.
3. Open the Animation View (View -> Animation View)
3.a. On the bottom row, select the contour filter in the first chooser
box
Post by Andrew Parker via ParaView
Post by Scott, W Alan
and Isosurfaces in the second chooser box. Then hit the blue plus
button at
Post by Andrew Parker via ParaView
Post by Scott, W Alan
the left.
3.b. Make sure Mode is set to Sequence and change No. Frames to 100.
3.c. Hit the play button in the VCR controls (green triangle in the top
toolbar). You will see the dots animate over the streamlines.
3.d. You can adjust the speed of the animation by changing the No.
Frames.
Post by Andrew Parker via ParaView
Post by Scott, W Alan
4. If you want to see glyphs instead of dots, just add the glyph filter
to
Post by Andrew Parker via ParaView
Post by Scott, W Alan
the output of the contour filter.
BTW, props to Jean Favre for originally posting this solution to the
ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg).
-Ken
Date: Thursday, June 5, 2014 8:07 AM
Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state
result
Post by Andrew Parker via ParaView
Post by Scott, W Alan
Make an isocontour of the streamlines' integrationTime variable.
Then in animation view, make a track for the isocontour value.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
Hi all,
I got steady state solution for my problem. After plotting streamlines
at
Post by Andrew Parker via ParaView
Post by Scott, W Alan
steady state, I would like to make animation showing moving of spheres
(resulted from Glyph filter) on the streamlines, the spheres' velocity
should be defined by the flow velocity. How can I make this?
Any suggestion would be very much appreciated.
Thank you in advance.
Minh
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://paraview.org/Wiki/ParaView
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
http://paraview.org/Wiki/ParaView
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
http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
https://paraview.org/mailman/listinfo/paraview
--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
Cory Quammen
2018-02-02 15:21:43 UTC
Permalink
On Fri, Feb 2, 2018 at 4:44 AM, Andrew Parker
Post by Andrew Parker via ParaView
Cory,
As a follow up. Can I ask if it would be possible to do all that is
https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#Animating_a_static_vector_field
Along with all of your additional steps below from your last post (be great
to add these to Scott's page), entirely in pvpython or pvbatch? I make use
of the anaconda version from here: https://anaconda.org/conda-forge/paraview
Would it be possible do you think to script all of this? I have not tired it
yet I should add just checking for show stoppers before I begin.
I don't foresee any showstoppers. To make scripting easier, use the
Python tracing capability within the ParaView GUI. Tools menu -> Start
Trace, then perform the suggested actions. When done, choose Tools ->
Stop Trace, and you will see a dialog with the generated script that
you can use as a starting point.

Thanks,
Cory
Post by Andrew Parker via ParaView
Thanks,
Andy
Post by Cory Quammen
Andrew,
On Fri, Jan 19, 2018 at 6:27 AM, Andrew Parker via ParaView
Post by Andrew Parker via ParaView
Dear all,
Sorry to post onto an old thread. I have been reading this thread and the
https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#Animating_a_static_vector_field
This thread (and the tips and tricks post) is really close to what I want to
do, but I have a few follow-up questions. I too have a steady-state
solution field. I want to trace particles from the inlet of my domain to the
exit, following the steady-state velocity field, and report for each
particle the temperature-time history (or any other scalar from my
simulation) that the particle sees. In additional and crucially, the time
the particle has within the domain: a residence time. The residence time
would be the maximum value or IntegrationTime each particle attains before
it leaves the domain.
I see that if I follow the notes I can plot (using Glyphs) the temperature
as it varies across my domain as the particles are animated down the
streamlines: this is working. What I do not seem to be able to find
however, is the IntegrationTime. It appears as point-field data after the
streamlines are created, but vanishes after the contour filter is applied.
I guess the contour filter is computing a singular value for all values of
the IntegrationTime from T=0 to T=N with a specific level of granularity.
By default, the Contour filter does not copy the scalar field used to
determine the contour surface since it will always be the same value.
You can tell it to copy the scalar field by enabling the Compute
Scalars option.
Post by Andrew Parker via ParaView
However, I can't seem to extract the specific value of IntegrationTime (the
contour value) when I stop the simulation at any given point. Do you know
how to do that? The "time" scale in the VCR window always goes from 0->1
not from 0->(max value of IntegrationTime in seconds). Can the actual value
of time be backed out or animated? If so how do I do that, or am I applying
the Contour filter wrongly: as per the post, I am only using the default
values in the Counter filter panel.
Instead of using the Sequence animation mode, use Real Time. Then, set
the Start Time to the minimum IntegrationTime value and End Time to
the maximum IntegrationTime value. You can see these listed either in
the Information tab of the StreamTracer filter in the Pipeline Browser
or under the Contour filter's Property tab under the Isosurfaces
section (Value Range). To show the current time in the render view,
use an Annotate Time source, available in the Sources menu.
Post by Andrew Parker via ParaView
Finally, and importantly for me, while the Glyphs move across the screen
following the streamlines, and render via the temperature field, how to I
actually extract information from this pseudo time series to perform
analysis? For example, the min and max temperature seen by a particle as it
moved across the streamline for instance? I'm actually hoping to plot
offline (as a function of IntegrationTime) the min and max temperature
obtained for each particle: I can then take the min and max of that set for
the quickest and slowest particles.
You can run the Connectivity filter on the StreamTracer output to
assign a unique value to each streamline. This unique value will be
called RegionId. It starts at 0 and ends at the number of stream lines
minus 1. Selecting each stream line can be done with the Threshold
filter in ParaView using the RegionId as the threshold array, then you
can see the min/max of your temperature and IntegrationTime variables
in the Information tab. Iterating over all stream lines and saving the
min/max of the different scalar fields is possible using ParaView's
Python scripting capabilities. However, you may find it faster to
export the data to a tool with which you are more familiar.
To do that, I would suggest saving the Connectivity filter output to a
.csv file. The CSV file will contain all the scalar fields in
different columns, including the aforementioned RegionId field. Simply
filter on the RegionId field using your favorite software/plotting
tool to find the min and max temperature and max IntegrationTime of
the particle along the stream line.
HTH,
Cory
Post by Andrew Parker via ParaView
Using the latest stock version of paraview.
Cheers,
Andy
Post by Scott, W Alan
Ken and Jean, excellent idea! I liked it so much that I wrote it up in
http://www.paraview.org/Wiki/Advanced_Tips_and_Tricks
Alan
Moreland, Kenneth
Sent: Friday, June 06, 2014 11:43 AM
To: David E DeMarle; minh hien
Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result
Here's a more expanded list of steps outlining the solution David gave in
case you are not very familiar with the contour filter and animation
controls in ParaView.
1. Create the streamlines as you normally would.
2. Add a Contour filter to the streamline (third toolbar, second button
from the left).
2.a. Change the Contour By property to IntegrationTime.
2.b. Press Apply.
This little trick will create a point on each streamline at a particular
time in the particle advection simulation that created the streamlines.
3. Open the Animation View (View -> Animation View)
3.a. On the bottom row, select the contour filter in the first chooser box
and Isosurfaces in the second chooser box. Then hit the blue plus button at
the left.
3.b. Make sure Mode is set to Sequence and change No. Frames to 100.
3.c. Hit the play button in the VCR controls (green triangle in the top
toolbar). You will see the dots animate over the streamlines.
3.d. You can adjust the speed of the animation by changing the No. Frames.
4. If you want to see glyphs instead of dots, just add the glyph filter to
the output of the contour filter.
BTW, props to Jean Favre for originally posting this solution to the
ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg).
-Ken
Date: Thursday, June 5, 2014 8:07 AM
Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result
Make an isocontour of the streamlines' integrationTime variable.
Then in animation view, make a track for the isocontour value.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
Hi all,
I got steady state solution for my problem. After plotting streamlines at
steady state, I would like to make animation showing moving of spheres
(resulted from Glyph filter) on the streamlines, the spheres' velocity
should be defined by the flow velocity. How can I make this?
Any suggestion would be very much appreciated.
Thank you in advance.
Minh
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://paraview.org/Wiki/ParaView
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
http://paraview.org/Wiki/ParaView
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
http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
https://paraview.org/mailman/listinfo/paraview
--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
_______________________________________________
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:
https://paraview.org/mailman/listinfo/paraview
Stephen Wornom
2014-06-07 09:04:41 UTC
Permalink
Thanks for passing this on. I am using PV 4.1.0, maybe it was written
for an earlier version of PV. I did step 2, but step 2a ( Change the
Contour By property to IntegrationTime), I do not see this option.
I downloaded the PV 4.1.0 binaries, could that be the problem?
Stephen
Post by Moreland, Kenneth
Here's a more expanded list of steps outlining the solution David gave
in case you are not very familiar with the contour filter and
animation controls in ParaView.
1. Create the streamlines as you normally would.
2. Add a Contour filter to the streamline (third toolbar, second button from the left).
2.a. Change the Contour By property to IntegrationTime.
2.b. Press Apply.
This little trick will create a point on each streamline at a
particular time in the particle advection simulation that created the
streamlines.
3. Open the Animation View (View -> Animation View)
3.a. On the bottom row, select the contour filter in the first chooser
box and Isosurfaces in the second chooser box. Then hit the blue plus
button at the left.
3.b. Make sure Mode is set to Sequence and change No. Frames to 100.
3.c. Hit the play button in the VCR controls (green triangle in the
top toolbar). You will see the dots animate over the streamlines.
3.d. You can adjust the speed of the animation by changing the No. Frames.
4. If you want to see glyphs instead of dots, just add the glyph
filter to the output of the contour filter.
BTW, props to Jean Favre for originally posting this solution to the
ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg).
-Ken
From: David E DeMarle <dave.demarle at kitware.com
<mailto:dave.demarle at kitware.com>>
Date: Thursday, June 5, 2014 8:07 AM
To: minh hien <minh.cfd at gmail.com <mailto:minh.cfd at gmail.com>>
Cc: "paraview at paraview.org <mailto:paraview at paraview.org>"
<paraview at paraview.org <mailto:paraview at paraview.org>>
Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state result
Make an isocontour of the streamlines' integrationTime variable.
Then in animation view, make a track for the isocontour value.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Thu, Jun 5, 2014 at 9:52 AM, minh hien <minh.cfd at gmail.com
Hi all,
I got steady state solution for my problem. After plotting
streamlines at steady state, I would like to make animation
showing moving of spheres (resulted from Glyph filter) on the
streamlines, the spheres' velocity should be defined by the flow
velocity. How can I make this?
Any suggestion would be very much appreciated.
Thank you in advance.
Minh
_______________________________________________
Powered by www.kitware.com <http://www.kitware.com>
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
<http://www.kitware.com/opensource/opensource.html>
http://paraview.org/Wiki/ParaView <http://paraview.org/Wiki/ParaView>
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
http://www.paraview.org/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140607/a94781a1/attachment.html>
Utkarsh Ayachit
2014-06-08 02:56:13 UTC
Permalink
I did step 2, but step 2a ( Change the Contour By
property to IntegrationTime), I do not see this option.
I downloaded the PV 4.1.0 binaries, could that be the problem?
No, that should not be any different for 4.1.0 or earlier versions.
You do not see a "Contour By" widget at all on the Properties panel
for the "Contour" filter, is that so? Or is that the "IntegrationTime"
value is not available in the comb-box next to that property?

Utkarsh
Continue reading on narkive:
Loading...