| 查看: 1485 | 回复: 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; } |
» 猜你喜欢
085600材料与化工 求调剂
已经有11人回复
080500,材料学硕302分求调剂学校
已经有5人回复
304求调剂
已经有5人回复
复试调剂
已经有11人回复
材料工程327求调剂
已经有3人回复
中科大材料与化工319求调剂
已经有3人回复
本科南京大学一志愿川大药学327
已经有3人回复
材料与化工 323 英一+数二+物化,一志愿:哈工大 本人本科双一流
已经有5人回复
化学调剂0703
已经有5人回复
调剂
已经有6人回复
2楼2021-06-19 18:39:17
3楼2021-06-21 11:58:48













回复此楼