|
[Sponsors] |
How to obtain the index of all the points that belong to a particular patch |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 14, 2008, 21:30 |
Hi to everybody !
It is po
|
#1 |
Member
Mathieu Olivier
Join Date: Mar 2009
Location: Quebec City, Canada
Posts: 77
Rep Power: 17 |
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 |
|
October 15, 2008, 07:02 |
const labelList& patchPoints =
|
#2 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
const labelList& patchPoints = mesh.boundaryMesh()[patchIndex].meshPoints();
|
|
October 15, 2008, 10:16 |
Thanks !
|
#3 |
Member
Mathieu Olivier
Join Date: Mar 2009
Location: Quebec City, Canada
Posts: 77
Rep Power: 17 |
Thanks !
|
|
|
|
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 12:20 |
How to get the UDS-index number in a UDF? | George | FLUENT | 0 | July 20, 2006 04:43 |
The index of UDS | chris | FLUENT | 1 | July 11, 2006 07:36 |
low-re-ke-index WHO KNOWS? | michael_nurzynski | FLUENT | 2 | July 19, 2004 06:11 |
What does the model belong to? | WJQ | FLUENT | 2 | December 20, 2002 20:57 |