| 查看: 4381 | 回复: 15 | |||
[求助]
最基础的UDF问题:Fluent算例完成后,后处理时为什么无法显示UDM的云图?已有3人参与
|
|||
资料 |
» 猜你喜欢
申请2026年博士
已经有5人回复
天津工业大学郑柳春团队欢迎化学化工、高分子化学或有机合成方向的博士生和硕士生加入
已经有5人回复
寻求一种能扛住强氧化性腐蚀性的容器密封件
已经有6人回复
到新单位后,换了新的研究方向,没有团队,持续积累2区以上论文,能申请到面上吗
已经有6人回复
2025冷门绝学什么时候出结果
已经有7人回复
请问有评职称,把科研教学业绩算分排序的高校吗
已经有6人回复
Bioresource Technology期刊,第一次返修的时候被退回好几次了
已经有7人回复
请问哪里可以有青B申请的本子可以借鉴一下。
已经有4人回复
请问下大家为什么这个铃木偶联几乎不反应呢
已经有5人回复
康复大学泰山学者周祺惠团队招收博士研究生
已经有6人回复
» 本主题相关价值贴推荐,对您同样有帮助:
Fluent中 UDF ADJUST 宏链接问题
已经有7人回复
Fluent中编写UDF之后无法初始化。。。
已经有5人回复
用uds求解如下的问题为什么不收敛啊。谢谢!
已经有17人回复
全部身家求大神帮忙解决fluent压力脉冲怎么编写UDF的问题
已经有8人回复
fluent计算多相流问题时,UDF能否提取单元内分相速度,以及单元平均速度
已经有5人回复
udf 用source加源项总是失败,是什么原因?
已经有3人回复
好心人帮帮忙吧,为什么这个UDF导入fluent以后,在边界条件处没有显示~~~
已经有17人回复
3楼2014-08-30 23:41:23
2楼2014-08-30 21:08:28
死天
专家顾问 (著名写手)
-

专家经验: +60 - 应助: 399 (硕士)
- 金币: 3648.9
- 红花: 89
- 帖子: 1336
- 在线: 443.8小时
- 虫号: 2643057
- 注册: 2013-09-09
- 专业: 流体力学
- 管辖: 仿真模拟
4楼2014-08-31 09:45:16
5楼2014-09-01 11:04:47
|
/********************************************************************** UDF to calculate temperature field function and store in user-defined memory. Also print min, max, avg temperatures. ***********************************************************************/ #include "udf.h" #include "mem.h" DEFINE_ON_DEMAND(on_demand_calc) { Domain *d; /* declare domain pointer since it is not passed as an argument to the DEFINE macro */ real uavg = 0.; real umax = 0.; real umin = 0.; real temp,volume,vol_tot; Thread *t; cell_t c; d = Get_Domain(1); /* Get the domain using ANSYS Fluent utility */ /* Loop over all cell threads in the domain */ thread_loop_c(t,d) { /* Compute max, min, volume-averaged temperature */ /* Loop over all cells */ begin_c_loop(c,t) { volume = C_VOLUME(c,t); /* get cell volume */ temp = C_U(c,t); /* get cell temperature */ if (temp < umin || umin == 0.) umin = temp; if (temp > umax || umax == 0.) umax = temp; vol_tot += volume; uavg += temp*volume; } end_c_loop(c,t) uavg /= vol_tot; printf("\n Umin = %g Umax = %g Uavg = %g\n",umin,umax,uavg); /* Compute temperature function and store in user-defined memory*/ /*(location index 0) */ begin_c_loop(c,t) { C_UDMI(c,t,0) = C_DUDY(c,t); } end_c_loop(c,t) } } 您好,想用这个程序算速度U对y的导数,可是挂到Fluent上还是没显示,值都为0,求解释? |
6楼2014-09-01 11:15:26
7楼2014-09-01 11:47:10
死天
专家顾问 (著名写手)
-

专家经验: +60 - 应助: 399 (硕士)
- 金币: 3648.9
- 红花: 89
- 帖子: 1336
- 在线: 443.8小时
- 虫号: 2643057
- 注册: 2013-09-09
- 专业: 流体力学
- 管辖: 仿真模拟
8楼2014-09-01 16:08:50
lhy3120
金虫 (小有名气)
- 应助: 1 (幼儿园)
- 金币: 1133.4
- 帖子: 165
- 在线: 149.2小时
- 虫号: 3062371
- 注册: 2014-03-17
- 性别: GG
- 专业: 高电压与绝缘

9楼2015-03-20 17:01:32

10楼2015-05-30 17:43:18













回复此楼
lianghui0