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

energy source problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2010, 12:19
Default energy source problem
  #1
New Member
 
nickeet
Join Date: Jul 2009
Posts: 9
Rep Power: 17
fluboy is on a distinguished road
Dear All

I am a beginner in UDF

I need to set a energy source in a solid (W/m3)

And the energy source is temperature dependent

I got this error message:

FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save cas/data under new name.
3. Exit programme and restart to continue.
4. Report error to your distributor.
Error object

My UDF is as follow


#include "udf.h"

DEFINE_SOURCE(energy_source, c, t, dS, eqn)

{
real temp;
real source;

temp = C_W(c,t);



if (temp<293 && temp>290)
source = 1000.;
else
source = 0.;
return source;
}


pls give me some direction and suggestion.

Thanks.
fluboy is offline   Reply With Quote

Old   January 8, 2010, 04:36
Default
  #2
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
C_W(c,t) will return the z-velocity which does not make too much sense for a solid. Maybe C_T(c,t) is what you actually want to use.

cheers
coglione is offline   Reply With Quote

Old   January 10, 2010, 09:56
Default
  #3
New Member
 
nickeet
Join Date: Jul 2009
Posts: 9
Rep Power: 17
fluboy is on a distinguished road
Thank you, coglione

I will try it!!
fluboy is offline   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
UDF for energy source term Muhammad Aamir Khan FLUENT 1 July 25, 2007 03:08
energy source Universtiy Paul FLUENT 3 April 21, 2006 16:15
Energy Source Help! Andrew Clark FLUENT 1 October 24, 2005 15:39
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


All times are GMT -4. The time now is 04:12.