|
[Sponsors] |
November 21, 2013, 02:38 |
UDF for a time varying temperature
|
#1 |
New Member
majid
Join Date: Mar 2011
Posts: 8
Rep Power: 15 |
HI
I intend to writing UDF for tempreture variying time. My equation is: Temperature(t) = -3E-13t6 + 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! |
|
|
|
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 |