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

Saving ppm images in "adaptive time stepping"

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 24, 2009, 09:45
Default Saving ppm images in "adaptive time stepping"
  #1
New Member
 
Erdem Demir
Join Date: Apr 2009
Posts: 7
Rep Power: 8
Erdem is on a distinguished road
Hi;

I am simulating an incompressible flow in a complex geometry and I am using adaptive time stepping for iterations. My question is; if it is possible to save ppm images at certain time (current_time)?

Or else the ppm images will be saved at inequal intervals (delta T between the images will not be the same) and it will be impossible to make a movie out of these image.

Does anybody have an idea or suggestion?
Erdem is offline   Reply With Quote

Old   April 24, 2009, 12:29
Default I don't think, that this is possible.
  #2
Member
 
Ralf Schmidt
Join Date: Mar 2009
Location: Austria
Posts: 67
Rep Power: 8
Ralf Schmidt is on a distinguished road
Fluent ONLY calculates the solution on the time steps you provide.

So time steps in between are NOT available.

You might interpolate in between the time steps by yourself: Taking the results of two time steps (e.g. temperature profile on a surface), interpolate the results to your desired time step) e.g. with matlab) and plot the data with any plotting software (matlab, or maybe even Fluent could read that profile).
But I think, this could be very difficult... And might work only for a 2D problem...

Another option: if the time steps are not equal... just change the duration of the images appear in the movie.
like: time step is 1 second -> image duration is 1 second,
time step is 2 seconds -> image duration is 2 seconds (or use that image twice for each 1 second)
For that, you have to find the least common denominator of the time step size....

Ralf
__________________
CFD - nothing but Colourful Fluid Dynamics
Ralf Schmidt is offline   Reply With Quote

Old   April 29, 2009, 05:00
Default
  #3
New Member
 
Erdem Demir
Join Date: Apr 2009
Posts: 7
Rep Power: 8
Erdem is on a distinguished road
Thank you very much for the answer Ralph. Have a nice day.
Erdem is offline   Reply With Quote

Old   April 30, 2009, 09:00
Default
  #4
New Member
 
Erdem Demir
Join Date: Apr 2009
Posts: 7
Rep Power: 8
Erdem is on a distinguished road
One more question:

- Can we force Fluent to iterate at certain time steps (so that we can take ppm images at certain times) ?
Erdem is offline   Reply With Quote

Old   April 30, 2009, 09:36
Default
  #5
Member
 
Ralf Schmidt
Join Date: Mar 2009
Location: Austria
Posts: 67
Rep Power: 8
Ralf Schmidt is on a distinguished road
sure... with non adaptive time stepping...

you might write a journal, that sets different time steps (e.g. first 80 time steps with 0.1 seconds, than 60 time steps with 0.5 seconds and finally 60 time steps with 1 second, 10 iteration each time step).

Ralf

//solve/set/time-step
0.1
//solve/dual-time
80
10

//solve/set/time-step
0.5
//solve/dual-time
60
10

//solve/set/time-step
1
//solve/dual-time
60
10
__________________
CFD - nothing but Colourful Fluid Dynamics

Last edited by Ralf Schmidt; April 30, 2009 at 12:11.
Ralf Schmidt is offline   Reply With Quote

Old   May 7, 2009, 06:08
Default
  #6
New Member
 
Erdem Demir
Join Date: Apr 2009
Posts: 7
Rep Power: 8
Erdem is on a distinguished road
Thanks again Ralf;

with a colleague we have managed to do what we need. Let me explain:

we are running the adaptive iteration up to a time value that we define as "End Time" and when the iteration stops, by using text commands we open a new window, display the contours (or anything else), take hardcopy of the window and we close it. Then we continui iterating with a new value of end time and so on.

my colleague wrote a VBA code to write a journal file with all the text commands and now we are able to take images (in tiff format directly) at the intervals we define.

your last post was really inspiring for us. Thank you very much again

Best Regards
Erdem is offline   Reply With Quote

Reply

Tags
movie, ppm, time stepping

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
Navier-Stokes time step size Martin Main CFD Forum 2 June 6, 2008 03:38
determination of time step in transient simulation Guillaume Jolly Main CFD Forum 3 April 9, 2007 20:13
Physical Reason for stability of Implicit Schemes? radhakrishnan Main CFD Forum 25 December 7, 2000 16:25
Implicit vs. Explicit Praveen C. Main CFD Forum 1 December 14, 1999 10:35
unsteady calcs in FLUENT Sanjay Padhiar Main CFD Forum 1 March 31, 1999 12:32


All times are GMT -4. The time now is 21:51.