|
[Sponsors] |
November 13, 2009, 09:21 |
Using subset of data on sampledPlane
|
#1 |
Member
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 17 |
Dear All,
I would like to perform an area-weighted average on a subset of samples on a sampledPlane. For all samples I am averaging as follows, e.g for pressure, plane xPl(xP[cellI], n[cellI]); sampledPlane smpPl("smpPl", mesh, xPl,word::null,false); const scalarField pPl(smpPl.sample(p)); pArea = smpPl.average(pPl); Is there a way to only use a subset of samples on the plane to average on? Thanks! /NW |
|
November 14, 2009, 12:36 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
AKAIK sampledPlane respects cellZones, perhaps that is a good way to get your subset.
|
|
November 17, 2009, 07:32 |
|
#3 |
Member
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 17 |
Thank you Olesen,
Unfortunately I haven't yet tried the cellZones approach. Instead I've solved my problem via making a subsetMesh on which I've been able to create a sampledPlane on. Regards /NW |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
【Help】"Error: Update_Time_Level: invalid data" | Chen | FLUENT | 2 | August 24, 2014 08:51 |
export data at nodes | Meenu | FLUENT | 1 | December 30, 2011 02:24 |
Saving particle (DPM) data to file? | Philip | FLUENT | 2 | June 12, 2006 02:41 |
How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 18:27 |
Simulated data vs. experimental data | moiami | FLUENT | 0 | December 19, 2002 02:03 |