|
[Sponsors] |
August 14, 2012, 05:27 |
simulating Heat flux
|
#1 |
New Member
B Aram
Join Date: Aug 2012
Posts: 9
Rep Power: 14 |
Hi
i want to define solar radiation as a heat flux BC for my problem. i have its average quantity per month (in w/m^2) for a year and i want to define it for fluent. i think i should use define_profile but i'm not good at prgramming especialy in c and also i'm newbie in defining udf. can someone please kindly share a sample udf program for me? thanks in advance |
|
August 14, 2012, 23:26 |
|
#2 | |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
Hi landa, You may reffere to Fluent UDF manual. There are some good examples on Define_profile in there. You just need to copy one of thouse and pase it in a C file. Then you can change the F_profile value depending on your need. It's so simple, Just take a look and make it! Good luck |
||
August 15, 2012, 03:53 |
|
#3 |
New Member
B Aram
Join Date: Aug 2012
Posts: 9
Rep Power: 14 |
i did so. can u please kindly take a look at it to see whether it has any problem.
this program includes heat flux for 3 days #include"udf.h" DEFINE_PROFILE(flux,th,i) { face_t f; begin_f_loop(f,th) { if(CURRENT_TIME <= 86400.0 ) F_PROFILE(f,th,i) = 300.0; elseif(CURRENT_TIME <= 172800.0 && CURRENT_TIME > 86400.0 ) F_PROFILE(f,th,i) = 310 ; elseif(CURRENT_TIME <= 259200.0 && CURRENT_TIME > 172800.0 ) F_PROFILE(f,th,i) = 320 ; else (CURRENT_TIME <= 345600.0 && CURRENT_TIME > 259200.0 ) F_PROFILE(f,th,i) = 330 ; } end_f_loop(f,th); } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Total heat transf. rate vs Total surface heat flux | Renato Sousa | FLUENT | 1 | April 14, 2020 04:27 |
Sign of Heat Flux at wall | Kyung | FLUENT | 2 | February 26, 2016 17:25 |
Negative Heat Flux | shashank312 | FLUENT | 3 | December 9, 2011 18:00 |
heat flux as a function of angle | uncle_salty | FLUENT | 2 | November 11, 2009 19:03 |
Basic question: UDF for wall heat flux | Carl | FLUENT | 1 | August 5, 2006 20:01 |