|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
我在编写UDS的FLUX项时,程序通过了编译,但是一运行时就出现了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: #f
只要读取F_V(f,t)值,就出现了这种错误,
期待您的指点!!
#include "udf.h"
DEFINE_UDS_FLUX(uds_N_flux,f,t,N_UDS_NUM)
{
Thread *mix_th, *pri_th,*sec_th;
real NV_VEC(psi),NV_VEC(A),NV_VEC(psi1);
real flux;
mix_th = THREAD_SUPER_THREAD(t);
pri_th = THREAD_SUB_THREAD(mix_th, 0);
sec_th= THREAD_SUB_THREAD(mix_th, 1);
NV_D(psi, =, F_U(f,sec_th), F_V(f,sec_th), F_W(f,sec_th)); /* defining psi in terms of velocity field */
F_AREA(A,f,mix_th); /* face normal vector returned from F_AREA , NV_DOT(psi,A); */
flux=NV_DOT(psi,A);
return flux; /* dot product of the two returned, there is no density consideration for n */
} |
|