|
[Sponsors] |
June 11, 2010, 04:47 |
UDF Clarrification.
|
#1 |
New Member
Shrinand Iyer
Join Date: Jun 2010
Posts: 5
Rep Power: 16 |
I wanted to create a UDF for temperature distribution profile in a samll diverging channel, wherin height varies from 25mm to 51.78 mm along a line of 50 mm. the angle is 15 degrees.
Dimension is also given below. Untitled.jpg The temperature profile required is of parabolic eqn. My prev UDF is given by t=300+(6500*x). here x is in meters. so if x is .09 m, my temp reaches 300 + 585 = 885 k. The problem is that i want to vary it along y axis also. Full udf is given below. #include "udf.h" DEFINE_PROFILE(wall_x_temp, thread, index) { float r[100]; float x; face_t f; begin_f_loop(f, thread) x=r[0]; F_PROFILE(f, thread, index) = 300.+(6500*x); F_CENTROID(r, f, thread); end_f_loop(f, thread) } Pls help |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |