CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Time Averaging in OpenFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Tarak

Reply
 
LinkBack Thread Tools Display Modes
Old   November 1, 2010, 15:14
Default Time Averaging in OpenFoam
  #1
Senior Member
 
Tarak
Join Date: Aug 2010
Location: State College, PA
Posts: 105
Rep Power: 6
Tarak is on a distinguished road
Hii,,

Can someone please tell how to get time averaged velocity, pressure field in LES in OpenFoam.

Thaning You,
Tarak
Tarak is offline   Reply With Quote

Old   November 2, 2010, 03:17
Default
  #2
Senior Member
 
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 252
Rep Power: 12
kalle is on a distinguished road
Hi!

Have a look at the pitzDaily tutorial (OF 1.6):

tutorials/combustion/XiFoam/les/pitzDaily

and check how the system/controlDict is written...

Good luck!
kalle is offline   Reply With Quote

Old   November 2, 2010, 16:39
Default
  #3
Senior Member
 
Tarak
Join Date: Aug 2010
Location: State College, PA
Posts: 105
Rep Power: 6
Tarak is on a distinguished road
Hii,

Thanks for the reply. I went through the code and in fieldAverage.H i'm pasting some lines from it:

00039 // Whether to perform a clean restart, or start from previous
00040 // averaging info if available
00041 cleanRestart true;
00042
00043 // Whether to reset the averaged fields after they have been written.
00044 // Used to average over only the preceding write interval for transient
00045 // cases.
00046 resetOnOutput true;

And these lines are not present in controlDict of my case directory. So can I be sure
that even if I get the solution after multiple runs (i.e restarting in between),
I would be getting the correct time averaged fields?

Thanks,
Tarak


Tarak is offline   Reply With Quote

Old   November 2, 2010, 17:11
Default
  #4
Senior Member
 
Tarak
Join Date: Aug 2010
Location: State College, PA
Posts: 105
Rep Power: 6
Tarak is on a distinguished road
Hii,

I have one more doubt. The problem is that I want to do the time averaging for the fields only for the solutions after it has reached a kind of statistically stationary state. So, I need to ignore the field values of the intial times while calculating the the average.
Can you please offer me a solution for this?

Thanks,
Tarak
Tarak is offline   Reply With Quote

Old   November 2, 2010, 17:28
Default
  #5
Senior Member
 
Tarak
Join Date: Aug 2010
Location: State College, PA
Posts: 105
Rep Power: 6
Tarak is on a distinguished road
Hii,

I think I have a solution to my last post. I need to turn off the option of fieldaveraging in controlDict for the initial time steps, and turn it on (by editing controlDict and restarting) from the moment I want the fields to be averaged. Please comment on this as well as my 2nd post.

Thanks,
Tarak
Alhasan likes this.
Tarak is offline   Reply With Quote

Old   November 3, 2010, 03:15
Default
  #6
Senior Member
 
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 252
Rep Power: 12
kalle is on a distinguished road
Correct. Don't use the lines in your controlDict until you are ready to start sampling.


2nd post: If you leave your controlDict as it is and leave the UMean, pMean, etc. files in the time directory, they will be read in when you restart.... You can track the number of samples collected in a file found in the /uniform directory located in each time directory.

Good luck!
kalle is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 28 May 28, 2015 13:37
If OpenFOAM can run different solver in different domain in the same time ? panda60 OpenFOAM Running, Solving & CFD 4 May 15, 2014 10:07
Time averaging results from a transient run Flow Squad CFX 4 October 24, 2011 09:11
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
export time steps for ensemble averaging Thomas Baumann CD-adapco 0 March 2, 2010 04:19


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