CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > 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 Search this Thread Display Modes
Old   April 25, 2009, 08:25
Default How to identify different zones using UDF?
  #1
New Member
 
Yang Xiaoguang
Join Date: Apr 2009
Posts: 24
Rep Power: 16
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, 06:05
Default
  #2
Member
 
Join Date: Mar 2009
Location: Istanbul, Turkiye
Posts: 47
Rep Power: 17
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
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 26 August 15, 2022 06:54
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 22:38
How to set multiple zones profile in UDF? jis3 FLUENT 2 April 25, 2004 16: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 04:38.