CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Animating unsteady data from Fluent in Paraview..

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By makaveli_lcf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2012, 05:50
Default Animating unsteady data from Fluent in Paraview..
  #1
New Member
 
Join Date: May 2009
Posts: 12
Rep Power: 17
frodooon is on a distinguished road
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
frodooon is offline   Reply With Quote

Old   September 17, 2012, 19:15
Default
  #2
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 16
NormalVector is on a distinguished road
Quote:
Originally Posted by frodooon View Post
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
I'm very interested in a solution as this is exactly the same situation I'm in. I would like to animate transient Fluent calculations preferably in the native .cas and .dat Fluent formats. I'm able to see and manipulate my data for one timestep using the Ensight format but it seems the rest of the transient data is lost. Anyone have any ideas?
NormalVector is offline   Reply With Quote

Old   September 20, 2012, 11:04
Default
  #3
Senior Member
 
Ugly Kid Joe
Join Date: Aug 2010
Posts: 193
Rep Power: 16
vmlxb6 is on a distinguished road
I am too waiting for the solution for this !!! would appreciate if someone had a solution to this. Thanks.
vmlxb6 is offline   Reply With Quote

Old   October 8, 2012, 10:26
Default
  #4
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 256
Blog Entries: 1
Rep Power: 19
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
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 run this script in GUI mode through pythonshel->run script.
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.
elvis, wyldckat and frodooon like this.
__________________
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
makaveli_lcf is offline   Reply With Quote

Old   November 16, 2012, 09:16
Default
  #5
New Member
 
Cheng Jie
Join Date: Nov 2011
Posts: 8
Rep Power: 14
jiec827 is on a distinguished road
Quote:
Originally Posted by frodooon View Post
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

Is your problem solved now?
I am got stuck in the same issue^_^
Could you give me a hand?
THX
jiec827 is offline   Reply With Quote

Old   December 18, 2012, 04:46
Default
  #6
New Member
 
Join Date: May 2009
Posts: 12
Rep Power: 17
frodooon is on a distinguished road
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 !
frodooon is offline   Reply With Quote

Old   January 15, 2013, 04:01
Default
  #7
Senior Member
 
Join Date: Feb 2011
Posts: 140
Rep Power: 15
Lilly is on a distinguished road
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
Lilly is offline   Reply With Quote

Old   January 15, 2013, 06:45
Default
  #8
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 256
Blog Entries: 1
Rep Power: 19
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
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
makaveli_lcf is offline   Reply With Quote

Old   January 15, 2013, 11:15
Default
  #9
Senior Member
 
Join Date: Feb 2011
Posts: 140
Rep Power: 15
Lilly is on a distinguished road
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
Lilly is offline   Reply With Quote

Old   January 16, 2013, 03:12
Default
  #10
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 256
Blog Entries: 1
Rep Power: 19
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
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
makaveli_lcf is offline   Reply With Quote

Old   May 9, 2014, 11:39
Default
  #11
New Member
 
Jakob Hærvig
Join Date: Sep 2012
Location: Aalborg, Denmark
Posts: 27
Rep Power: 14
hrvig is on a distinguished road
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
hrvig is offline   Reply With Quote

Reply

Tags
paraview 3.12


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 05:43.