|
[Sponsors] |
How to write a UDF for a transient temperature |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 8, 2019, 16:41 |
How to write a UDF for a transient temperature
|
#1 |
New Member
Sina Rahimi
Join Date: Mar 2019
Posts: 2
Rep Power: 0 |
I'm trying to write a UDF of a transient temperature BC to be applied on a wall. The data that I will use for this purpose is a thermo-couple data obtained from the process that I'm interested in. So how to write the correct UDF for this case? Can I use the code shown below? Kindly, correct me if this is wrong.
#include "udf.h" DEFINE_PROFILE(parafin_profiless,thread,position) { face_t f; real t = CURRENT_TIME; begin_f_loop(f,thread) { F_PROFILE(f,thread,position) = ((-2.508e-07)*pow(t, 4))+((7.147e-05)*pow(t,3))+((-0.007235)*pow(t,2))+((0.2014)*t)+(304.1); } end_f_loop(f,thread) } |
|
March 10, 2019, 22:23 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
create monitor on your boundary wall and check temperature there, compare with experiment
UDF code looks correct best regard |
|
Tags |
bounadry condition, transient temperature, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlet temperature to temperature boundary condition of velocity inlet. (UDF) | dillon | Fluent UDF and Scheme Programming | 3 | March 25, 2018 12:06 |
How to give the temperature condition by using the temperature of next cell in UDF? | JuBong | Fluent UDF and Scheme Programming | 6 | February 19, 2018 07:09 |
Please Help! Temperature profile UDF for 3D geometry | subhankar_bhandari | FLUENT | 2 | April 16, 2011 06:30 |
Help please! UDF for Temperature profile in 3D | subhankar_bhandari | Fluent UDF and Scheme Programming | 2 | August 16, 2010 09:37 |
parse error in transient udf | spring | FLUENT | 1 | July 6, 2010 07:26 |