CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF for energy source term

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

LinkBack Thread Tools Display Modes
Old   July 24, 2007, 02:08
Default UDF for energy source term
Muhammad Aamir Khan
Posts: n/a

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;


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]; }


source =0;

return source;


waiting for ur suggestions.

  Reply With Quote

Old   July 25, 2007, 02:08
Default Re: UDF for energy source term
Posts: n/a
you have to include mass source terms in UDF.
  Reply With Quote


Thread Tools
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 On
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 07:20
UDF Source Term Christian FLUENT 4 August 1, 2009 05:53
The source term of UDF summer FLUENT 0 August 24, 2006 17:44
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 13, 2000 23:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43

All times are GMT -4. The time now is 10:47.