| 查看: 971 | 回复: 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 |
» 猜你喜欢
表哥与省会女结婚,父母去帮带孩子被省会女气回家生重病了
已经有12人回复
依托企业入选了国家启明计划青年人才。有无高校可以引进的。
已经有14人回复
江汉大学解明教授课题组招博士研究生/博士后
已经有3人回复
AI 太可怕了,写基金时,提出想法,直接生成的文字比自己想得深远,还有科学性
已经有11人回复
依托企业入选了国家启明计划青年人才。有无高校可以引进的。
已经有11人回复














回复此楼