| 查看: 479 | 回复: 0 | ||
希特勒伟大新虫 (初入文坛)
|
[求助]
跪求解答
|
|
一个正方形区域 充满空气 中间圆形区域充满水 模拟气液传质 请问udf怎么编写 气相和液相用define source 以下是气相的udf #include "udf.h" #include "sg.h" #include "sg_mphase.h" #include "flow.h" #include "mem.h" #include "metric.h" DEFINE_SOURCE(mass_liquid_source, cell, thread_liquid, dS, eqn) /* liquid相组分的传质源项 */ { real source, m0_gas, m0_liquid, m1_gas, m1_liquid; cell_t cell_gas; Thread *mixture_thread ,*thread_gas; mixture_thread = THREAD_SUPER_THREAD(thread_liquid); thread_gas = THREAD_SUB_THREAD(mixture_thread, 0); begin_c_loop(cell,mixture_thread) { if (C_VOF(cell,thread_gas)>0 && C_VOF(cell,thread_liquid) <1) /*相界面*/ source = -C_R(cell,thread_liquid)*C_VOF(cell,thread_liquid)/CURRENT_TIMESTEP ;; /* 传质源项,单位 kg/m3-s */ else /* 非相界面 */ source = 0.0; /* 传质源项为0 */ } end_c_loop(cell,mixture_thread) dS[eqn] = 0.0; return source; } |
» 猜你喜欢
如何从铁电相到顺电相。
已经有1人回复
各位大佬,求一份最新Wien2k版本作为学习用途
已经有0人回复
物理学I论文润色/翻译怎么收费?
已经有173人回复
南科大活性流体和软物质课题组诚招2027级博士、硕士研究生和博后
已经有42人回复
瑞典林雪平大学博士后招聘|PEC Water Splitting 方向
已经有24人回复
PRB投稿,Acknowledgment sent to author状态十天了
已经有3人回复
PVA溶解
已经有2人回复
基金申请
已经有44人回复
CSC与新西兰维多利亚大学PhD奖学金项目
已经有0人回复
新西兰Robinson研究所 招聘CSC公派访问人员
已经有0人回复
帮我的英语口语老师找学生
已经有0人回复











回复此楼
50