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

UDF for a time varying temperature

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By majidmng

Reply
 
LinkBack Thread Tools Search this Thread 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: 15
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


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
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 05:13
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 14 February 20, 2019 10:08
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 06:43
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 04:51.