|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
问题是这样的,根据ID为7的面上的温度来控制速度边界条件,当温度小于923k是速度入口为17。5,温度大于923k时速度入口为o。
#include "udf.h"
DEFINE_PROFILE(INLRT_L_velocity,thread,position)
{
real temp;
face_t f;
int ID_bottom=7;
Domain *domain;
Thread *thread_bottom = Lookup_Thread(domain, ID_bottom);
begin_f_loop(f,thread_bottom)
{
temp=F_T(f,thread_bottom);
if (temp<923)
{F_PROFILE(f,thread,position) = 17.5;}
else
{F_PROFILE(f,thread,position) = 0;}
}
end_f_loop(f,thread_bottom)
}
编译通过了,可是材边界条件中已选择,就会出现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: ()
求高手指点 |
|