|
[Sponsors] |
May 12, 2012, 19:50 |
Time averaging in Fluent
|
#1 |
New Member
Benjamin Yesu
Join Date: May 2012
Posts: 4
Rep Power: 14 |
Users,
I have case and data files saved after ever 5s. I also enable data sampling statistics in the iterate panel. How do I get it? Any advice will be much appreciated. |
|
May 12, 2012, 23:51 |
|
#2 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66 |
Quote:
The data is stored in new variable names with either Mean or Rms at the end. For example the instantaneous x-velocity, average x-velocity, and rms x-velocity are named, respectively: X Velocity X Velocity Mean X Velocity Rms any other variable that has statistics will also follow a similar nomenclature for the new variable names. |
||
May 13, 2012, 11:44 |
Time averagin followup
|
#3 |
New Member
Benjamin Yesu
Join Date: May 2012
Posts: 4
Rep Power: 14 |
Thanks Tran and Mali.
Mali, I used the UDF from the link. Where are the average values stored. I checked the UDS panel is post processing they show all zeros for the 12 scalars. The documentation provided with the .scm does not mention where the user is supposed to look for the averages. Also i think there is one step missing. One has to hook the execute on demand fuction in Define on Demand panel or else fluent complains "avg" chip exec not found. Your calrifications in this matter will be of great help. |
|
May 13, 2012, 17:37 |
|
#4 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66 |
Quote:
You can always access the results at each time step directly by reading the saved data file. You can access the time-averaged data (so far) up to any time step by accessing the data variables I mentioned earlier with the corresponding Mean of Rms. Other than loading the proper data or finding the right variable name, the rest is straightforward, just do what you usually do to manipulate/plot data. You can use the UDF you want, but I don't think it's worth the hassle for a few button clicks. |
||
May 13, 2012, 18:35 |
|
#5 |
Senior Member
|
I would definitely not follow what mentioned in the link. First, as you have the ability to let Fluent activate its statistics (and these are available at least from Fluent 6) you also have the way to retrieve them, which is very simple: go under contours, unsteady statistics and you're done.
These variables are also accessible by UDF (a little bit more cumbersome than usual) However, let us suppose you don't have this statistics feature. I would not certainly save all the cas and dat i want to average. Instead it is much more convenient to have running averages, variances and covariances defined as UDM and update them at each time step Edit: LuckyTran explined much better what i wanted to say. It's just that i started the reply more than a hour ago and then i got stucked in something else. Last edited by sbaffini; May 13, 2012 at 18:38. Reason: See the post |
|
May 14, 2012, 08:00 |
|
#6 |
New Member
Benjamin Yesu
Join Date: May 2012
Posts: 4
Rep Power: 14 |
Thanks for your replies.
|
|
March 25, 2013, 13:37 |
|
#7 |
Senior Member
Join Date: Jul 2011
Posts: 120
Rep Power: 15 |
May I clarify, what is the unit for the sampling interval? is it Hz (/s) or per time step size or something else? Please advise, thanks.
|
|
March 27, 2013, 11:59 |
|
#8 |
Senior Member
OJ
Join Date: Apr 2012
Location: United Kindom
Posts: 473
Rep Power: 20 |
It is per "so many timesteps" or "so many seconds" and you can specify value, how much.
OJ |
|
March 27, 2013, 12:13 |
|
#9 | |
Senior Member
Join Date: Jul 2011
Posts: 120
Rep Power: 15 |
Quote:
i.e. my time step size is 0.1s, I want to sample once every second. Should I input 1 or 10 in the sampling interval? |
||
March 28, 2013, 11:01 |
|
#10 |
Senior Member
OJ
Join Date: Apr 2012
Location: United Kindom
Posts: 473
Rep Power: 20 |
Time sampled option suggests the seconds for which the data is sampled. If you divide this time by timestep, it will give you the number of datasets used for creating statistics.
Documentation is elaborate on this. OJ |
|
March 28, 2013, 11:06 |
|
#11 |
Senior Member
Join Date: Jul 2011
Posts: 120
Rep Power: 15 |
Please share the documentation as I am unable to find an elaborate explanation on this topic, thanks.
|
|
March 28, 2013, 11:13 |
|
#12 |
Senior Member
OJ
Join Date: Apr 2012
Location: United Kindom
Posts: 473
Rep Power: 20 |
||
March 28, 2013, 11:35 |
|
#13 | |
Senior Member
Join Date: Jul 2011
Posts: 120
Rep Power: 15 |
Quote:
You can set the Sampling Interval such that Data Sampling for Time Statistics can be performed at the specified frequency. Here it mentioned frequency, isn't it supposed to be number of dataset created per second? |
||
March 28, 2013, 12:21 |
|
#14 |
Senior Member
OJ
Join Date: Apr 2012
Location: United Kindom
Posts: 473
Rep Power: 20 |
Oh, I see your confusion now.
Sampling interval is no. of timesteps after which transient statistics is recorded for averaging. So if your time step size is 0.1 and you want to create time averaged data using results after every 1 sec, you should specify the value as 10 (1 sec/0.1 sec). Sampled time is the total time for which the sampling will happen. So if your sampling time is 10 sec. the total datasets recorded for your time averaging is 10/1=10. OJ |
|
April 27, 2013, 03:30 |
|
#15 |
New Member
Yang-Jianfeng
Join Date: Apr 2013
Posts: 1
Rep Power: 0 |
Thank you!
Solution Initialization Reset Statistics Note that you can also reset the flow statistics after you have gathered some data for time statistics. If you perform, say, 10 time steps with the Data Sampling for Time Statistics option enabled, check the results, and then continue the calculation for 10 more time steps, the time statistics will include the data gathered in the first 10 time steps unless you reinitialize the flow statistics. |
|
June 16, 2013, 14:09 |
|
#16 | |
New Member
Join Date: Jan 2012
Posts: 8
Rep Power: 14 |
Quote:
|
||
June 16, 2013, 14:19 |
|
#17 |
Senior Member
OJ
Join Date: Apr 2012
Location: United Kindom
Posts: 473
Rep Power: 20 |
No, if you do not reset statistics, you will have timeaveraged data for all 20 seconds. If you reset it, you will have data for last 10 seconds, ie, since you reset it.
OJ |
|
June 16, 2013, 14:33 |
|
#18 |
New Member
Join Date: Jan 2012
Posts: 8
Rep Power: 14 |
Yes that is what I thought. But the above sentence confused me by saying that, unless I reinitialize it will include the result only for the first 10 time steps.
Thanks for your clarification. |
|
June 11, 2014, 08:23 |
|
#19 | |
New Member
Join Date: Sep 2011
Posts: 15
Rep Power: 15 |
Quote:
|
||
June 11, 2014, 08:37 |
OSI and WSSmean WSSmag
|
#20 | |
New Member
Join Date: Sep 2011
Posts: 15
Rep Power: 15 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 06:24 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 15:09 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |