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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2013, 05: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

Old   January 25, 2020, 04:53
Default
  #2
New Member
 
Join Date: Jul 2014
Posts: 26
Rep Power: 12
Pacific is on a distinguished road
Hi there,


Could you find the answer?
I have the same problem in my project.


Regards.
Pacific is offline   Reply With Quote

Old   January 27, 2020, 06:45
Default
  #3
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
describe your problem in details
Pacific likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   January 27, 2020, 06:53
Default
  #4
New Member
 
Join Date: Jul 2014
Posts: 26
Rep Power: 12
Pacific is on a distinguished road
I should apply Q=a*I*T to the boundary condition.
T is the wall temperature.
How can I define it in UDF?
I have tried to use Define_Heat_Flux function.


Thanks for your time.
Pacific is offline   Reply With Quote

Old   January 27, 2020, 07:12
Default
  #5
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
show your code, describe your problems
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   January 27, 2020, 09:40
Default
  #6
New Member
 
Join Date: Jul 2014
Posts: 26
Rep Power: 12
Pacific is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
show your code, describe your problems
#include "udf.h"
real Alpha = 0.; // Seebeck coefficient (V/K)
real I=0.; // Electric current

//

DEFINE_ADJUST(Seebeck_adjust, domain)
{

Alpha = 0.000400;
I=5;
}
DEFINE_HEAT_FLUX(heat_flux, f, t, c0, t0, cid, cir)
{
cid[0] = 0.;
cid[1] = 0.0;
cid[2] = Alpha*I;
cid[3] = 0.;
}
Pacific is offline   Reply With Quote

Old   January 28, 2020, 00:05
Default
  #7
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
what problems do you have?
may be you should use cid[1] = Alpha*I;
I have no experience here
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   January 28, 2020, 08:28
Default DEFINE_HEAT_FLUX vs DEFINE_PROFILE
  #8
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Hi

Do note that DEFINE_HEAT_FLUX is not meant for applying the heat flux condition, rather to alter the interactions between temperature and heat flux. For the purpose of applying a profile, DEFINE_PROFILE is to be used.

Vinerm
vinerm is offline   Reply With Quote

Old   February 4, 2021, 05:13
Default
  #9
New Member
 
ahmet kaya
Join Date: Aug 2020
Location: İzmir
Posts: 27
Rep Power: 6
blacksatellite is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Hi

Do note that DEFINE_HEAT_FLUX is not meant for applying the heat flux condition, rather to alter the interactions between temperature and heat flux. For the purpose of applying a profile, DEFINE_PROFILE is to be used.

Vinerm
Hi there,


Could you find the answer?
I have the same problem in my project.


Regards.
blacksatellite is offline   Reply With Quote

Reply

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


All times are GMT -4. The time now is 12:03.