|
[Sponsors] |
Temperature dependent Heat flux (Peltier effect) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 8, 2013, 05:12 |
Temperature dependent Heat flux (Peltier effect)
|
#1 |
New Member
Daniel
Join Date: Feb 2013
Posts: 1
Rep Power: 0 |
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. |
|
January 25, 2020, 04:53 |
|
#2 |
New Member
Join Date: Jul 2014
Posts: 26
Rep Power: 12 |
Hi there,
Could you find the answer? I have the same problem in my project. Regards. |
|
January 27, 2020, 06:45 |
|
#3 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
describe your problem in details
__________________
best regards ****************************** press LIKE if this message was helpful |
|
January 27, 2020, 06:53 |
|
#4 |
New Member
Join Date: Jul 2014
Posts: 26
Rep Power: 12 |
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. |
|
January 27, 2020, 07:12 |
|
#5 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
show your code, describe your problems
__________________
best regards ****************************** press LIKE if this message was helpful |
|
January 27, 2020, 09:40 |
|
#6 |
New Member
Join Date: Jul 2014
Posts: 26
Rep Power: 12 |
#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.; } |
|
January 28, 2020, 00:05 |
|
#7 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
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 |
|
January 28, 2020, 08:28 |
DEFINE_HEAT_FLUX vs DEFINE_PROFILE
|
#8 |
Senior Member
|
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 |
|
February 4, 2021, 05:13 |
|
#9 | |
New Member
ahmet kaya
Join Date: Aug 2020
Location: İzmir
Posts: 27
Rep Power: 6 |
Quote:
Could you find the answer? I have the same problem in my project. Regards. |
||
Tags |
heat flux fluent udf, peltier, temperature dependent |
|
|
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 |