| 查看: 3074 | 回复: 6 | ||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | ||
[求助]
玻尔兹曼格子法与浸入边界法结合(IB-LBM)插值问题 已有3人参与
|
||
|
哪位前辈指点下,在IB-LBM中,对受力和速度使用两点插值,可是在一段程序中: // Identify the lowest fluid lattice node in interpolation range. // 'Lowest' means: its x- and y-values are the smallest. // The other fluid nodes in range have coordinates // (x_int + 1, y_int), (x_int, y_int + 1), and (x_int + 1, y_int + 1). int x_int = (int)(particle.node[n].x - 0.5 + Nx) - Nx; int y_int = (int)(particle.node[n].y + 0.5); // Run over all neighboring fluid nodes. // In the case of the two-point interpolation, it is 2x2 fluid nodes. for (int X = x_int; X <= x_int + 1; ++X) { for (int Y = y_int; Y <= y_int + 1; ++Y) { // Compute distance between object node and fluid lattice node. const double dist_x = particle.node[n].x - 0.5 - X; const double dist_y = particle.node[n].y + 0.5 - Y; 为什么X方向要-0.5,Y方向要+0.5,不是直接向下取整就行了么? |
» 猜你喜欢
笼目材料中量子自旋液体基态的证据
已经有0人回复
数学教学论硕士可以读数学物理博士吗?
已经有0人回复
物理学I论文润色/翻译怎么收费?
已经有81人回复
德国亥姆霍兹Hereon中心汉堡分部招镁合金腐蚀裂变SCC课题方向2026公派博士生
已经有4人回复
澳门大学 应用物理及材料工程研究院 潘晖教授课题组诚招博士后
已经有11人回复
求助NH4V4O10晶体的CIF文件
已经有0人回复
英国全奖博士招聘-深度学习与量子物理
已经有0人回复
间接带隙半导体有效质量求助
已经有1人回复
投稿chemical physical letters不送审?
已经有2人回复
南开大学物理学院张书辉副教授招收凝聚态物理理论方向博士生、硕士生
已经有20人回复
杂志要求提供official language-editing certificate
已经有2人回复
bubblestar
铜虫 (初入文坛)
- 应助: 0 (幼儿园)
- 金币: 466.8
- 散金: 9
- 红花: 1
- 帖子: 42
- 在线: 11.1小时
- 虫号: 4593406
- 注册: 2016-04-16
- 专业: 多相流热物理学
3楼2017-02-24 10:10:00
2楼2016-11-17 20:57:32
4楼2017-10-09 14:14:21
唐松磊
铜虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 1609.7
- 散金: 485
- 红花: 1
- 沙发: 2
- 帖子: 829
- 在线: 33.6小时
- 虫号: 6446859
- 注册: 2017-05-04
- 性别: GG
- 专业: 固体力学
5楼2018-11-30 11:39:42













回复此楼