CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to perform surface averaging in one direction

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

Like Tree3Likes
  • 1 Post By Ardali
  • 1 Post By fumiya
  • 1 Post By fumiya

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 22, 2020, 10:47
Default How to perform surface averaging in one direction
  #1
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17
chandra shekhar pant is on a distinguished road
Hello Foamers,
I am trying to simulate LES of aerofoil which is having 0.1 m chord length (x-axis) and 0.01 in span direction (z direction). Now I need the velocity profiles in chord-wise direction suppose at 4 locations 0.01, 0.04, 0.07 and 0.1. So I need to average in (span wise) z direction and plot the velocity profiles at these 4 locations. I am trying with line sample utility but this won't average in the z direction I guess, is there any easy way to fix this ? Any suggestion will be a great help.
chandra shekhar pant is offline   Reply With Quote

Old   July 22, 2020, 19:45
Default
  #2
Member
 
Ardalan
Join Date: Jul 2012
Location: Atlanta, USA
Posts: 79
Rep Power: 14
Ardali is on a distinguished road
hi,

have you tried 'postChannel' for your purpose. I guess it should work by the its original form otherwise you can modify the code for your sake!
Ardali is offline   Reply With Quote

Old   July 23, 2020, 01:39
Default
  #3
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17
chandra shekhar pant is on a distinguished road
Hello Ardalan,

Thanks a lot for your help, could you please elaborate something how to use it?
chandra shekhar pant is offline   Reply With Quote

Old   July 23, 2020, 17:57
Default
  #4
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
Hi,

If your mesh is a structured one, you can use columnAverage function object to calculate spanwise average:
https://www.openfoam.com/documentati...mnAverage.html

Hope this helps,
Fumiya
__________________
[Personal]
fumiya is offline   Reply With Quote

Old   July 24, 2020, 09:48
Default
  #5
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17
chandra shekhar pant is on a distinguished road
Hello Fumiya,

Thanks for your help and reply but unfortunately this case don't have structured mesh. Was wondering if some kind of sampling utility is there in openFOAM which first averaged the data in z direction and then using the "linesample--type sets" can give the final data in the required line (which could be added in controlDic). Thanks again for your time and help.
chandra shekhar pant is offline   Reply With Quote

Old   July 24, 2020, 22:20
Default
  #6
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
Hi Chandra,

I think there is not straightforward way in the case of unstructured meshes.

As you know, line samplings are possible using sample function in OpenFOAM.
So, the following procedure will give you approximate values:
  1. line sampling in span-wise direction
  2. calculate arithmetic mean value of sampled values

Hope this helps,
Fumiya
__________________
[Personal]
fumiya is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Averaging in theta direction in an annular geometry shivamswarnakar72 OpenFOAM Post-Processing 2 July 1, 2020 02:55
[snappyHexMesh] snappyHexMesh generates not planar surface krzychu111 OpenFOAM Meshing & Mesh Conversion 2 April 23, 2020 16:38
[OpenFOAM] Averaging over spatial direction in paraView Crazyman2008 ParaView 1 May 5, 2014 05:34
[CFD POST ] Averaging Values for one direction max3.2 CFX 6 May 4, 2011 14:15
Normal - Helical Surface m. malik Main CFD Forum 3 February 3, 2006 12:56


All times are GMT -4. The time now is 09:40.