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

How can I access THREAD_NAME(t)?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gearboy

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2011, 08:53
Default How can I access THREAD_NAME(t)?
  #1
New Member
 
ahchoo
Join Date: Nov 2010
Posts: 4
Rep Power: 15
ahchoo is on a distinguished road
Hi
In UDF, how can I access THREAD_NAME(t)?

I can access THERAD_ID(t) by using a integer variable.
for example,

int ID = THREAD_ID(t);

But, if i utilize THREAD_NAME(t) like

char *zone_name = THREAD_NAME(t);
printf("%s", zone_name);

I only have a massage "(null)", even though it is compiled.

It will be good for me, if i can get zone name.
please.
ahchoo is offline   Reply With Quote

Old   May 31, 2011, 22:39
Default
  #2
Senior Member
 
Join Date: Feb 2010
Posts: 164
Rep Power: 17
gearboy is on a distinguished road
Quote:
Originally Posted by ahchoo View Post
Hi
In UDF, how can I access THREAD_NAME(t)?

I can access THERAD_ID(t) by using a integer variable.
for example,

int ID = THREAD_ID(t);

But, if i utilize THREAD_NAME(t) like

char *zone_name = THREAD_NAME(t);
printf("%s", zone_name);

I only have a massage "(null)", even though it is compiled.

It will be good for me, if i can get zone name.
please.
You can't access thread name using THREAD_NAME in Fluent6.3. However, the macro is valid in Fluent 12.1. If you use fluent 6.3, you must use scheme technology to access thread name.
Amir likes this.
gearboy 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
Online libraries - with access to Journals momentum_waves Main CFD Forum 2 December 12, 2007 10:08
UDF Data Access Macro Woo Meng Wai FLUENT 0 November 6, 2007 20:23
Error: access: unbound variable,HELP sudhakar FLUENT 0 January 15, 2007 23:21
Access Density Allan Walsh FLUENT 3 October 4, 2005 07:55
access to variables at interface of porous media? Mazyar FLUENT 0 October 10, 2003 14:59


All times are GMT -4. The time now is 07:09.