|
[Sponsors] |
Problem in UDF time dependent vloumetric heat source |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Yasser
Join Date: Mar 2014
Posts: 7
Rep Power: 12 ![]() |
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??!! |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 16:02 |
Transient spacial dependent heat source | Kumudu | OpenFOAM Running, Solving & CFD | 0 | October 28, 2013 11:02 |
[swak4Foam] problem on installing swak4Foam | navid2 | OpenFOAM Community Contributions | 2 | May 30, 2012 04:32 |
udf with moving heat source | Ryan | FLUENT | 0 | April 10, 2003 19:13 |
UDF Scalar Code: HT 1 | Greg Perkins | FLUENT | 8 | October 20, 2000 12:40 |