CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

Animating unsteady data from Fluent in Paraview..

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 3 Post By makaveli_lcf

Reply
 
LinkBack Thread Tools Display Modes
Old   April 20, 2012, 04:50
Default Animating unsteady data from Fluent in Paraview..
  #1
New Member
 
Join Date: May 2009
Posts: 9
Rep Power: 8
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, 18:15
Default
  #2
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 72
Rep Power: 6
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, 10:04
Default
  #3
Senior Member
 
Ugly Kid Joe
Join Date: Aug 2010
Posts: 193
Rep Power: 7
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, 09:26
Default
  #4
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 213
Rep Power: 10
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 "Advanced Process Simulation of
Solidification and Melting"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

Franz-Josef-Str. 18
A - 8700 Leoben
Österreich / Austria
Tel.: +43 3842 - 402 - 3125
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: 5
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: 9
Rep Power: 8
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: 128
Rep Power: 6
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: 213
Rep Power: 10
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 "Advanced Process Simulation of
Solidification and Melting"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

Franz-Josef-Str. 18
A - 8700 Leoben
Österreich / Austria
Tel.: +43 3842 - 402 - 3125
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: 128
Rep Power: 6
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: 213
Rep Power: 10
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 "Advanced Process Simulation of
Solidification and Melting"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

Franz-Josef-Str. 18
A - 8700 Leoben
Österreich / Austria
Tel.: +43 3842 - 402 - 3125
http://smmp.unileoben.ac.at
makaveli_lcf is offline   Reply With Quote

Old   May 9, 2014, 10:39
Default
  #11
New Member
 
Jakob Hćrvig
Join Date: Sep 2012
Location: Aalborg, Denmark
Posts: 18
Rep Power: 4
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent 6.3 export to Paraview 3.10 Silence19 FLUENT 4 May 15, 2013 03:13
Extracting ParaView Data into Python Arrays Jeffzda ParaView 7 December 6, 2012 09:10
How to assign the inlet B.C using a bunch of data set for an unsteady problem? ali8500 CFX 3 March 28, 2012 18:41
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
Rendering Fluent Data in Paraview burk FLUENT 4 July 7, 2008 03:32


All times are GMT -4. The time now is 12:54.