CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Average contours (https://www.cfd-online.com/Forums/fluent/133618-average-contours.html)

wali April 17, 2014 10:26

Average contours
 
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..

yen April 23, 2014 03:07

I have the same question as well. Any help would be great :)

praveen@cfd-online.com April 23, 2014 08:31

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

yen April 23, 2014 21:06

Quote:

Originally Posted by praveen@cfd-online.com (Post 487707)
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

praveen@cfd-online.com April 24, 2014 10:38

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.


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