|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
我想用UDF求单元的体积,请问用C_COLUME(c,t)得到的是矢量还是标量的体积?我想求平均压力,迭代开始总出现错误:
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: ()
之前可以运行,改了部分程序之后出现问题。改动部分程序如下:
float P=0.0,VOL=0.0; //压力P 总体积VOL
cell_t c;
float vt=0.0; //单元体积vt
domain=Get_Domain(1);
t_s_down=Lookup_Thread(domain, 15);
begin_c_loop (c,t_s_down)
{
vt=C_VOLUME(c,t_s_down);
P+=C_P(c,t_s_down)*vt;
VOL+=vt;
}
end_c_loop(c,t_s_down);
P=P/VOL;
哪位高手帮帮忙啊!感激不尽! |
|