| 查看: 2117 | 回复: 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) } |
» 猜你喜欢
招博士
已经有3人回复
存款400万可以在学校里躺平吗
已经有35人回复
为什么nbs上溴 没有产物点出现呢
已经有8人回复
最失望的一年
已经有18人回复
拟解决的关键科学问题还要不要写
已经有9人回复
求推荐博导
已经有4人回复
求助一下有机合成大神
已经有4人回复
求推荐英文EI期刊
已经有5人回复
26申博
已经有3人回复
基金委咋了?2026年的指南还没有出来?
已经有10人回复
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













回复此楼
