|
[Sponsors] |
February 19, 2017, 14:49 |
Bulk Temperature
|
#1 |
New Member
Zohud Mohammed
Join Date: Feb 2017
Location: Salfeet-Palestine
Posts: 6
Rep Power: 9 |
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 |
|
February 22, 2017, 21:18 |
|
#2 |
New Member
Zohud Mohammed
Join Date: Feb 2017
Location: Salfeet-Palestine
Posts: 6
Rep Power: 9 |
Dear all; No one can help me? Please I need your helps
|
|
February 23, 2017, 08:30 |
|
#3 |
Senior Member
Kevin
Join Date: Dec 2016
Posts: 138
Rep Power: 10 |
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. |
|
February 23, 2017, 14:14 |
|
#4 |
New Member
Zohud Mohammed
Join Date: Feb 2017
Location: Salfeet-Palestine
Posts: 6
Rep Power: 9 |
Thank you Kevin for the comment
|
|
|
|
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 |