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

[swak4Foam] weighted average over a subset of a planar slice?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2016, 09:30
Default weighted average over a subset of a planar slice?
  #1
Senior Member
 
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 13
pbachant is on a distinguished road
I have a case setup to use swak4Foam to compute some weighted averages over a slice of my domain, but I would really not like to use the entire cross-section, since my experiments don't reach that far. Right now I'm using something like this with funkyDoCalc:

Code:
planeAverageAdvectionZ
{
    type swakExpression;
    outputControlMode timeStep;
    outputInterval 1;
    valueType surface;
    surfaceName testPlane;
    surface {
        type plane;
        basePoint (1.0 0.0 0.0);
        normalVector (1 0 0);
        interpolate true;
    };
    verbose true;
    expression "-UMean.z/UMean.x*gradUMeanX.z";
    accumulations (weightedAverage);
}
But I would like to change testPlane to only extend, e.g., from (1 -1.5 0) to (1 1.5 0.625) min/max points, with the same normalVector. Is there an appropriate syntax to do this, or do I need to create a cellSet or something and only compute within that?
__________________
Home | Twitter | GitHub
pbachant is offline   Reply With Quote

Old   March 21, 2016, 03:29
Default
  #2
New Member
 
Silvan
Join Date: Jun 2014
Posts: 12
Rep Power: 11
silvan is on a distinguished road
dear pete,

thanks for posting your issue. it is an interesting task, and I tried to achieve something similar in the past with topoSet. my post is here: http://www.cfd-online.com/Forums/ope...tml#post552881
unfortunately, I couldn't motivate any expert on this topic to answer my question...
let us know, in case you found the solution to this task.

regards,
silvan
silvan is offline   Reply With Quote

Reply


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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 05:37
[Other] Wedge patch '*' is not planar LilumDaru OpenFOAM Meshing & Mesh Conversion 6 January 12, 2021 05:55
[General] Average of SLICE in Paraview Maurice Waldner ParaView 6 December 16, 2018 17:41
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 13:48
area weighted average or mass weighted average sa har Main CFD Forum 0 January 5, 2016 13:16


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