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

Macros for writing UDF for porosity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2003, 01:22
Default Macros for writing UDF for porosity
  #1
umesh
Guest
 
Posts: n/a
hi I want to write a UDF for a packed bed it has three layers of packings,with porosity 0.27, 0.3 and 0.35 respectively

i am working with fluent6.1 I read the manual, but cant find how to define/ write UDF for variable porosity

i only found i had to use DEFINE_PROPERTY macro.

anyone having some idea/ sample UDF, Please reply soon. Its Urgent thanks in advance

  Reply With Quote

Old   June 13, 2003, 04:20
Default Re: possible options
  #2
umesh
Guest
 
Posts: n/a
Hi I received follow information, hopefully it will help others also........

If your porosity is fixed for the simulation, as you seem to indicate, then I suggest that you simply use Gambit to define a mesh with three fluid zones, one for each layer. In each fluid zone you set the boundary conditions and turn on porous zone and set the constant porosity you want.

If you want porosity to have a complex variation or it changes with solution time etc., you can use a PROFILE function. The manual is wrong and it must be a profile udf not a proprty udf!!!! (Just found that the other day!). I've also had some problems with loading cases with a profile defined, so it may have other bugs since this is new in 6.1.

An example profile is:

DEFINE_PROFILE(PROF_Pm_Zeta,thread,i) { cell_t cell;

begin_c_loop(cell,thread)

{

F_PROFILE(cell,thread,i) = /* put your function here */

} end_c_loop(cell,thread) }

I'd try the first option before using a udf!!

Have fun
  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


Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing solver data with UDF macros Dushan FLUENT 1 April 22, 2017 21:05
Help! where to find full UDF Macros and functions kim FLUENT 6 March 5, 2014 09:01
UDF: Previous time step macros NOT working jpapg FLUENT 0 April 30, 2011 21:35
What are UDF macros C_T_S , C_T_AP,...???? Asghari FLUENT 0 January 28, 2007 10:54
udf error in some macros Asghari FLUENT 0 August 7, 2006 01:10


All times are GMT -4. The time now is 08:03.