| 查看: 307 | 回复: 0 | ||
[交流]
【求助】温度边界条件的UDF
|
|
求助大虾们,我要编个温度随时间变化的边界条件,请问下面C程序有问题吗(t是时间)?我算出来的怎么不符合事实呢 #include"udf.h" DEFINE_PROFILE(outsidetemperature,thread,position) { face_t f; real t = CURRENT_TIME; begin_f_loop(f,thread) { F_PROFILE(f,thread,position)=273+5*pow(10,-23)*pow(t,5)-8*pow(10,-18)*pow(t,4)+3*pow(10,-13)*pow(t,3)+8*pow(10,-9)*pow(t,2)-2*pow(10,-4)*t+24.99; } end_f_loop(f,thread) |













回复此楼