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

Point Source for Radiation by UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2016, 09:07
Default Point Source for Radiation by UDF
  #1
New Member
 
Davut Vatansever
Join Date: Nov 2014
Location: Istanbul
Posts: 3
Rep Power: 12
daire6 is on a distinguished road
Hi,

I am relatively new to computational fluid dynamics, so i need your help

I am trying to simulate radiation heat transfer in a radial inflow turbine. Instead of modelling thermal radiation between fluid and turbine blades, I need to simplify the problem by adding a point heat source inside of the flow domain so that the heat source generated by this point would be mathematically equivalent to the radiation occurs from the fluid flowing through the blades.

I thought of implementing a simple UDF code like this :
Code:
 

#include "udf.h"

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

{

real x[ND_ND];
real source;

C_CENTROID(x,c,t);

if(x[0]==0.06 && x[1]==0.043 && x[2]==0.02)  /* coordinate point of the heat source */
{
source= 100;                                
ds[eqn]=0;
}
else
{
source=0;
ds[eqn]=0;
}
return source;
}
Since the mathematical model does not still exist, I put a constant value for the source term in my code for now. However, my problem is different.
Even though I successfully interpreted my file in the Fluent, I am not able to see the relevant UDF file when I would like to add a boundary condition from the fluid zone.

Is there a logical mistake in my if-else statement ?
Why can't I see the UDF file in the source term panel ?
Any simpler method that I can use for adding a point source term ?

Any help and advice would be appreciated.
Davut
daire6 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] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[Other] How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 04:04
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 20:10.