| 查看: 3064 | 回复: 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人回复
求标准粉末衍射卡号 ICDD 01-076-1802
已经有0人回复
物理学I论文润色/翻译怎么收费?
已经有68人回复
新西兰Robinson研究所招收全奖PhD
已经有0人回复
石墨烯转移--二氧化硅衬底石墨烯
已经有0人回复
笼目材料中量子自旋液体基态的证据
已经有0人回复
数学教学论硕士可以读数学物理博士吗?
已经有0人回复
德国亥姆霍兹Hereon中心汉堡分部招镁合金腐蚀裂变SCC课题方向2026公派博士生
已经有4人回复
澳门大学 应用物理及材料工程研究院 潘晖教授课题组诚招博士后
已经有11人回复
2楼2016-11-17 20:57:32
bubblestar
铜虫 (初入文坛)
- 应助: 0 (幼儿园)
- 金币: 466.8
- 散金: 9
- 红花: 1
- 帖子: 42
- 在线: 11.1小时
- 虫号: 4593406
- 注册: 2016-04-16
- 专业: 多相流热物理学
3楼2017-02-24 10:10:00
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
唐松磊
铜虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 1609.7
- 散金: 485
- 红花: 1
- 沙发: 2
- 帖子: 829
- 在线: 33.6小时
- 虫号: 6446859
- 注册: 2017-05-04
- 性别: GG
- 专业: 固体力学
6楼2018-11-30 11:41:20
janeloveben
铜虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 2559.8
- 散金: 5
- 红花: 1
- 帖子: 699
- 在线: 39.8小时
- 虫号: 4009477
- 注册: 2015-08-06
- 性别: GG
- 专业: 机械测试理论与技术

7楼2019-02-28 19:36:49












回复此楼