CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Macro to get Thread/Zone Name (https://www.cfd-online.com/Forums/fluent/40365-macro-get-thread-zone-name.html)

Abhijeet March 29, 2006 19:13

Macro to get Thread/Zone Name
 
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

Luca March 30, 2006 03:11

Re: Macro to get Thread/Zone Name
 
It doesn't work...I get a serie of numbers instead of the name...Luca

Abhijeet March 30, 2006 11:59

Re: Macro to get Thread/Zone Name
 
ok, any workaround that your can suggest ....Abhijeet

Allan Walsh March 30, 2006 13:30

Re: Macro to get Thread/Zone Name
 
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.

Abhijeet March 31, 2006 11:15

Re: Macro to get Thread/Zone Name
 
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.


All times are GMT -4. The time now is 20:26.