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

domain and superdomain ???

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2004, 05:11
Default domain and superdomain ???
  #1
thomas
Guest
 
Posts: n/a
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

  Reply With Quote

Old   January 16, 2004, 14:39
Default Re: domain and superdomain ???
  #2
thomas
Guest
 
Posts: n/a
I have Found my mistake thanks
  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



All times are GMT -4. The time now is 22:32.