# How to get the temperature!

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

 August 2, 2004, 04:42 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

 August 2, 2004, 07:01 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

 August 2, 2004, 10:56 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!

 August 2, 2004, 10:59 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!

 August 2, 2004, 12:29 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.

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

 August 26, 2004, 23:11 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?

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post cboss OpenFOAM 10 March 5, 2015 07:57 Mihail CFX 7 September 7, 2014 06:27 NPU_conanxie FLUENT 0 March 30, 2011 05:56 rogbrito FLUENT 0 June 21, 2009 17:31 La S. Hyuck CFX 1 May 23, 2001 00:07

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