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

UDF for a time varying temperature

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

Like Tree1Likes
  • 1 Post By majidmng

Reply
 
LinkBack Thread Tools Display Modes
Old   November 21, 2013, 02:38
Default UDF for a time varying temperature
  #1
New Member
 
majid
Join Date: Mar 2011
Posts: 8
Rep Power: 8
majidmng is on a distinguished road
HI
I intend to writing UDF for tempreture variying time.
My equation is:
Temperature(t) = -3E-13t
6 + 8E-10t5 - 1E-06t4 + 0.0006t3 - 0.1677t2 + 19.257t + 285.41

Is it correct below UDF???

#include "udf.h"

DEFINE_PROFILE(HC_temp_BC,thread,i)
{
face_t f;
begin_f_loop(f,thread)
{
time=CURRENT_TIME;
F_PROFILE(f,thread,i)=(-3*(e,-13)*pow(t,6))+(8*(e,-10)*pow(t,5))-(1*(e,-6)*pow(t,4))+(0.0006*pow(t,3))-(0.1677*pow(t,2))+19.257t+285.41;
}
end_f_loop(f,thread)
}

Please Help me!
zakizadeh likes this.
majidmng is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 12 March 21, 2016 14:05
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 14:12
Temporal and spatially varying temperature udf avi@lpsc Fluent UDF and Scheme Programming 0 August 24, 2013 05:43
AMI speed performance danny123 OpenFOAM 19 October 24, 2012 07:44
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 13:40.