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

Using subset of data on sampledPlane

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2009, 08:21
Default Using subset of data on sampledPlane
  #1
Member
 
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 17
nikwin is on a distinguished road
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
nikwin is offline   Reply With Quote

Old   November 14, 2009, 11:36
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
AKAIK sampledPlane respects cellZones, perhaps that is a good way to get your subset.
olesen is offline   Reply With Quote

Old   November 17, 2009, 06:32
Default
  #3
Member
 
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 17
nikwin is on a distinguished road
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
nikwin 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
【Help】"Error: Update_Time_Level: invalid data" Chen FLUENT 2 August 24, 2014 07:51
export data at nodes Meenu FLUENT 1 December 30, 2011 01:24
Saving particle (DPM) data to file? Philip FLUENT 2 June 12, 2006 01:41
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27
Simulated data vs. experimental data moiami FLUENT 0 December 19, 2002 01:03


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