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

Bulk Temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2017, 14:49
Default Bulk Temperature
  #1
New Member
 
Zohud Mohammed
Join Date: Feb 2017
Location: Salfeet-Palestine
Posts: 6
Rep Power: 9
Zohud is on a distinguished road
Dear all; i am studying the heat transfer of nanorefrigerant in horizontal tube under heat flux constant; but i need a method for calculate the bulk temperature of fluid for every points on axes x. I am trying write udf but there is an error

/************************************************** ********************
UDF for calculate the bulk temperature
************************************************** ********************/

#include "udf.h"


DEFINE_Tb(Tbulk,thread,temp)
{
real Tb;
real x[ND_ND]; /* this will hold the position vector */
real y[ND_ND];
real u=f_U(f,t)
real temp = F_T(face, thread); /* get face temperature */

face_t f;

begin_f_loop(face,thread) /* loops over all faces in the thread passed
in the DEFINE macro argument */
{
Tb = SUM u*temp*y / SUM u*y;
}
end_f_loop(face,thread)
}

Please help me
Zohud is offline   Reply With Quote

Old   February 22, 2017, 21:18
Default
  #2
New Member
 
Zohud Mohammed
Join Date: Feb 2017
Location: Salfeet-Palestine
Posts: 6
Rep Power: 9
Zohud is on a distinguished road
Dear all; No one can help me? Please I need your helps
Zohud is offline   Reply With Quote

Old   February 23, 2017, 08:30
Default
  #3
Senior Member
 
Kevin
Join Date: Dec 2016
Posts: 138
Rep Power: 10
KevinZ09 is on a distinguished road
Well, perhaps specify more clearly what the error is so people on here can help you better. Looking at your UDF, I can see multiple errors:

- What's DEFINE_Tb? Never heard of that macro. You can't just create your own macro's; you need to stick to those provided by Fluent.
- You're referencing variables like face, f, t that are either not defined at all, or defined after using them.
- What is this supposed to do: Tb = SUM u*temp*y / SUM u*y;

I'd strongly suggest first looking in Fluent's UDF manual to get a better understanding of what they do and how to use them. And also look up for information on C programming. That alone should help you solve many of the errors you get.
KevinZ09 is offline   Reply With Quote

Old   February 23, 2017, 14:14
Default
  #4
New Member
 
Zohud Mohammed
Join Date: Feb 2017
Location: Salfeet-Palestine
Posts: 6
Rep Power: 9
Zohud is on a distinguished road
Thank you Kevin for the comment
Zohud is offline   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
determination of the bulk mean temperature for Nu calculation aalzoubi06 OpenFOAM Post-Processing 1 December 2, 2015 18:18
bulk temperature Ice man FLUENT 0 May 29, 2014 04:31
Bulk mean fluid temperature in internal flow mssound FLUENT 0 May 13, 2010 16:56
Bulk temperature emad FLUENT 0 February 1, 2008 08:45
Bulk temperature rjhoti FLUENT 0 April 16, 2003 10:22


All times are GMT -4. The time now is 15:37.