|
[Sponsors] |
Average weighted value calc at specific plane |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 7, 2017, 02:47 |
Average weighted value calc at specific plane
|
#1 |
Member
JIN WEIGUO
Join Date: Sep 2016
Posts: 35
Rep Power: 10 |
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 |
|
February 7, 2017, 14:56 |
|
#2 |
Senior Member
|
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. |
|
February 7, 2017, 21:56 |
|
#3 | |
Member
JIN WEIGUO
Join Date: Sep 2016
Posts: 35
Rep Power: 10 |
Quote:
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 |
||
February 10, 2017, 14:36 |
|
#4 |
Senior Member
|
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 |
|
February 12, 2017, 22:15 |
|
#5 | |
Member
JIN WEIGUO
Join Date: Sep 2016
Posts: 35
Rep Power: 10 |
Quote:
Dear Alexey, Thanks for your links, seems relevant. Best regards, Mark |
||
July 12, 2018, 12:18 |
|
#6 |
New Member
heru
Join Date: Jan 2016
Posts: 12
Rep Power: 10 |
finally,
how did you selected an area an then did the average of a field u? |
|
July 13, 2018, 16:16 |
|
#7 | |
New Member
bangun
Join Date: Feb 2015
Posts: 16
Rep Power: 11 |
Quote:
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 |
||
|
|
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 |