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

Average weighted value calc at specific plane

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

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2017, 02:47
Default Average weighted value calc at specific plane
  #1
Member
 
JIN WEIGUO
Join Date: Sep 2016
Posts: 35
Rep Power: 9
Mark JIN is on a distinguished road
Dear Friends,

I wonder if anyone has ever tried to calculate average weighted value (ie. velocity) at localized plane within your domain? I found there were ways to calculate average weighted value at defined patch, but what if I want to do that anywhere else?

Just as what I showed in the attached pics. If I want to calculate average wind velocity at the highlighted plane (in black), how can I achieve that? Should I define coordinates of the plane I want to calculate in Controldict?

Pls bear with me if I repeat my questions so many times.
Appreciate in advance for any help.

Regards,
MarkJIN
Attached Images
File Type: png Capture.PNG (64.2 KB, 49 views)
File Type: png 1.png (58.0 KB, 50 views)
Mark JIN is offline   Reply With Quote

Old   February 7, 2017, 14:56
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Let's assume, you are using OpenFOAM 4.x. Did you try surfaceRegion function object? (See http://cpp.openfoam.org/v4/a02578.html#details).

There is an option to take field values from sampledSurface, you can average values.
alexeym is offline   Reply With Quote

Old   February 7, 2017, 21:56
Default
  #3
Member
 
JIN WEIGUO
Join Date: Sep 2016
Posts: 35
Rep Power: 9
Mark JIN is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

Let's assume, you are using OpenFOAM 4.x. Did you try surfaceRegion function object? (See http://cpp.openfoam.org/v4/a02578.html#details).

There is an option to take field values from sampledSurface, you can average values.

Dear Alexey,

Thanks for your guide. I'm using openfoam 4.1. I havent try surfaceRegion before. Is this function working when running xxFoam or working during postprocessing? Btw, where can I define the coordinates of my user defined face to be averaged? I'm quite new to openfoam and cannot understand the structure of dictionaries sometime.

Regards,
Mark
Mark JIN is offline   Reply With Quote

Old   February 10, 2017, 14:36
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

If is still relevant,
- it can be run both ways, since it is function object.
- definition of sampledSurface can be learned from:
1. https://github.com/OpenFOAM/OpenFOAM...es/controlDict
2. If you need plane, then maybe cuttingPlane instead of sampledTriSurfaceMesh if better choice, definition can be found, for example, here: https://github.com/OpenFOAM/OpenFOAM...m/cuttingPlane
student666 likes this.
alexeym is offline   Reply With Quote

Old   February 12, 2017, 22:15
Default
  #5
Member
 
JIN WEIGUO
Join Date: Sep 2016
Posts: 35
Rep Power: 9
Mark JIN is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

If is still relevant,
- it can be run both ways, since it is function object.
- definition of sampledSurface can be learned from:
1. https://github.com/OpenFOAM/OpenFOAM...es/controlDict
2. If you need plane, then maybe cuttingPlane instead of sampledTriSurfaceMesh if better choice, definition can be found, for example, here: https://github.com/OpenFOAM/OpenFOAM...m/cuttingPlane

Dear Alexey,

Thanks for your links, seems relevant.

Best regards,
Mark
Mark JIN is offline   Reply With Quote

Old   July 12, 2018, 12:18
Default
  #6
New Member
 
heru
Join Date: Jan 2016
Posts: 12
Rep Power: 10
heru is on a distinguished road
finally,



how did you selected an area an then did the average of a field u?
heru is offline   Reply With Quote

Old   July 13, 2018, 16:16
Default
  #7
New Member
 
bangun
Join Date: Feb 2015
Posts: 16
Rep Power: 11
eb19 is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

Let's assume, you are using OpenFOAM 4.x. Did you try surfaceRegion function object? (See http://cpp.openfoam.org/v4/a02578.html#details).

There is an option to take field values from sampledSurface, you can average values.
Hi Alexeym,

How can we average a value using sampledSurface? I need to calculate force on an area inside my domain. The area is not a patch, so I can not use patchIntegrate or force. I also tried surface sampling, but I only got pressures at each point on the area, not with the cell area. Therefore, I can not quantify the force.

I also tried surfaceRegion, but I am not sure which operation should I use?
Do you know or have suggestions? I have been searching and trying for almost three days with this, but not yet seen a light. I would appreciate your suggestion. Thank you.

eb19
eb19 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
Simulation of a single bubble with a VOF-method Suzzn CFX 21 January 29, 2018 01:58
mass weighted average temperature along a curve preetam69 FLUENT 1 July 5, 2013 03:48
Face weighted Velocity average at a boundary patch luhawk OpenFOAM Programming & Development 13 May 22, 2013 11:16
finding average values for a plane in the vertical direction NJG OpenFOAM Post-Processing 13 March 25, 2013 12:22
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 13:02


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