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

Reg. UDF

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2009, 00:28
Default Reg. UDF
  #1
Nabil
Guest
 
Posts: n/a
Hi , I am Nabil pursuing M.Tech chemical Engg. program in Anna University Chennai. I want to write an UDF for my project work on fluidized beds.

How can i get the value of gradient of a scalar variable?? Is there any inbuilt macros to get the gradient value of voidage (i.e., volume fraction of phase-1)??

Gradient in the sense 'del(phi)'
  Reply With Quote

Old   January 30, 2009, 07:30
Default Re: Reg. UDF
  #2
KJ Larsen
Guest
 
Posts: n/a
Hello Nabil

There is a macro which gives you the vector of the gradient for volume fraction of a species in space.

C_YI_G(c,t,i) is the gradient vector of the ith species.

= [d/dx ; d/dy ; d/dz](phi)

The information is available in the UDF Manual (3.2.3)

Hope that helps. Kris
  Reply With Quote

Old   January 31, 2009, 11:12
Default Re: Reg. UDF
  #3
Nabil
Guest
 
Posts: n/a
Hello Kris,

Thank You for your reply..

I have two doubts sir

1. The macro C_YI_G(c,t,i) gives the species mass fraction gradient vector. But i need volume fraction gradient vector.

2. The macro C_VOF(c,t) gives volume fraction for the phase corresponding to phase thread t. Whether this macro is for VOF multiphase model alone or we can use for Eulerian model also???. If so is there anything like C_VOF_G(c,t,i) so that i can apply to get volume fraction gradient vector.

  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



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