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

How to identify different zones using UDF?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 25, 2009, 07:25
Default How to identify different zones using UDF?
  #1
New Member
 
Yang Xiaoguang
Join Date: Apr 2009
Posts: 24
Rep Power: 8
legendyxg is on a distinguished road
My model has two porous zones with diffenent porosity, so the mass diffusivity coefficients differ and I want to define the diffusivity coefficient seperately in each zone. How can I identify this two different zones? I hope someone can help me, thank you!
legendyxg is offline   Reply With Quote

Old   May 4, 2009, 05:05
Default
  #2
Member
 
Join Date: Mar 2009
Location: Istanbul, Turkiye
Posts: 45
Rep Power: 8
gemini is on a distinguished road
You should check the cell thread id number of the domain.

Example:

real id_of_zone_a = 2;
real id_of_zone_b = 4;
real id_of_zone_c = 7;
if(THREAD_ID(c,t) == id_of_zonea)
{
porosity = sometihng
more calculations..
}
else if(THREAD_ID(c,t) == id_of_zonec)
{
porosity = sometihng
more calculations..
}
else if(THREAD_ID(c,t) == id_of_zonec)
{
porosity = sometihng
more calculations..
}

else
{

}


gemini is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF: Given coordinates, How to identify the cell? Zhang Fluent UDF and Scheme Programming 23 June 24, 2014 13:21
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
How to set multiple zones profile in UDF? jis3 FLUENT 2 April 25, 2004 15:03
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 23:34.