|
[Sponsors] |
July 14, 2008, 07:40 |
source energy involving temperature gradient
|
#1 |
Guest
Posts: n/a
|
Hello friends,
I have seen a discussion about temperature gradient in FLUENT in a CFD forum. I have the same problem. I want to compute a source energy â€"cte*gradient. My code is: #include "udf.h" DEFINE_SOURCE (fuente_energia, c, t, dS, eqn) { real gradT; real fuentee; real cte = 15500; begin_c_loop(c,t) { gradT = C_T_G(c,t)[0]; fuentee = -cte*gradT; dS[eqn]= -cte */I am not sure*/ } end_c_loop(c,t) return fuentee; } But when I iterate, I have a violation error. Can you help me, please? Greetings from Spain. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Temperature Gradient | Sean | Siemens | 2 | March 3, 2010 03:42 |
Temperature gradient | tsherk86 | OpenFOAM Running, Solving & CFD | 2 | August 5, 2008 15:42 |
source term involving a gradient of the scalar var | sm | CFX | 3 | May 23, 2007 10:34 |
Kinetic Energy Gradient | sebastien | FLUENT | 2 | July 25, 2006 10:11 |
Temperature gradient | Michal | FLUENT | 7 | December 3, 2001 12:24 |