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

Problem in UDF time dependent vloumetric heat source

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2014, 09:07
Default Problem in UDF time dependent vloumetric heat source
  #1
New Member
 
Yasser
Join Date: Mar 2014
Posts: 7
Rep Power: 12
eng_yasser_2020 is on a distinguished road
Hi every body,

I modeling a transient case which has a time dependent volumetric heat source applied in a wall. I wrote the UDF as follows:

#include "udf.h"
#define C1 0.0029369048 //define constant term

DEFINE_SOURCE(heat_gen,cell,thread,dS,eqn)
{
real source;
real time;
time = CURRENT_TIME; //taking time value;
source = time*C1; //time dependent heat source;
dS[eqn] = 0;
return source;
}

I Interpreted it with no problem, but when i hooked it to a wall it made this error:

heat_gen: wrong return type: void udf function expected
Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.

So any help??!!
eng_yasser_2020 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
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
Transient spacial dependent heat source Kumudu OpenFOAM Running, Solving & CFD 0 October 28, 2013 12:02
[swak4Foam] problem on installing swak4Foam navid2 OpenFOAM Community Contributions 2 May 30, 2012 05:32
udf with moving heat source Ryan FLUENT 0 April 10, 2003 20:13
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 13:40


All times are GMT -4. The time now is 01:34.