#include"udf.h"
DEFILE_PROPERTY(cell_viscosity,cell,thread)
{
real mu_lam;
real temp=C_T(cell,thread);
if(temp>288.)
mu_lam=5.5e-3;
esle if(temp>286.)
mu_lam=143.2135-0.49725*temp;
else
mu_lam=1.;
return mu_lam;
}
#include"udf.h"
#include"math.h"
DEFINE_CG_MOTION(velocity,dt,vel,omega,time,dtime)
{real t=RP_Get_Real("flow-time");
int n;
float c;
n=t/25;
c=t-n*25;
评论0