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

source energy involving temperature gradient

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2008, 06: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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Temperature Gradient Sean Siemens 2 March 3, 2010 02:42
Temperature gradient tsherk86 OpenFOAM Running, Solving & CFD 2 August 5, 2008 14:42
source term involving a gradient of the scalar var sm CFX 3 May 23, 2007 09:34
Kinetic Energy Gradient sebastien FLUENT 2 July 25, 2006 09:11
Temperature gradient Michal FLUENT 7 December 3, 2001 11:24


All times are GMT -4. The time now is 21:58.