|
[Sponsors] |
April 2, 2010, 17:10 |
Spatial averaging
|
#1 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
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 |
|
October 12, 2012, 17:43 |
|
#2 |
Senior Member
|
Hallo Deji,
Did you find the answer to you question? regards, Awais |
|
October 13, 2012, 01:22 |
|
#3 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
I do have a code that helps me average in a given direction. Why do you ask?
|
|
October 13, 2012, 11:12 |
|
#4 |
Senior Member
|
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 |
|
October 13, 2012, 23:34 |
|
#5 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
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 |
|
October 13, 2012, 23:54 |
|
#6 |
Senior Member
|
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 |
|
October 13, 2012, 23:56 |
|
#7 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
Okay. I can post the code and some notes to help as well.
|
|
October 16, 2012, 22:10 |
|
#8 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
My apologies for not posting the code in a timely manner, it has been a rough week. I hope to post the code tomorrow.
|
|
October 19, 2012, 21:40 |
|
#9 |
Senior Member
|
Thanks in Advance Deji.
I will wait for your code. As I need it. Regards, Awais |
|
October 24, 2012, 21:58 |
|
#10 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
The code is attached. My apologies for just getting the code to you; I have being fairly busy.
|
|
October 24, 2012, 22:22 |
|
#11 |
Senior Member
|
Late is not a problem.
Thanks for sharing the code. Regards, Awais |
|
January 29, 2013, 09:18 |
Which version
|
#12 |
New Member
Martin Söder
Join Date: Jun 2011
Posts: 8
Rep Power: 15 |
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 |
|
May 7, 2014, 22:15 |
|
#13 |
Member
Manjura Maula Md. Nayamatullah
Join Date: May 2013
Location: San Antonio, Texas, USA
Posts: 42
Rep Power: 13 |
I could not unzip the file. It gives me some error, says file is empty. Any one can help
|
|
January 25, 2016, 01:23 |
Download, direct unzip and open with notepad+++++++++bbye
|
#14 |
Member
Rupesh Verma
Join Date: Jun 2013
Posts: 64
Rep Power: 13 |
||
|
|
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 |