|
[Sponsors] |
June 19, 2007, 12:27 |
Hello out there,
I need two
|
#1 |
Member
Björn Fabritius
Join Date: Mar 2009
Location: Freiberg, Germany
Posts: 31
Rep Power: 17 |
Hello out there,
I need two things to be done, and somehow don't manage to do it: 1) How can I get the ID of a patch by name (I tried findPatchID, but it doesn't work on a fvMesh)? 2) How can I get the labels of the points belonging to this patch? by the way: the search function in my doxygen representation is broken and it's quite hard to guess the right class if i want to find a specific function. Is that a known issue or am I alone with this problem? thanks for your guidance Bjoern |
|
June 19, 2007, 12:50 |
Hi Björn!
The answer to the f
|
#2 |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
Hi Björn!
The answer to the first question should be: label patchI = mesh.boundaryMesh().findPatchID("patchname"); Regarding the second question, I don't know exactly how to access the point, but with this line you can access the faces centers: const fvPatchVectorField& faceCentres = mesh.Cf().boundaryField()[patchID]; For the point, perhaps something like: const fvPatchVectorField& faceCentres = mesh.points().boundaryField()[patchID]; But I've never tried it... |
|
June 19, 2007, 13:09 |
You can get all the point labe
|
#3 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
You can get all the point labels on a patch via:
const labelList listOfPatchPointLabels mesh.boundaryMesh()[patchID].meshPoints(); Check: src/OpenFOAM/lnInclude/PrimitivePatch.H and polyPatch.H for the members of polyPatch (i.e. mesh.boundaryMesh()[patchID]). |
|
June 19, 2007, 14:08 |
thanks a lot to both of you!
|
#4 |
Member
Björn Fabritius
Join Date: Mar 2009
Location: Freiberg, Germany
Posts: 31
Rep Power: 17 |
thanks a lot to both of you!
it worked just fine |
|
June 19, 2007, 15:25 |
The search function in the dox
|
#5 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
The search function in the doxygen documentation requires you install the documentation on a web server with php enabled.
Regards, Alberto
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF: how to obtain the neighbor face? | Benlong | FLUENT | 0 | May 25, 2007 09:36 |
how to obtain streamline profile for 3d | Frank | FLUENT | 1 | February 2, 2006 04:01 |
How to obtain forces | Karimu | FLUENT | 2 | August 22, 2005 18:26 |
How to obtain.... | Sharad Dugad | FLUENT | 6 | February 13, 2002 13:14 |
how to obtain a profile ... | olivier | FLUENT | 2 | December 13, 2001 07:21 |