|
|

楼主 |
发表于 2013-7-15 09:41:18
|
显示全部楼层
回复 2# yxyzr 的帖子
#include "udf.h"
DEFINE_PROPERTY(cell_viscosity, cell, thread)
{
real mu_lam;
Thread *t;
face_t f;
real x[ND_ND];
real y;
F_CENTROID(x,f,t);
y=x[1];
if(y>=0.0018)
mu_lam=0.0009;
else if(y<0.0016)
mu_lam=0.0001;
else
mu_lam=4*y-0.0063;
return mu_lam;
} |
|