|
[Sponsors] |
March 2, 2017, 09:42 |
THREAD_NAME() -> the mistery function
|
#1 |
Member
Howard
Join Date: Jun 2012
Posts: 43
Rep Power: 14 |
Hello!!
So, there exists this function (or is it called a macro, I'm never sure) called THREAD_NAME(). If you include it in your code, it compiles no problem: char name=THREAD_NAME(t); unfortunately it doesn't give you any result. I've tried a few different ways to make it work, with no luck. It is not in the manual either. But it would be really super useful to me. Has anybody gotten this to work? Can anybody give me ideas of how to make it work? Your help is infinitely appreciated. P.S.: I need to be able to get the zone names, so I can compare them to presets. That way, when I make the mesh, I'll give certain names to certain regions and the code can pick the right ones through that. Otherwise I have to play detective every time, looking at which zone is adjacent to the inlet, outlet and porous jump and so on, and for more complex geometries it might not be possible to distinguish the zones I need |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 12:04 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 07:59 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |