|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
想根据模型一部分的液相体积占比调节出口速度边界条件,编写如下程序,可是出现 (Segmentation fault),实在搞不懂代码问题在哪里?,
#include "udf.h"
#include "sg_mphase.h"
DEFINE_PROFILE(x_velocity, thread, index)
{
face_t f; /* f is a face thread index */
cell_t c;
int ID = 20;
Thread *tj = Lookup_Thread(Get_Domain(1),ID);
begin_f_loop(f,thread)
{
if (C_VOF(c,tj)>0.3)
F_PROFILE(f, thread, index) = 0 ;
else
F_PROFILE(f, thread, index) = 0.5;
}
end_f_loop(f,thread)
}
|
|