|
[Sponsors] |
October 27, 2008, 09:44 |
how to write a 3D linear temperature of UDF
|
#1 |
Guest
Posts: n/a
|
this is my 2D linear temperature of 2D. DEFINE_PROFILE(linear, t, i) { face_t f; real d=0.; real n=0.; begin_f_loop(f, t) {
d+=1.; } end_f_loop(f, t) begin_f_loop(f, t) { n+=1.; F_PROFILE(f, t, i) = 323. + 377.*n/d; } end_f_loop(f, t) } but now i have to write a 3D linear temperature UDF on a cylinder. if i use the 2D UDF on the cylinder, the result of the simulation is very strange. i think the UDF has to add a parameter or something! can anybody help me? |
|
October 28, 2008, 03:46 |
Re: how to write a 3D linear temperature of UDF
|
#2 |
Guest
Posts: n/a
|
Hello Venus, i propose to reformulate your profile in terms of spatial coordinates instead of d and n because the numbering of faces at the boundary and therefor the sequence of the face loop is not so obvious in 3d.
cheers Max |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to write an expression for temperature gradien | bilal | CFX | 2 | October 20, 2008 17:48 |
Linear Temperature Profile | Ferdous Rana | FLUENT | 1 | April 24, 2006 17:51 |
Boundary condition for linear temperature | Sushmita | Siemens | 13 | June 21, 2005 07:27 |
Linear Temperature Distribution | Kathir | FLUENT | 0 | July 16, 2004 10:33 |
Write out temperature file. | Sudeep Bosu | FLUENT | 3 | December 14, 2001 02:52 |