|
[Sponsors] |
January 29, 2018, 13:25 |
Animating Calculator Results
|
#1 |
New Member
Zoltan Losonc
Join Date: Jan 2018
Posts: 4
Rep Power: 8 |
Hi ParaView Experts,
I would like to automate or at least speed up a calculator generated animation. The imported file has been generated by Elmer, which is the solution of a simple acoustic problem using the Helmholtz solver. The results are in frequency domain and use complex numbers. In order to visualize the wave motion in time domain, a new variable field is computed with the calculator filter using the formula (p1 – real part; p2 – imaginary part of the acoustic pressure): p(90)=p1*cos(90*3.14/180)-p2*sin(90*3.14/180) which shows the wave field at 90 deg phase shift. One can create an animation of the moving waves by recalculating the above formula for different phase angles, where number 90 is being changed from 0 to 360 degrees. After each calculation the image is saved, and finally stitched together in an external application. This manually changing the phase angle in the formula, recalculating, and saving can get quite time consuming and boring if high resolution is needed, and repeated many times for different input files. Is there a simple way to speed this up in ParaView, or one must write a custom Python script to do that? Using ParaView 4.0.1 64bit on Linux Mint 17.3. Regards, Zoltan |
|
January 29, 2018, 17:23 |
|
#2 |
New Member
Forge Analytics
Join Date: Jan 2018
Posts: 16
Rep Power: 8 |
It sounds like a Python script might be your best bet.
However, a quick alternative could be to use ParaView state files for the analysis, and then edit the file to serve as a template for the analysis. For example, you could save the state file, and then replace instances of the phase angle with a special keyword ("##PHASE_ANGLE##", or similar), and then use the Linux command "sed" to find / replace the keyword with the phase angle you want to use. Then write a small bash loop to iterate over each angle and execute ParaView for each.
__________________
https://forgeanalytics.io/ | Data Management for Scientists and Engineers |
|
January 30, 2018, 01:46 |
|
#3 |
New Member
Zoltan Losonc
Join Date: Jan 2018
Posts: 4
Rep Power: 8 |
Thanks for the advise forgeanalytics.
The Python script will be the best solution. I was just hoping that something ready made already exists. Cheers, Zoltan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Animating fluid-structure interaction | shayan_mv | Tecplot | 0 | November 16, 2018 05:56 |
[General] Animating unsteady data from Fluent in Paraview.. | frodooon | ParaView | 10 | May 9, 2014 10:39 |
Animating flapping motion | doctsh | FLUENT | 2 | August 22, 2011 11:05 |
Animating VIV around 2D cylinder | Dash Swift | FLUENT | 0 | August 19, 2006 20:19 |
animating unsteady flows | phil | FLUENT | 2 | December 2, 2002 05:07 |