CFD Online Logo CFD Online URL
Home > Forums > FLUENT

how to write a 3D linear temperature of UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   October 27, 2008, 09:44
Default how to write a 3D linear temperature of UDF
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) {


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?
  Reply With Quote

Old   October 28, 2008, 03:46
Default Re: how to write a 3D linear temperature of UDF
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
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to write an expression for temperature gradien bilal CFX 2 October 20, 2008 16:48
Linear Temperature Profile Ferdous Rana FLUENT 1 April 24, 2006 16:51
Boundary condition for linear temperature Sushmita CD-adapco 13 June 21, 2005 06:27
Linear Temperature Distribution Kathir FLUENT 0 July 16, 2004 09:33
Write out temperature file. Sudeep Bosu FLUENT 3 December 14, 2001 02:52

All times are GMT -4. The time now is 04:14.