CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   domain and superdomain ??? (http://www.cfd-online.com/Forums/fluent/32861-domain-superdomain.html)

thomas January 16, 2004 05:11

domain and superdomain ???
 
Hi everyone, I am trying to implement a source term only in the first range of cells after a wall. The source term is hooked via energy equtaion for water (Euler-euler solver). What i need is to access the thread of teh wall (called tf_wall). The ID of teh wall is ID =2. Here is the part of the UDF i wrote:

DEFINE_SOURCE(heat_flux,cell,thread_water,dS,eqn)

{ Domain *domain;

Thread *tf_wall,

int ID =2;

Thread *tf_wall = Lookup_Thread(domain, ID);

...... }

Doing that i got an error message when i want to use the Thread tf_wall. As my define source is hooked up in the energy equation for water i wonder if the '*domain' pointer is the right one to put in the Lookup_Thread(domain, ID) macro. As far I understand my *domain is the sub_domain referring to water. Which domain should I use to get my wall thread using Thread *tf_wall = Lookup_Thread(domain, ID) ? Do i need the mixture_domain pointer to make it work?

Thanks


thomas January 16, 2004 14:39

Re: domain and superdomain ???
 
I have Found my mistake thanks


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