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

Temperature boundary condition at the pipe outlet

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2011, 14:11
Default Temperature boundary condition at the pipe outlet
  #1
New Member
 
Jerry Mcquire
Join Date: Jul 2011
Posts: 2
Rep Power: 0
j. mcquire is on a distinguished road
..................

Last edited by j. mcquire; July 13, 2011 at 12:35. Reason: no reply
j. mcquire is offline   Reply With Quote

Old   July 7, 2011, 15:06
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Hi,
your code needs some modifications:
Quote:
#include "udf.h"

DEFINE_PROFILE(out_temp, t, i)
{

real x[ND_ND];
face_t f;
Thread *t0;
begin_f_loop (f,t)

{

F_CENTROID(x,f,t);
F_PROFILE(f,t,i) = C_T(F_C0(f,t),THREAD_T0(t));

}
end_f_loop (f,t)
}
I didn't check that, it may have some syntax errors.
Amir is offline   Reply With Quote

Old   July 7, 2011, 16:25
Default
  #3
New Member
 
Jerry Mcquire
Join Date: Jul 2011
Posts: 2
Rep Power: 0
j. mcquire is on a distinguished road
.................

Last edited by j. mcquire; July 13, 2011 at 12:36. Reason: no reply
j. mcquire is offline   Reply With Quote

Old   July 8, 2011, 02:33
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Dear Jerry,
I checked that and it was compiled without any error:
Quote:
#include "udf.h"

DEFINE_PROFILE(out_temp, t, i)
{

real x[ND_ND];
face_t f;
Thread *t0;
begin_f_loop (f,t)

{

F_CENTROID(x,f,t);
F_PROFILE(f,t,i) = C_T(F_C0(f,t),THREAD_T0(t));

}
end_f_loop (f,t)
}
you can see modifications if you compare it with your UDF!
Amir is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlet boundary condition for wave flume with interFoam solver Arnoldinho OpenFOAM 9 July 10, 2018 05:15
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Disturbed flow field at outlet boundary (Multiphase flow through pipe) Michiel CFX 17 April 21, 2010 10:14
Outlet boundary condition in my pipe ???? Asghari FLUENT 2 July 14, 2006 01:02
outlet boundary condition neil CFX 1 June 17, 2002 00:57


All times are GMT -4. The time now is 05:02.