TA的每日心情 | 无聊 1-7-2015 18:46 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
汽车零部件采购、销售通信录 填写你的培训需求,我们帮你找 招募汽车专业培训老师
#include "udf.h"
#define CON 8.411e6
DEFINE_SOURCE(cell_x_source, cell, thread, dS, eqn)
{
real source;
/* source term */
source = -CON*C_U(cell,thread);
/* derivative of source term w.r.t. x-velocity. */
dS[eqn] = -CON;
return source;
}
DEFINE_SOURCE(cell_y_source, cell, thread, dS, eqn)
{
real source;
/* source term */
source = -CON*C_V(cell,thread);
/* derivative of source term w.r.t. x-velocity. */
dS[eqn] = -CON;
return source;
}
DEFINE_SOURCE(cell_z_source, cell, thread, dS, eqn)
{
real source;
/* source term */
source = -CON*C_W(cell,thread);
/* derivative of source term w.r.t. x-velocity. */
dS[eqn] = -CON;
return source;
}
DEFINE_SOURCE(cell_mass_source, cell, thread, dS, i)
{
real source;
/* source term */
source=-20*C_YI(cell,thread,i)/(1+C_YI(cell,thread,i));
/* derivative of source term w.r.t. x-velocity. */
dS=-20/((1+C_YI(cell,thread,i))*(1+C_YI(cell,thread,i)));
return source;
}
初始化时出现以下语句:
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.
请教是哪一块可能出现了问题,万分感谢!!! |
|