# Direct calculation of temperature gradient

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

 December 13, 2001, 20:18 Direct calculation of temperature gradient #1 J.W.Ryu Guest   Posts: n/a Hi, all. I am using Fluent 5.5 to calculate thermal and fluid flow on 2d model. To get temperature gradient at specific area, I am conducting bored procedure as follows; 1) Make two lines with constant distance in Interia region (specific area where I would like to know) 2) Save temerature data on these lines as xy file. 3) Caclurate temperature gradient in Spread sheet from xy file. This work is very tedious and needed time spending. Does anybody let me know how I can get temperature gradient from fleunt directly? Best regards, J.W.Ryu

 December 21, 2001, 05:33 Re: Direct calculation of temperature gradient #2 H.S.Fang Guest   Posts: n/a Hi, How do you get the temperature? Can you show the code? Thanks!

 December 22, 2001, 11:07 Re: Direct calculation of temperature gradient #3 J.W.Ryu Guest   Posts: n/a Hi, I am sorry what the code means. In solid face of 2d model, I make two lines at interior region by entering coordinates x and y.Then, write xy file for temperature of these lines. I calculate temperature gradient from excel spreadshet. Thanks,

 December 22, 2001, 20:21 Re: Direct calculation of temperature gradient #4 H.S.Fang Guest   Posts: n/a Hi,if I want to add the energy source term ,C_DTDX,to the energy equation,how should I do?The fluent UDF only defines the velocity gradient,the density gradient,and the pressure gradient,but I need the temperature gradient(C_DUDX) every iteration.When I deal with this term in DEFINE_SOURCE,I can't work it out.DO you have some suggests for the problem?Thanks! Happy Christmas!

 December 27, 2001, 05:41 Re: Direct calculation of temperature gradient #5 Michal Guest   Posts: n/a Try this: C_T_G(cell,thread)[i] ,where "i=0,1,2" is the direction. I hope it will be work.... djamila77 likes this.

 December 27, 2001, 06:39 Re: Direct calculation of temperature gradient #6 H.S.Fang Guest   Posts: n/a If I want to direct calculation of enthalpy and species mass fraction, Will C_H_G(cell,thread)[i] and C_YI_G(cell,thread,i)[i] be work?? Thanks a lot!