|
[Sponsors] |
April 17, 2014, 10:26 |
Average contours
|
#1 |
Member
WALI HASAN
Join Date: Sep 2013
Posts: 42
Rep Power: 12 |
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.. |
|
April 23, 2014, 03:07 |
|
#2 |
New Member
Yendrew
Join Date: Aug 2013
Location: Sydney, Australia
Posts: 4
Rep Power: 12 |
I have the same question as well. Any help would be great
|
|
April 23, 2014, 08:31 |
|
#3 |
New Member
Praveen Kumar R
Join Date: Apr 2014
Location: Pune, India
Posts: 19
Rep Power: 12 |
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 |
|
April 23, 2014, 21:06 |
|
#4 | |
New Member
Yendrew
Join Date: Aug 2013
Location: Sydney, Australia
Posts: 4
Rep Power: 12 |
Quote:
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 |
||
April 24, 2014, 10:38 |
|
#5 |
New Member
Praveen Kumar R
Join Date: Apr 2014
Location: Pune, India
Posts: 19
Rep Power: 12 |
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. |
|
|
|
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 |