|
[Sponsors] |
July 24, 2007, 03:08 |
UDF for energy source term
|
#1 |
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. |
|
July 25, 2007, 03:08 |
Re: UDF for energy source term
|
#2 |
Guest
Posts: n/a
|
you have to include mass source terms in UDF.
|
|
|
|
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 |