
[Sponsors] 
August 2, 2004, 04:42 
How to get the temperature!

#1 
Guest
Posts: n/a

Hi, every one! i need your help, thanks first! I need get the temperature of the boundary or somewhere, such as the wall temperature. If i know the wall's id is 1, how could i get its temperature, for i need it to calculate! I know we can use C_T( ),F_T(),etc to get temperature of the face / cell, but how could i get the particular id's temperature. Thanks


August 2, 2004, 06:44 
Re: How to get the temperature!

#2 
Guest
Posts: n/a

I don't really understand what your question is asking for, maybe you would like to describe your problem. I will try to answer what I think you are asking. If you want to know the temperature on, say, a wall of ID 5, then you need to define the tread that has that ID, then get the temperature from it, something like.
Thread *thread5=Lookup_Thread(domain, ID); /*where 5 is the ID you are looking for in this case */ /* thread5 is a name defined by you and can be what you want */ real Temp = F_T(f, t); You may also need some sort of looping macro to access all the faces on a boundary thread. 

August 2, 2004, 07:01 
Re: How to get the temperature!

#3 
Guest
Posts: n/a

Dear Andrew
You almost did that he had expected. Its what he wants to know Andrew. In multiphase problems, situation will be in another way for accessing the macros I hope Neng has got the answer! prasanth 

August 2, 2004, 10:56 
Re: How to get the temperature!

#4 
Guest
Posts: n/a

Thanks Andrew Garrard and prasanth's help!Thank you ,you are a good person!


August 2, 2004, 10:59 
Re: How to get the temperature!

#5 
Guest
Posts: n/a

i want to get the temperature to calculate such as , TkT,where T is the wall's temperature and Tk is a given temperature, how could I achieve!


August 2, 2004, 12:29 
Re: How to get the temperature!

#6 
Guest
Posts: n/a

Ok, again, you really have to be a little more descriptive with your problem and what you are trying to achieve. Is the wall temperature, T, varying along the length of the wall? If you simply want to create a function along the wall that is Tk  T where Tk is a constant, you can do this with a custom field function  No UDF required. If you want to take the value of temperature from one of the faces of the wall and then have it subtracted from a constant in a UDF, for whatever reason, you can code that like so.
real Tk=300; /* or whatever it happens to be*/ real final_temp = F_T(face, thread)  Tk; /* where f is the face number and thread is the thread pointer */ But this is pretty basic stuff and all in the UDF manual for fluent 6. 

August 2, 2004, 23:08 
Re: How to get the temperature!

#7 
Guest
Posts: n/a

Thanks again for your help!


August 26, 2004, 23:11 
Re: How to get the temperature!

#8 
Guest
Posts: n/a

well, in multiphase problems, the situation is in another way, i met this situation, so what should i do?
because i have met the situation like below: i have changed the domain id(i know the mixture_domian id is 1, the pirmaryphase domain id is 2),and i use udf to get F_CENTROID on the specitied thread, but the result is the same. should the grid variables's data will be the same in different domian? 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Problem with zeroGradient wall BC for temperature  Total temperature loss  cboss  OpenFOAM  9  January 28, 2013 13:11 
Bulk temperature Tf is obtained from total or static temperature?  NPU_conanxie  FLUENT  0  March 30, 2011 05:56 
monitoring point of total temperature  rogbrito  FLUENT  0  June 21, 2009 17:31 
Calculation of the Governing Equations  Mihail  CFX  5  July 25, 2008 17:29 
chemical reaction  decompostition  La S. Hyuck  CFX  1  May 23, 2001 00:07 