| 查看: 1108 | 回复: 2 | ||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | ||
[求助]
fluent udf 中一个语句不懂 求指点 已有1人参与
|
||
|
今天看了fluent udf的一个例子:DEFINE_PROFILE(scalarMixedBC, thread, nv) { /* constants must be specified correctly for the mixed BC */ real hC, PHI1_inf; /* ==================== */ face_t f; real A[ND_ND], dG[ND_ND], dr0[ND_ND], es[ND_ND], dr, A_by_es; real Af; real beta0, gamma; real temp1, temp2; Thread *t0=thread->t0; hC=20.0; PHI1_inf=550.0; begin_f_loop(f, thread) { /* identify the cell thread adjacent to the face thread f */ cell_t c0 = F_C0(f, thread); BOUNDARY_FACE_GEOMETRY(f, thread, A, dr, es, A_by_es, dr0); Af=NV_MAG(A); gamma=C_UDSI_DIFF(c0, t0, phi1); if (NULLP(T_STORAGE_R_NV(t0, SV_UDSI_G(phi1)))) beta0=0; /* if gradient is not allocated and stored yet, bypass the following macro (it happens when case/data files are being read */ else BOUNDARY_SECONDARY_GRADIENT_SOURCE(beta0, SV_UDSI_G(phi1),dG, es, A_by_es, gamma); /* temporary variables used in the profile expression */ temp1=gamma*A_by_es/dr; temp2=hC*Af; F_PROFILE(f, thread, nv) = (temp1*C_UDSI(c0, t0, phi1)- beta0 + temp2*PHI1_inf)/(temp2 + temp1); } end_f_loop(f, thread) } Thread *t0=thread->t0; 这一行是啥意思 真是搞不懂,希望哪位大神能指点一下。 |
» 猜你喜欢
投稿chemical physical letters不送审?
已经有2人回复
南开大学物理学院张书辉副教授招收凝聚态物理理论方向博士生、硕士生
已经有22人回复
物理学I论文润色/翻译怎么收费?
已经有232人回复
杂志要求提供official language-editing certificate
已经有4人回复
深圳大学2026年秋博士招生-物理学-活性胶体方向-高永祥课题组
已经有16人回复
论物质与能量的统一模型及物理现象解释
已经有0人回复
基于基元I统一理论的数学相关应用推导
已经有0人回复
基元I统一理论:宇宙本质、层级演化与修炼文明的本源规律
已经有1人回复
基元I理论下三大核心空间现象精准推导与细节解析
已经有0人回复
基于基元 I 统一理论的反重力理论推导
已经有0人回复
基于基元I统一理论的量子力学本源推导
已经有0人回复
3楼2016-12-02 08:34:20
poptiger
银虫 (小有名气)
- 应助: 4 (幼儿园)
- 金币: 571.9
- 散金: 21
- 帖子: 121
- 在线: 18.8小时
- 虫号: 793516
- 注册: 2009-06-13
- 性别: GG
- 专业: 机械工程

2楼2016-11-10 10:45:40













回复此楼