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 Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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


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 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 19:42.