| 查看: 1057 | 回复: 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 |
» 猜你喜欢
26/27申博自荐
已经有10人回复
东北林业大学材料科学与工程学院“一流”A+学科国家级人才团队课题组招收2026级博士生
已经有3人回复
医学类期刊求推荐
已经有5人回复
生活琐事由它去
已经有4人回复
提交了我也来说说感想
已经有12人回复
青B发送上会通知了吗
已经有9人回复
西安交大新媒学院副院长用撤稿论文结题
已经有6人回复
论文撤稿了
已经有8人回复
化学专业申博
已经有4人回复
某211大学教师把个人教师官方主页改成:我跑了我跑了我跑了!官宣跑路!
已经有5人回复













回复此楼