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

How to get the temperature!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2004, 04:42
Default How to get the temperature!
  #1
Neng_R
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
  Reply With Quote

Old   August 2, 2004, 06:44
Default Re: How to get the temperature!
  #2
Andrew Garrard
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.
  Reply With Quote

Old   August 2, 2004, 07:01
Default Re: How to get the temperature!
  #3
prasanth
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
  Reply With Quote

Old   August 2, 2004, 10:56
Default Re: How to get the temperature!
  #4
Neng_R
Guest
 
Posts: n/a
Thanks Andrew Garrard and prasanth's help!Thank you ,you are a good person!
  Reply With Quote

Old   August 2, 2004, 10:59
Default Re: How to get the temperature!
  #5
Neng_R
Guest
 
Posts: n/a
i want to get the temperature to calculate such as , Tk-T,where T is the wall's temperature and Tk is a given temperature, how could I achieve!
  Reply With Quote

Old   August 2, 2004, 12:29
Default Re: How to get the temperature!
  #6
Andrew Garrard
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.
  Reply With Quote

Old   August 2, 2004, 23:08
Default Re: How to get the temperature!
  #7
Neng_R
Guest
 
Posts: n/a
Thanks again for your help!
  Reply With Quote

Old   August 26, 2004, 23:11
Default Re: How to get the temperature!
  #8
Doris
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 pirmary-phase 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?
  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
Problem with zeroGradient wall BC for temperature - Total temperature loss cboss OpenFOAM 12 October 1, 2018 06:36
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
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
chemical reaction - decompostition La S. Hyuck CFX 1 May 23, 2001 00:07


All times are GMT -4. The time now is 00:46.