CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

how to write a 3D linear temperature of UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2008, 09:44
Default how to write a 3D linear temperature of UDF
  #1
venus
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?
  Reply With Quote

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

Reply


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 Off
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 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


All times are GMT -4. The time now is 21:50.