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

sampling interval and sampling frequency

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2011, 06:07
Default sampling interval and sampling frequency
  #1
New Member
 
beauty
Join Date: Feb 2010
Posts: 27
Blog Entries: 1
Rep Power: 16
beauty is on a distinguished road
dears,

I am solving a time-dependent problem using fluent. Fluent help says "You can set the Sampling Interval such that Data Sampling for Time Statistics can be performed at the specified frequency". However, I am puzzled by the relation between sampling interval and sampling frequency. I wonder whether the following equation is right.
sampling frequency=1\div(time step size\timessampling interval)

In addtion, how can I set an appropriate Sampling Interval, according to sampling frequency in the experiment?

Thanks for your help!

beauty
beauty is offline   Reply With Quote

Old   November 3, 2014, 16:26
Default
  #2
Senior Member
 
Joe
Join Date: Feb 2012
Location: Canada
Posts: 112
Rep Power: 14
enayath is on a distinguished road
Hello Beauty!

Did you find the answer of your question?

I have the same question and wondering if can provide me the answer.

Thank you,
H
enayath is offline   Reply With Quote

Old   November 5, 2014, 23:07
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
There is no sampling frequency option. There is only a sampling interval.

Sampling Interval = 1 means sample every time-step
Sampling Interval = 2 means sample every other time-step

To achieve a certain sampling frequency (with units 1/s), you must choose the sampling interval and time-step size accordingly.

The relation between frequency, sampling interval, and time-step size given was correct.
frequency = 1/(step-size x sampling interval)
dean993 likes this.
LuckyTran is offline   Reply With Quote

Old   November 6, 2014, 11:09
Default
  #4
Senior Member
 
Joe
Join Date: Feb 2012
Location: Canada
Posts: 112
Rep Power: 14
enayath is on a distinguished road
Thank you LuckyTran!
enayath is offline   Reply With Quote

Old   October 20, 2016, 03:11
Default
  #5
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 10
srv537 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
There is no sampling frequency option. There is only a sampling interval.

Sampling Interval = 1 means sample every time-step
Sampling Interval = 2 means sample every other time-step

To achieve a certain sampling frequency (with units 1/s), you must choose the sampling interval and time-step size accordingly.

The relation between frequency, sampling interval, and time-step size given was correct.
frequency = 1/(step-size x sampling interval)


sample interval = 200 means it will calculate average value of all 200 time steps.
is it right?
i am using delta_t = 10^-6, could you please suggest me what sampling interval should i use?
thank you
srv537 is offline   Reply With Quote

Old   October 20, 2016, 05:19
Default
  #6
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,192
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
It means it will collect data each 200 time steps. Hence, after the first 200 time steps, your statistics will coincide with the instantaneous field saved at the 200th time steps.

To do what you wrote you need sample interval = 1. This, btw, is always your best choice if you don't know what you're doing.
sbaffini is offline   Reply With Quote

Old   October 21, 2016, 03:58
Default
  #7
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 10
srv537 is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
It means it will collect data each 200 time steps. Hence, after the first 200 time steps, your statistics will coincide with the instantaneous field saved at the 200th time steps.

To do what you wrote you need sample interval = 1. This, btw, is always your best choice if you don't know what you're doing.


if i select select sample interval =1 or 10 then i should save Data and case file for every 1 or 10 time step respectively.
if sample interval is 3 and autosave of data and case file is 100 then i wont get u', v' and w' at any time step.
am i right? if not then please explain.

thank you
srv537 is offline   Reply With Quote

Old   October 22, 2016, 07:01
Default
  #8
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,192
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
I never tried but i suspect that it simply works such that when you save you just get the last set of collected samples. For example:

Autosave each 100 time steps
Sample interval 30 time steps

Then, i guess, at the first autosave after 100 dt the statistics saved in your file are relative to:

Time 0 (not sure here)
Time 0 + 30 dt
Time 0 + 60 dt
Time 0 + 90 dt

Still, obviously, i can't see any reason to do something like this.

In theory, the sample interval should be the minimum to achieve sufficient statistical independence between the samples. In practice, 1 works just great if you collect enough samples.
sbaffini is offline   Reply With Quote

Old   October 25, 2021, 02:42
Default
  #9
Member
 
Join Date: Feb 2020
Posts: 31
Rep Power: 6
The_seeker is on a distinguished road
Hi,
I am running a transient simulation with time step size of 0.0002 sec. The total simulation time is 30 sec. The data needs to be collected from 10-30 seconds. So, what I do is.... I calulate the flow till 10 seconds and then I turn on the data sampling with sampling interval of 1 from 10 to 30 sec. Is it the correct way of getting time averaged solution from 10 to 30 sec.
The_seeker is offline   Reply With Quote

Old   October 25, 2021, 03:09
Default
  #10
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Yes, that is how to do it.
LuckyTran is offline   Reply With Quote

Old   November 9, 2022, 04:43
Thumbs up
  #11
New Member
 
Yi Zhao
Join Date: Nov 2022
Posts: 2
Rep Power: 0
Yi Zhao is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Yes, that is how to do it.
Hi
I am running a large eddy simulation with time step size of 0.002 sec. The total simulation time is 4 sec. The number of iterations is 2000. I turn on the Data Sampling with Sampling Interval of 10.
I would like to know if the time-averaged velocity data saved in the last iteration step is representative of the time-averaged velocity of the entire flow process? If not, how do I get the time-averaged velocity that characterizes the entire flow process for comparison with the RANS results?
Thank you!
Yi Zhao is offline   Reply With Quote

Old   November 9, 2022, 06:22
Default
  #12
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
The average that you get at the very last time step is the running average starting with the time-step that you enabled data sampling (i.e. average of 200 samples) and this could be the time-average that you get in RANS....


However, you set a sampling interval of 10 and not 1 and your time-step size is rather large and your number of time-steps is rather low. Sampling theory applies and small samples may not represent the population.
LuckyTran is offline   Reply With Quote

Old   November 9, 2022, 07:20
Thumbs up
  #13
New Member
 
Yi Zhao
Join Date: Nov 2022
Posts: 2
Rep Power: 0
Yi Zhao is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
The average that you get at the very last time step is the running average starting with the time-step that you enabled data sampling (i.e. average of 200 samples) and this could be the time-average that you get in RANS....


However, you set a sampling interval of 10 and not 1 and your time-step size is rather large and your number of time-steps is rather low. Sampling theory applies and small samples may not represent the population.
Thank you LuckyTran!
The time step size is obtained by making the Courant number less than 1, of order 10e-3. It takes 3.1 sec for the airflows to flow over the entire computational domain in the model, so I set the number of iteration steps to 2000 (i.e. 2000*0.002=4 sec), is it right?
If I set Sampling Interval to 1 and enable Data Sampling, will the average of the last time step (2000th sample) obtained be representative of the total and compare with the results of RANS? If I set iteration 50 time steps in Autosave to save a .dat file, is the average value obtained from the last (40th) .dat file the same as the average value obtained from the 2000th sample of Sampling Interval?
Also, I would like to ask if the square of Mean RMSE Velocity X can be considered as the time average of u'u'?
Thank you again.
Yi Zhao is offline   Reply With Quote

Old   November 9, 2022, 09:23
Default
  #14
New Member
 
maria
Join Date: Nov 2019
Posts: 5
Rep Power: 7
maria94 is on a distinguished road
for your last question, this could help: https://www.afs.enea.it/project/nept...ug/node462.htm
maria94 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
Field averaging in a certain time interval misakagan OpenFOAM Running, Solving & CFD 1 December 11, 2009 06:39
help reqd. :DATA SAMPLING FOR TIME STATISTIC haris FLUENT 0 April 16, 2008 08:57


All times are GMT -4. The time now is 16:43.