|
[Sponsors] |
March 1, 2013, 08:01 |
UDF Problem
|
#1 |
New Member
Join Date: Oct 2011
Posts: 1
Rep Power: 0 |
Hi everyone. I am using UDF to input various atmospheric properties for solving my transient thermal analysis. There are a few doubts that i am having regarding how FLUENT works with UDF. Hope I get my doubts cleared here. Am giving a list of doubts here.
Firstly i am adding the code dat i have written: "#include "udf.h" #define gamma 1.4 #define R 218.6 /* J/kg-K */ #define g 9.8 /* m/s^2 */ #define a 3e-3 /* K/m */ /* hg = geopotential altitude (m)*/ /* a = lapse rate */ /* Tin = Temperature at inlet (K)*/ DEFINE_PROFILE(Temp_inlet,thread,index) { real hg, Tin; real t = CURRENT_TIMESTEP; face_t f; begin_f_loop(f,thread) { if (t <= 1.0) { for (hg=26000; hg<=30000; hg=hg+500) Tin = 216.66 + (a*(hg-25000)); F_PROFILE(f,thread,index) = Tin; } } end_f_loop(f,thread) } " All the doubts are related to the UDF above.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07:05 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 07:56 |
UDF problem | mansha goraya | FLUENT | 0 | October 29, 2007 01:31 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 08:14 |
UDF problem | chiseung | FLUENT | 4 | January 10, 2002 10:58 |