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

Temperature dependent Heat flux (Peltier effect)

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Student3
  • 1 Post By AlexanderZ

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 8, 2013, 04:12
Default Temperature dependent Heat flux (Peltier effect)
  #1
New Member
 
Daniel
Join Date: Feb 2013
Posts: 1
Rep Power: 0
Student3 is on a distinguished road
I'm a student who have to design a cooling system based on Peltier module for my final degree project.
I have tried to develop a UDF which takes the temperature for one face and applies it in the face where the UDF is applied. I am able to retrieve the information of the face where the UDF is applied but not from the other face.
IŽll post my UDF to see if anyone see where is the problem.

#include "udf.h"

DEFINE_PROFILE(peltier, thread, i)

{
real sum = 0.;
real temp_sum = 0.;
real tmin = 0.;
real tempe,media;
face_t f;

Thread *f_thread;
Domain *domain;
domain = Get_Domain(2);
thread_loop_f(f_thread, domain)
{

begin_f_loop(f, f_thread)
{
tempe=F_T(f,f_thread);
sum=sum+1;
temp_sum=temp_sum+tempe;
}
end_f_loop(f, f_thread)


}
media=temp_sum/sum;
printf("media: %d", media);
begin_f_loop(f, thread)
{
F_PROFILE(f, thread,i) = 0.;
}
end_f_loop(f, thread)
}


Any advice are welcome.
cobal likes this.
Student3 is offline   Reply With Quote

 

Tags
heat flux fluent udf, peltier, temperature dependent


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
Wall Heat Flux & Temperature Greg Perkins FLUENT 10 November 20, 2015 09:32
How to set a initial temperature and constant heat flux at same BC's?? Jane FLUENT 4 October 25, 2015 12:01
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
No results for solid domain Gary Holland CFX 10 March 13, 2009 03:30
Constant wall heat flux with uniform temperature Jake FLUENT 2 September 29, 2003 11:34


All times are GMT -4. The time now is 07:59.