| 查看: 2135 | 回复: 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) } |
» 猜你喜欢
情人节自我反思:在爱情中有过遗憾吗?
已经有11人回复
体制内长辈说体制内绝大部分一辈子在底层,如同你们一样大部分普通教师忙且收入低
已经有12人回复
过年走亲戚时感受到了所开私家车的鄙视链
已经有9人回复
今年春晚有几个节目很不错,点赞!
已经有10人回复
基金正文30页指的是报告正文还是整个申请书
已经有5人回复
8楼2016-05-26 14:19:14
2楼2016-05-24 14:30:10
吕小雨55
新虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 3438.1
- 散金: 50
- 帖子: 441
- 在线: 29小时
- 虫号: 4219035
- 注册: 2015-11-14
- 性别: GG
- 专业: 传热传质学
3楼2016-05-25 08:00:35
吕小雨55
新虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 3438.1
- 散金: 50
- 帖子: 441
- 在线: 29小时
- 虫号: 4219035
- 注册: 2015-11-14
- 性别: GG
- 专业: 传热传质学
4楼2016-05-25 08:01:04
5楼2016-05-25 08:10:11
吕小雨55
新虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 3438.1
- 散金: 50
- 帖子: 441
- 在线: 29小时
- 虫号: 4219035
- 注册: 2015-11-14
- 性别: GG
- 专业: 传热传质学
6楼2016-05-25 18:55:23
吕小雨55
新虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 3438.1
- 散金: 50
- 帖子: 441
- 在线: 29小时
- 虫号: 4219035
- 注册: 2015-11-14
- 性别: GG
- 专业: 传热传质学
7楼2016-05-25 19:00:54
吕小雨55
新虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 3438.1
- 散金: 50
- 帖子: 441
- 在线: 29小时
- 虫号: 4219035
- 注册: 2015-11-14
- 性别: GG
- 专业: 传热传质学
9楼2016-05-27 08:10:23
10楼2017-02-28 10:54:29













回复此楼
