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

How to write a UDF for a transient temperature

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2019, 16:41
Default How to write a UDF for a transient temperature
  #1
New Member
 
Sina Rahimi
Join Date: Mar 2019
Posts: 2
Rep Power: 0
deathstar is on a distinguished road
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)
}
deathstar is offline   Reply With Quote

Old   March 10, 2019, 22:23
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 33
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
create monitor on your boundary wall and check temperature there, compare with experiment
UDF code looks correct

best regard
AlexanderZ is offline   Reply With Quote

Reply

Tags
bounadry condition, transient temperature, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 11:33.