CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

THREAD_NAME() -> the mistery function

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 2, 2017, 09:42
Question THREAD_NAME() -> the mistery function
  #1
Member
 
Howard
Join Date: Jun 2012
Posts: 43
Rep Power: 13
twcp0104 is on a distinguished road
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
twcp0104 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 16:23.