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

How to obtain the index of all the points that belong to a particular patch

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 14, 2008, 20:30
Default Hi to everybody ! It is po
  #1
Member
 
Mathieu Olivier
Join Date: Mar 2009
Location: Quebec City, Canada
Posts: 76
Rep Power: 8
mathieu is on a distinguished road
Hi to everybody !

It is possible to create a field that contains all the point coordinates of the mesh :

vectorField meshPoints = mesh.points();

It is then possible to call a single point from that field if we know the index of that particular point :

vector point = meshPoints[index];

Now, I would like to know if there is a way to obtain the index of all the points that belong to a specified patch. Many thanks,

Mathieu
mathieu is offline   Reply With Quote

Old   October 15, 2008, 06:02
Default const labelList& patchPoints =
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 19
niklas will become famous soon enough
const labelList& patchPoints = mesh.boundaryMesh()[patchIndex].meshPoints();
niklas is offline   Reply With Quote

Old   October 15, 2008, 09:16
Default Thanks !
  #3
Member
 
Mathieu Olivier
Join Date: Mar 2009
Location: Quebec City, Canada
Posts: 76
Rep Power: 8
mathieu is on a distinguished road
Thanks !
mathieu 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
Patch end points mesh motion and movingWallVelocity pbo OpenFOAM Running, Solving & CFD 13 March 6, 2013 17:59
How to get the UDS-index number in a UDF? George FLUENT 0 July 20, 2006 03:43
The index of UDS chris FLUENT 1 July 11, 2006 06:36
low-re-ke-index WHO KNOWS? michael_nurzynski FLUENT 2 July 19, 2004 05:11
What does the model belong to? WJQ FLUENT 2 December 20, 2002 20:57


All times are GMT -4. The time now is 10:27.