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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 77
Rep Power: 17
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: 29
niklas will become famous soon enoughniklas 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: 77
Rep Power: 17
mathieu is on a distinguished road
Thanks !
mathieu 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
Patch end points mesh motion and movingWallVelocity pbo OpenFOAM Running, Solving & CFD 14 October 4, 2023 11:20
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 19:57


All times are GMT -4. The time now is 04:45.