| 查看: 944 | 回复: 0 | |||
| 【悬赏金币】回答本帖问题,作者wuzhenghai将赠送您 50 个金币 | |||
wuzhenghai至尊木虫 (职业作家)
|
[求助]
Workbench16.0 Fluent在编译UDF时出现错误
|
||
|
报错: unable to parse: include error: undefined read macro error object: () udf文件: #include "udf.h" real t, vis, s_mag, s_mag_c, sigma_y, n, k; real c_1 = 1.0; real c_2 = 1.0; real c_3 = 1.0; real c_4 = 1.0; int ia; define_property (cell_viscosity, c, t) { t=c_t(c, t); s_mag =c_strain_rate_mag (c, t); if (ia==0.0) { c_1 =rp_get_real ("c_1" ); c_2 =rp_get_real ("c_2" ); c_3 =rp_get_real ("c_3" ); c_4 =rp_get_real ("c_4" ); ia = 1; } k= c_1 ; n= c_2 ; sigma_y = c_3 ; s_mag_c = c_4 ; if (s_mag < s_mag_c) { vis = sigma_y*(2-s_mag/s_mag_c)/s_mag_c+k*((2-n)+(n-1)*s_mag/s_mag_c)*pow(s_mag_c, (n-1)); else vis = sigma_y/s_mag+k*pow(s_mag, (n-1)); } return vis; }@wuming524 |
» 猜你喜欢
职称评审没过,求安慰
已经有48人回复
26申博自荐
已经有3人回复
A期刊撤稿
已经有4人回复
垃圾破二本职称评审标准
已经有17人回复
投稿Elsevier的Neoplasia杂志,到最后选publishing options时页面空白,不能完成投稿
已经有22人回复
EST投稿状态问题
已经有7人回复
毕业后当辅导员了,天天各种学生超烦
已经有4人回复
三无产品还有机会吗
已经有6人回复














回复此楼