CFD Online URL
[Sponsors]
Home > Forums > FLUENT

Average contours

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

Like Tree1Likes
  • 1 Post By yen

Reply
 
LinkBack Thread Tools Display Modes
Old   April 17, 2014, 11:26
Default Average contours
  #1
Member
 
WALI HASAN
Join Date: Sep 2013
Posts: 31
Rep Power: 3
wali is on a distinguished road
hello, dear


i have fluent one case and 50 data files after every time steps of 10 now i want to plot average contour of any quantity like presure, velocity..
how i can do this.....


please help

thanks..
wali is offline   Reply With Quote

Old   April 23, 2014, 04:07
Default
  #2
yen
New Member
 
Yendrew
Join Date: Aug 2013
Location: Sydney, Australia
Posts: 3
Rep Power: 3
yen is on a distinguished road
I have the same question as well. Any help would be great
yen is offline   Reply With Quote

Old   April 23, 2014, 09:31
Thumbs up
  #3
New Member
 
praveen@cfd-online.com's Avatar
 
Praveen Kumar R
Join Date: Apr 2014
Location: Pune, India
Posts: 18
Rep Power: 2
praveen@cfd-online.com is on a distinguished road
Hi,

If you want to do this at runtime, then you can use

Solve ----> Calculation Activities ----> Execute Commands

This option allows you to run a particular command after every specified iterations / time step. So you can specify the time step and the command to display contours and save the image also.

If you have saved data files after regular time step intervals, then use journal file that has tui commands open each data file ; display contour and save image. You can use do loops to read data files one after the other.

Best Regards
Praveen
praveen@cfd-online.com is offline   Reply With Quote

Old   April 23, 2014, 22:06
Default
  #4
yen
New Member
 
Yendrew
Join Date: Aug 2013
Location: Sydney, Australia
Posts: 3
Rep Power: 3
yen is on a distinguished road
Quote:
Originally Posted by praveen@cfd-online.com View Post
Hi,

If you want to do this at runtime, then you can use

Solve ----> Calculation Activities ----> Execute Commands

This option allows you to run a particular command after every specified iterations / time step. So you can specify the time step and the command to display contours and save the image also.

If you have saved data files after regular time step intervals, then use journal file that has tui commands open each data file ; display contour and save image. You can use do loops to read data files one after the other.

Best Regards
Praveen
Hi Praveen,

Thank you for the reply, but I think the real question here is how to plot a time-averaged contour (which in his case is 10-time step -averaged).
With regard to the execute command, I have been using that for quite some time through TUI actually

So to bring the focus back to the question: how can I get a time-averaged contour for a transient case?

Thanks for the help again!


Yen
yen is offline   Reply With Quote

Old   April 24, 2014, 11:38
Thumbs up
  #5
New Member
 
praveen@cfd-online.com's Avatar
 
Praveen Kumar R
Join Date: Apr 2014
Location: Pune, India
Posts: 18
Rep Power: 2
praveen@cfd-online.com is on a distinguished road
OK! I am not sure about any direct method to plot time-averaged quantities. But I can think of an alternate way, which might be a bit confusing.

To do time average of pressure (or any quantity), first thing is to get value of pressure at all nodes from each data file (after every 10 time step).

We can get this using File -----> Interpolate -----> Write Data and select the quantity you want to plot. This .ip file contains x, y, z co-ordinates of mesh nodes and the selected quantity (pressure) at each node. You can view these by opening the file using notepad or wordpad.

Once you have these values for different time-steps, using a small c-program the values can be averaged and a new .ip file in the same format. We can read the code created .ip using File -----> Interpolate -----> Read and Interpolate option.

Lets say you have 50 .dat file, then we need to write 50 .ip files (journal file can be used with a do loop). The C-program should read 'n'-th line from each file and average it and print it on the 'n'-th line of new .ip file. This has to be done for each node (depends on the mesh count). A good understanding of interpolate file format is required to do this.

Having said that, there could be an easy way to do this. If you find any solution, post that pls.
praveen@cfd-online.com is offline   Reply With Quote

Reply

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
How to obtain turbulent kinetic energy data from LES model of Ansys CFX? rsin CFX 10 October 13, 2014 10:24
what does this swak function of average on average mean? immortality OpenFOAM Post-Processing 4 May 3, 2013 14:52
Floating point exception error Alan OpenFOAM Running, Solving & CFD 10 April 6, 2012 15:02
Average Facet, Surface Vertex or Area-Weighted Emmanuel FLUENT 2 February 4, 2012 23:04
extension for liquid fraction contours venugopal FLUENT 0 June 11, 2004 02:27


All times are GMT -4. The time now is 03:27.