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

UDF for energy source term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2007, 03:08
Default UDF for energy source term
  #1
Muhammad Aamir Khan
Guest
 
Posts: n/a
hello,

i am doing my M.S thesis and i came through the problem that my energy source is function of distance.I wrote a UDF that got compiled and loaded, but it does not give correct results.I think there is some problem with my program.Will any of u please help me handling this problem.Iwill be thankful. The program is given below.

#include "udf.h" DEFINE_SOURCE(energy_source,cell,thread,dS,eqn) { real source; real x[ND_ND]; cell_t c;

C_CENTROID(x,cell,thread)

if (x[0]<= 2.9)

{ source=2012389286.84188+16292985208.2144*x[0]+5818669134.05074*x[0]*x[0]-9845482131.38002*x[0]*x[0]*x[0]; }

else

source =0;

return source;

}

waiting for ur suggestions.

  Reply With Quote

Old   July 25, 2007, 03:08
Default Re: UDF for energy source term
  #2
msureshkumar
Guest
 
Posts: n/a
you have to include mass source terms in UDF.
  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
Injection of the source term UDF stage81 FLUENT 0 September 27, 2010 08:20
UDF Source Term Christian FLUENT 4 August 1, 2009 06:53
The source term of UDF summer FLUENT 0 August 24, 2006 18:44
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 14, 2000 00:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 04:43


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