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

UDF code for heat generating source

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 1 Post By krushna
  • 1 Post By pakk
  • 1 Post By pakk
  • 1 Post By pakk
  • 1 Post By pakk
  • 1 Post By kcgmech
  • 1 Post By bhargavbharathan

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 23, 2015, 08:07
Unhappy UDF code for heat generating source
  #1
New Member
 
yashar_aryanfar
Join Date: Oct 2015
Posts: 7
Rep Power: 10
valerhain is on a distinguished road
hi dear friends
I am supposed to write a udf for heat generation rate which is a function at this form:





I prepared this code for simulating :

#include "udf.h"
#define EPS 0.01
#define SIGMA 0.004
DEFINE_SOURCE(cell_x_source, cell, thread, dS, eqn)
{
real x[ND_ND];
real source;
C_CENTROID(x,cell,thread);

source=EPS*exp(((x[0]-0.4)*(x[0]-0.4)+(x[1]-0.004)*(x[1]-0.004))/(-SIGMA*SIGMA));
dS[eqn]=0;
return source;
}


but is not work. this code dont have any effect in my results. dear friend I have less than 5 days for simulating this. please help me and I will thankfull of you...
valerhain is offline   Reply With Quote

 


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] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 120 October 21, 2022 04:01
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44
Please help me run UDF code for source Suga FLUENT 1 February 3, 2006 03:40


All times are GMT -4. The time now is 00:02.