| 查看: 747 | 回复: 0 | ||
773881089铜虫 (初入文坛)
|
[求助]
求助!fluent udf 接触角的设置
|
|
fluent 接触角的udf设置,接触角随坐标方向的变化,为什么不对,求指导。 #include "udf.h" DEFINE_PROFILE(contact_angle,th,position) { real x[ND_ND]; /* this will hold the position vector */ real y; real ca; face_t f; /*cell_t c;*/ begin_f_loop(f,th) { F_CENTROID(x,f,th); y=x[0]; if(y<2e-5 && y>=0) F_PROFILE(f,th,position) =30; else if(y<4e-5 && y>=2e-5) F_PROFILE(f,th,position) =45; else if(y<6e-5 && y>=4e-5) F_PROFILE(f,th,position) =60; else if(y<8e-5 && y>=6e-5) F_PROFILE(f,th,position) =90; else if(y<10e-5 && y>=8e-5) F_PROFILE(f,th,position) =135; else F_PROFILE(f,th,position) =150; ca= F_PROFILE(f,th,position); /*Message("c%d: ca-%g, x-%g\n", f, ca,y);*/ } end_f_loop(f,th) } |
» 猜你喜欢
情人节自我反思:在爱情中有过遗憾吗?
已经有7人回复
基金正文30页指的是报告正文还是整个申请书
已经有5人回复
今年春晚有几个节目很不错,点赞!
已经有6人回复
过年走亲戚时感受到了所开私家车的鄙视链
已经有5人回复













回复此楼