|
[Sponsors] |
May 13, 2016, 09:07 |
Point Source for Radiation by UDF
|
#1 |
New Member
Davut Vatansever
Join Date: Nov 2014
Location: Istanbul
Posts: 3
Rep Power: 12 |
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; } 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 |
|
|
|
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 |