|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
#include "udf.h"
#include "mem.h"
#define diam 2.0e-4
DEFINE_PROFILE(x_inertial,t,i)
{
real Re,mu; /* variable declarations */
cell_t c;
//C_CENTROID(x,c,t);
real vx=C_U(c,t); /*x-velocity*/
real r=C_R(c,t); /*density*/
mu=C_MU_L(c,t); /*层流viscosity*/
// mu=7.95e-06;
Re=vx*r*diam/mu;
begin_f_loop(c,t)
{
if (Re<5)
F_PROFILE(c,t,i)=0;
else
F_PROFILE(c,t,i)=5.84e4;
}
end_f_loop(c,t)
}
点击init报错
Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: () |
|