| 查看: 1614 | 回复: 2 | ||
| 【悬赏金币】回答本帖问题,作者Kellyshuo将赠送您 35 个金币 | ||
[求助]
fluent UDF源项编译通过后,初始化闪退,求大佬指点一二 已有1人参与
|
||
|
源项文件编译通过后,fluent初始化闪退代码见下: #include "udf.h" #include "math.h" #define pre_exp 1.12e-05 #define active 29.16e+03 #define r 8.314 #define l 30e-06 #define mh2 2 define_source(h2_membrane_mass,c,t,ds,eqn) { real a[nd_nd]; real source; real pr,pm,t; real vol0,area0; real vol1,area1; face_t f; real id = 3.0 ; domain *d = get_domain(1); thread *thread_mem_f = lookup_thread(d,id); cell_t c0 = f_c0(f,thread_mem_f); cell_t c1 = f_c1(f,thread_mem_f); thread *tc0 = thread_t0(thread_mem_f); thread *tc1 = thread_t1(thread_mem_f); vol0 = c_volume(c0,tc0); f_area(a,f,tc0); area0 = nv_mag(a); t = c_t(c0,tc0); pr = c_p(c0,tc0) + 101325; pm = c_p(c1,tc1) + 101325; source = - area0*mh2*pre_exp*exp(-active/t)/(vol0*l)*(sqrt(pr)-sqrt(pm)); return source; } |
» 猜你喜欢
售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急
已经有8人回复
售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急
已经有4人回复
什么时候能放榜呀?
已经有3人回复
一个有机合成实验室都需要哪些设备?
已经有8人回复
UV压敏胶开发
已经有5人回复
面上提前没消息,有中的吗
已经有16人回复
面上再次挂了,太难了,躺也躺不了,倦也卷不过,小学校之殇!
已经有25人回复
2026年国自然面上资助率
已经有22人回复
基础研究怎么拉横向,学校到款任务越来越多,难以完成 拉横向,都有哪些途径啊
已经有12人回复
微信指数没变化,科研之友没阅读
已经有19人回复
2楼2021-06-19 18:39:17
3楼2021-06-21 11:58:48










回复此楼