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

Spatial averaging

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By deji

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2010, 17:10
Default Spatial averaging
  #1
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
Good afternoon everyone. I am hoping to do a turbulence simulation over the weekend and would like to spatially average the flow field in the homogeneous flow direction. This will done after I have time-averaged the solution. So does anyone know if I can use a tool in OpenFOAM to do spatial averaging? Thanks.

Deji
deji is offline   Reply With Quote

Old   October 12, 2012, 17:43
Default
  #2
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Hallo Deji,
Did you find the answer to you question?
regards,
Awais
owayz is offline   Reply With Quote

Old   October 13, 2012, 01:22
Default
  #3
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
I do have a code that helps me average in a given direction. Why do you ask?
deji is offline   Reply With Quote

Old   October 13, 2012, 11:12
Default
  #4
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Do you right the average as a field?
I am doing an LES of flow over a circular cylinder and I need to average UMean and pMean over span-wise direction. That's is why I am asking this question.
Regards,
Awais
owayz is offline   Reply With Quote

Old   October 13, 2012, 23:34
Default
  #5
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
I am not sure if I comprehend your question, but the spatial averaging is performed by prescribing which field will be averaged. The code basically takes the field and the direction to average in and collapses the domain into one plane. I am not certain if it will work for a circular cylinder; my geometry is a flat plate. What kind of mesh are you utilizing for your simulation?

Cheers,
Deji
deji is offline   Reply With Quote

Old   October 13, 2012, 23:54
Default
  #6
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Well you perfectly understood what I want to do.
My simulation is of flow over a circular cylinder. I want to average in spanwise direction of time averaged quantities.
If you have the code and you can share, that would be of great help.
Regards,
Awais
owayz is offline   Reply With Quote

Old   October 13, 2012, 23:56
Default
  #7
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
Okay. I can post the code and some notes to help as well.
deji is offline   Reply With Quote

Old   October 16, 2012, 22:10
Default
  #8
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
My apologies for not posting the code in a timely manner, it has been a rough week. I hope to post the code tomorrow.
owayz and gregjunqua like this.
deji is offline   Reply With Quote

Old   October 19, 2012, 21:40
Default
  #9
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Thanks in Advance Deji.
I will wait for your code. As I need it.
Regards,
Awais
owayz is offline   Reply With Quote

Old   October 24, 2012, 21:58
Default
  #10
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
The code is attached. My apologies for just getting the code to you; I have being fairly busy.
Attached Files
File Type: zip spatial.zip (9.9 KB, 385 views)
deji is offline   Reply With Quote

Old   October 24, 2012, 22:22
Default
  #11
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Late is not a problem.
Thanks for sharing the code.
Regards,
Awais
owayz is offline   Reply With Quote

Old   January 29, 2013, 09:18
Default Which version
  #12
New Member
 
Martin Söder
Join Date: Jun 2011
Posts: 8
Rep Power: 15
Soder is on a distinguished road
Hi,
Which version of openFoam does it work for?
I tried installing it with 2.0

And got following error:

lnInclude/cuttingPlane.H:122:14: note: candidate is: void Foam::cuttingPlane::reCut(const Foam:rimitiveMesh&, bool, const Foam::labelUList&)
sampledSurface/sampledAveragePlane/sampledAveragePlane.C:212:49: error: no matching function for call to 'Foam::sampledAveragePlane::reCut(const Foam:olyMesh&, const Foam::cellZone&)'
lnInclude/cuttingPlane.H:122:14: note: candidate is: void Foam::cuttingPlane::reCut(const Foam:rimitiveMesh&, bool, const Foam::labelUList&)
make: *** [Make/linux64Gcc45DPOpt/sampledAveragePlane.o] Error 1

Best regards
Martin
Soder is offline   Reply With Quote

Old   May 7, 2014, 22:15
Default
  #13
Member
 
Manjura Maula Md. Nayamatullah
Join Date: May 2013
Location: San Antonio, Texas, USA
Posts: 42
Rep Power: 13
mmmn036 is on a distinguished road
I could not unzip the file. It gives me some error, says file is empty. Any one can help
mmmn036 is offline   Reply With Quote

Old   January 25, 2016, 01:23
Default Download, direct unzip and open with notepad+++++++++bbye
  #14
Member
 
Rupesh Verma
Join Date: Jun 2013
Posts: 64
Rep Power: 13
roopesh99 is on a distinguished road
Quote:
Originally Posted by mmmn036 View Post
I could not unzip the file. It gives me some error, says file is empty. Any one can help
Download, direct unzip by winrar and open with notepad+++++++++bbye
roopesh99 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
different between the various averaging huwei CFX 3 February 22, 2015 14:09
When to use mass flow averaging cspectre CFX 2 December 6, 2009 06:30
Averaging field over a spatial direction fs82 OpenFOAM 10 August 12, 2009 11:44
Averaging LES iko FLUENT 3 July 3, 2008 06:55
Laplacian-weighted averaging Ruben Main CFD Forum 0 August 21, 2005 21:46


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