|
[Sponsors] |
May 3, 2016, 13:33 |
Hooking UDF
|
#1 |
New Member
Join Date: Mar 2016
Posts: 1
Rep Power: 0 |
Hello everyone,
I am beginner in UDF programing, the objective of my project is to visualize the effect of particles deposition on the heat exchange (between a cold surface and a hot fluid), I am trying to do this by calculating thermal resistance of layer of particles. In this regard, I tried to write an UDF that calculate the heat transfer considering thhe presence of particles. The problem is that I got errors when I hook my heat transfer UDF in the wall boundary conditions. May you please guys help me. Any comments or suggestions are welcome. Here is my UDF, considering the following details : Global variables : - R_BASE : Thermal Resistance of the wall (m^2K/W) ; - K_Particulate : Thermal Conductivity of particles (W/m-K) ; - T_Cool : Temperature of the fluid (K) - T_wall : Boundary Temperature of the wall (K) And F_UDMI(f,thread,2) : refered to thickness of particles, already calculated. DEFINE_PROFILE(heat_flux_BC,thread,i) { real R_EFF; face_t f; begin_f_loop(f,thread) { //Calculate Effective thermal resistance of layers R_EFF=R_BASE+F_UDMI(f,thread,2)/K_Particulate; F_UDMI(f,thread,1)=R_EFF; F_PROFILE(f,thread,i)=(T_Cool-T_wall)/R_EFF; printf("R_eff = %f\n", R_EFF); } end_f_loop(f,thread) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluent Radiation/porous media | Schmitt pierre-Louis | FLUENT | 26 | September 1, 2016 10:29 |
Source Term UDF VS Porous Media Model | pchoopanya | Fluent UDF and Scheme Programming | 1 | August 28, 2013 06:12 |
parse error while interpreting udf | Kristin | Fluent UDF and Scheme Programming | 3 | March 15, 2012 06:43 |
Hooking UDF to symmetry boundary | Eilon Shimshi | FLUENT | 0 | March 12, 2008 12:01 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |