求高手解决fluent udf问题
#include"udf.h"DEFINE_PROFILE(porous_profile,thread,position){realr[ND_ND];realx,y,m;...
#include"udf.h"DEFINE_PROFILE(porous_profile, thread, position) { real r[ND_ND]; real x,y,m; face_t f; begin_f_loop(f, thread) { F_CENTROID(r,f,thread); x=r[2]; y=r[1]; if(y<98) m=1.15+0.35*exp(-0.37*x*(1-exp(-0.6244*y))); else m=1.15+0.35*exp(-0.37*x*(1-exp(-0.6244*(197-y)))); F_PROFILE(f, thread, position)=1-1/m; } end_f_loop(f, thread)}
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询