| 查看: 2200 | 回复: 10 | ||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | ||
吕小雨55新虫 (正式写手)
|
[求助]
fluent中编写udf导入后点击execute on damand后总是出错
|
|
|
fluent中编写udf导入后点击execute on damand后总是提示 received a fatal signal (Segmentation fault).跪求大神指点,编写的udf如下: #include "udf.h" DEFINE_ON_DEMAND(on_healines_calc) { Domain *d; /* declare domain pointer since it is not passed as an argument to the DEFINE macro */ real temp,vu,vv,tempu,tempv,density,k; Thread *t; cell_t c; d = Get_Domain(1); /* Get the domain using ANSYS FLUENT utility */ begin_c_loop(c,t) { temp = C_T(c,t); /* get cell temperature */ vu = C_U(c,t); vv = C_V(c,t); tempu = C_T_G(c,t)[0]; tempv = C_T_G(c,t)[1]; density = C_R(c,t); k = C_K_L(c,t); C_UDMI(c,t,0)=sqrt((density*vu*1006*temp-k*tempu)*(density*vu*1006*temp-k*tempu)+(density*vv*1006*temp-k*tempv)*(density*vv*1006*temp-k*tempv)); } end_c_loop(c,t) } |
» 猜你喜欢
国基评审
已经有10人回复
析晶
已经有5人回复
国自然面上和省基金B类撒花
已经有22人回复
2026-博士申请
已经有4人回复
26级硕士毕业生求博导收留
已经有4人回复
湖南大学刘巧玲课题组2026年第二批次博士研究生招生信息
已经有6人回复
考研调剂
已经有3人回复
急招9月入学博士,要有4级、最晚7月硕士毕业。精密电机驱控课题;学位材料
已经有5人回复
又一批高校组建人工智能学院 师资行吗 不是骗人吗
已经有7人回复
有没有学校收留
已经有3人回复
吕小雨55
新虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 3438.1
- 散金: 50
- 帖子: 441
- 在线: 29.1小时
- 虫号: 4219035
- 注册: 2015-11-14
- 性别: GG
- 专业: 传热传质学
3楼2016-05-25 08:00:35
2楼2016-05-24 14:30:10
吕小雨55
新虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 3438.1
- 散金: 50
- 帖子: 441
- 在线: 29.1小时
- 虫号: 4219035
- 注册: 2015-11-14
- 性别: GG
- 专业: 传热传质学
4楼2016-05-25 08:01:04
5楼2016-05-25 08:10:11













回复此楼