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

Average contours

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By yen
  • 1 Post By praveen@cfd-online.com

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2014, 10:26
Default Average contours
  #1
Member
 
WALI HASAN
Join Date: Sep 2013
Posts: 42
Rep Power: 12
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, 03:07
Default
  #2
yen
New Member
 
Yendrew
Join Date: Aug 2013
Location: Sydney, Australia
Posts: 4
Rep Power: 12
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, 08:31
Thumbs up
  #3
New Member
 
praveen@cfd-online.com's Avatar
 
Praveen Kumar R
Join Date: Apr 2014
Location: Pune, India
Posts: 19
Rep Power: 12
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, 21:06
Default
  #4
yen
New Member
 
Yendrew
Join Date: Aug 2013
Location: Sydney, Australia
Posts: 4
Rep Power: 12
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, 10:38
Thumbs up
  #5
New Member
 
praveen@cfd-online.com's Avatar
 
Praveen Kumar R
Join Date: Apr 2014
Location: Pune, India
Posts: 19
Rep Power: 12
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


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
Floating point exception error Alan OpenFOAM Running, Solving & CFD 11 July 1, 2021 21:51
Average Facet, Surface Vertex or Area-Weighted Emmanuel FLUENT 3 March 27, 2020 10:55
[swak4Foam] what does this swak function of average on average mean? immortality OpenFOAM Community Contributions 5 April 25, 2019 09:32
How to obtain turbulent kinetic energy data from LES model of Ansys CFX? rsin CFX 19 December 29, 2018 04:43
extension for liquid fraction contours venugopal FLUENT 0 June 11, 2004 01:27


All times are GMT -4. The time now is 00:22.