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

Using subset of data on sampledPlane

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 13, 2009, 09:21
Default Using subset of data on sampledPlane
  #1
Member
 
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 8
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, 12:36
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
AKAIK sampledPlane respects cellZones, perhaps that is a good way to get your subset.
olesen is offline   Reply With Quote

Old   November 17, 2009, 07:32
Default
  #3
Member
 
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 8
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

Thread Tools
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 On
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 02: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 18:27
Simulated data vs. experimental data moiami FLUENT 0 December 19, 2002 02:03


All times are GMT -4. The time now is 11:18.