CFD Online URL
[Sponsors]
Home > Forums > FLUENT

source energy involving temperature gradient

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 14, 2008, 07:40
Default source energy involving temperature gradient
  #1
isabel
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.

  Reply With Quote

Reply

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
Temperature Gradient Sean CD-adapco 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


All times are GMT -4. The time now is 00:39.