CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

weightedAreaAverage for sampledSurface

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

LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2017, 04:42
Default weightedAreaAverage for sampledSurface
New Member
Join Date: Jul 2017
Posts: 1
Rep Power: 0
Flou is on a distinguished road
Hi !

I'm modelling a two-phase flow and I want to compute the velocity field x component average over a specified surface (sampledSurface) but keeping only the liquid part for the calculation (alpha.water = 1)

My problem is when I try to run the operation weightedAreaAverage on a sampledSurface region type I get the error :
Cannot use weightField for sampledSurface

My code is working well when the operation is areaAverage (so when the weightedfield is not taken into account).

Here is my function

Thanks by advance
Attached Files
File Type: txt cfd_post.txt (836 Bytes, 41 views)
Flou is offline   Reply With Quote

Old   August 27, 2018, 12:26
Default Solution???
New Member
Athanasios Niotis
Join Date: Aug 2018
Posts: 10
Rep Power: 4
thanosniotis is on a distinguished road
Hello! Did you find solution for this??
thanosniotis is offline   Reply With Quote


cutting plane, sampledsurface, surfacefieldvalue, weighted average

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

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