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

Macro to get Thread/Zone Name

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2006, 20:13
Default Macro to get Thread/Zone Name
  #1
Abhijeet
Guest
 
Posts: n/a
I'm trying to get the face name using the Macro THREAD_NAME(t). The UDF compiles but when I execute it, the Macro does not return me the face name. THREAD_ID(t) and THREAD_TYPE(t) work as they should.

part of code with the above macro usage

char *name; thread_loop_f(t,d) { name = THREAD_NAME(t);}

Suggestions please. Thank you Abhijeet
  Reply With Quote

Old   March 30, 2006, 04:11
Default Re: Macro to get Thread/Zone Name
  #2
Luca
Guest
 
Posts: n/a
It doesn't work...I get a serie of numbers instead of the name...Luca
  Reply With Quote

Old   March 30, 2006, 12:59
Default Re: Macro to get Thread/Zone Name
  #3
Abhijeet
Guest
 
Posts: n/a
ok, any workaround that your can suggest ....Abhijeet
  Reply With Quote

Old   March 30, 2006, 14:30
Default Re: Macro to get Thread/Zone Name
  #4
Allan Walsh
Guest
 
Posts: n/a
Set up your case. Look at the integer corresponding to a certain thread. Go back to your UDF and type in the integer.

Yes, it is crude, but without any help from FLUENT programmers, it seemed a reasonable compromise.
  Reply With Quote

Old   March 31, 2006, 12:15
Default Re: Macro to get Thread/Zone Name
  #5
Abhijeet
Guest
 
Posts: n/a
Thanks Allan, cant really do that have about 1500 FACES !!! The whole purpose of the UDF is to automate the calculations at the end of a simulation, apply the changes and then reiterate.
  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
Macro Problem!!! eRzBeNgEl STAR-CCM+ 3 August 9, 2011 03:04
Macro Trouble -Winows Explorer Crashes with Macro Martin Castillo FLUENT 1 July 25, 2007 05:18
Macro problem cfddummy Siemens 1 April 9, 2007 13:37
macro not function! guang ai Siemens 0 July 25, 2004 19:53
Call a macro from a macro Flav Siemens 2 July 1, 2004 06:42


All times are GMT -4. The time now is 01:21.