请教一个压力随时间变化的udf?
浏览:1070
各位大神帮帮忙,第九行出现 non-integer subscript expression: float. #include "udf.h" DEFINE_PROFILE(unsteady_pressure,thread,time) { face_t f; begin_f_loop(f,thread) { real time=RP_Get_Real("flow-time"); if(time<=0.001) F_PROFILE(f,thread,time)=-250000000time^2+525000000time; else if(time>0.001) F_PROFILE(f,thread,time)=-185000000log(time-0.0002)-1040000000; } end_f_loop(f,thread) } |