|
[Sponsors] |
[General] Animating unsteady data from Fluent in Paraview.. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 20, 2012, 05:50 |
Animating unsteady data from Fluent in Paraview..
|
#1 |
New Member
Join Date: May 2009
Posts: 12
Rep Power: 17 |
Hello,
I would like to create an animation from an unsteady calculation done with Fluent14. Of course I could do it directly in Fluent, but I'd like to do it with Paraview. I have already done postprocessing in Paraview from Fluent files, but only for steady calculations, that require only to load one Ensight file exported from Fluent's calculation. Now the question is : is it possible to do -in Paraview- unsteady animations from Fluent file(s) ? I never used OpenFOAM, but I know it allows Paraview to somehow load all the time steps in one file, and then create an unsteady animation in Paraview.. Is that possible from Fluent too ? If yes, how ? Should I export several time steps from fluent and export for each one of these an Ensight file.. ? But that would be very time consuming! Or is it a way to load only one file exported from Fluent and have all the temporal information contained in it ? Thanks a lot, Arnaud. PS : I'm using Paraview 3.12 |
|
September 17, 2012, 19:15 |
|
#2 | |
Member
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 16 |
Quote:
|
||
September 20, 2012, 11:04 |
|
#3 |
Senior Member
Ugly Kid Joe
Join Date: Aug 2010
Posts: 193
Rep Power: 16 |
I am too waiting for the solution for this !!! would appreciate if someone had a solution to this. Thanks.
|
|
October 8, 2012, 10:26 |
|
#4 |
Senior Member
|
Hi all!
I made a small python script, that post-processes FLUENT unsteady results: Code:
#!/usr/bin/python # Load system libs import os, glob # Load paraview staff from paraview.simple import * # Some magic to make paraview not reset my zooming settings servermanager.LoadState("qq.pvsm") SetActiveView(GetRenderView()) Render() Render() # Loop through dat files for file in glob.glob(os.path.join('./res/', '*[05]0.dat') ): # Unlink old dat file and link the new one os.unlink('fluent.dat') os.symlink(file, 'fluent.dat') # Delete old state object from the pipeline browser Delete(FindSource('fluent.cas')) # Reload state servermanager.LoadState("qq.pvsm") # Check which file we are rendering print file # Do rendering SetActiveView(GetRenderView()) Render() WriteImage(file+".png") I tried the batch mode, but it resets all my coloring settings as well as my zooming preferences. Moreover it renders the frame around color scale. Hint: qq is a State file, where you save you scene settings.
__________________
Best regards, Dr. Alexander VAKHRUSHEV Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics" Simulation and Modelling of Metallurgical Processes Department of Metallurgy University of Leoben http://smmp.unileoben.ac.at |
|
November 16, 2012, 09:16 |
|
#5 | |
New Member
Cheng Jie
Join Date: Nov 2011
Posts: 8
Rep Power: 15 |
Quote:
Is your problem solved now? I am got stuck in the same issue^_^ Could you give me a hand? THX |
||
December 18, 2012, 04:46 |
|
#6 |
New Member
Join Date: May 2009
Posts: 12
Rep Power: 17 |
Thank you ! I'll try that !
Sorry I don't come often on this forum, and I thought nobody would ever answer this post So thanks again ! |
|
January 15, 2013, 04:01 |
|
#7 |
Senior Member
Join Date: Feb 2011
Posts: 140
Rep Power: 15 |
Dear all,
did anybody find the solution to this problem? Is it possible to load a stack of (ensight)-data from Fluent to Paraview and create an animation? Thanks a million for any idea and help! Lilly |
|
January 15, 2013, 06:45 |
|
#8 |
Senior Member
|
Lilly!
Give me that million and read post #4) Cheers, Alex
__________________
Best regards, Dr. Alexander VAKHRUSHEV Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics" Simulation and Modelling of Metallurgical Processes Department of Metallurgy University of Leoben http://smmp.unileoben.ac.at |
|
January 15, 2013, 11:15 |
|
#9 |
Senior Member
Join Date: Feb 2011
Posts: 140
Rep Power: 15 |
Thank you Alex !
I tried to use your script, but I always get an error message (syntax error) and cannot find the solution (I am not really good at python). Are you loading *.dat-files and the corresponding *.cas-file? Lilly |
|
January 16, 2013, 03:12 |
|
#10 |
Senior Member
|
Dear Lilly!
We can try your files. So please upload archive with your example FLUENT files and I will see what's wrong and give here some small tutorial with your data and my modified script.
__________________
Best regards, Dr. Alexander VAKHRUSHEV Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics" Simulation and Modelling of Metallurgical Processes Department of Metallurgy University of Leoben http://smmp.unileoben.ac.at |
|
May 9, 2014, 11:39 |
|
#11 |
New Member
Jakob Hærvig
Join Date: Sep 2012
Location: Aalborg, Denmark
Posts: 27
Rep Power: 14 |
How to read Fluent Ensight result files in ParaView:
Copy and rename your .encas file to "something.case" Open this file using ParaView and voila! Please write back if you have any problems |
|
Tags |
paraview 3.12 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
looking for a smart interface matlab fluent | chary | FLUENT | 24 | June 18, 2021 10:07 |
Animation of Fluent data with paraview | Lilly | FLUENT | 1 | June 26, 2016 17:07 |
Reading Fluent data files in Visit or Paraview | pranab_jha | Main CFD Forum | 0 | February 15, 2016 16:51 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 10:28 |
Rendering Fluent Data in Paraview | burk | FLUENT | 4 | July 7, 2008 04:32 |