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

UDF question

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2005, 08:02
Default UDF question
  #1
Pratap
Guest
 
Posts: n/a
Hi It is possible to access source terms of k and epsilon equation in UDF. Since I would like to make countour plots of them. Pratap
  Reply With Quote

Old   February 10, 2005, 08:12
Default Re: UDF question
  #2
Andrew Garrard
Guest
 
Posts: n/a
C_K(c,t) and C_D(c,t). Although, you can of course make a contour plot from the standard GUI.
  Reply With Quote

Old   February 10, 2005, 08:18
Default Sorry :-(
  #3
Andrew Garrard
Guest
 
Posts: n/a
Sorry, you said source term. I thought you mean't the actual value of k and e. If you make a UDF with a DEFINE_SOURCE term you can save the value you are returning to a C_UDMI and then use that to plot your contour. Make sure you turn UDM on in the fluent GUI.

Next time I should take the time to read the post.
  Reply With Quote

Old   February 10, 2005, 08:35
Default Re: Sorry :-(
  #4
Pratap
Guest
 
Posts: n/a
I do not define any source DEFINE_SOURCE. I would like to access the souce terms of the kepsilon equation which fluent is solving. I have another question where can I have tutorial(pdf file) for PREMIXED Turbulent combustion using zimont model. Pratap
  Reply With Quote

Old   February 10, 2005, 08:41
Default Re: Sorry :-(
  #5
Andrew Garrard
Guest
 
Posts: n/a
If you are specifying a source term of K and epsilon in the Fluent GUI, it has to have a constant value or one from a DEFINE_SOURCE. If it is a constant value then you can simply slip that into your UDF using a #define (although the contours will look very plain) If your source term varies, then you can put it in as a DEFINE_SOURCE and use save the value to a UDMI and use that to plot the contours
  Reply With Quote

Old   February 10, 2005, 08:53
Default Re: Sorry :-(
  #6
Pratap
Guest
 
Posts: n/a
I think you are confuded with what I am asking. Let us say I want to "convective term of k-epsilon equation i.e term B in equation below " and plot its contours.Pratap

A+B=C+D A=unsteady B=convetcive C=Diffusive D=source term
  Reply With Quote

Old   February 10, 2005, 09:45
Default Re: Sorry :-(
  #7
Andrew Garrard
Guest
 
Posts: n/a
I understand now, it was when you said "possible to access source terms of k and epsilon", I thought you meant D as in your previous post. I am afraid that I don't know how to extract the value. I don't believe that you can get it in the UDF directly.

To create the value manually you need to extract the second derivative of k. I was trying to do a similar thing and posted a while ago, and never recieved a satisfactory answer. I would suggest e-mailing the fluent support to see what they have to say.
  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
A simple UDF question Pirooz Darabi FLUENT 0 October 31, 2007 15:22
Basic question: UDF for wall heat flux Carl FLUENT 1 August 5, 2006 19:01
Question about UDF summer FLUENT 1 July 18, 2006 10:13
UDF question Ryan FLUENT 2 July 5, 2006 14:54
A question about the dynamic mesh UDF Tango FLUENT 1 November 27, 2003 02:56


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