| 查看: 3374 | 回复: 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,不是直接向下取整就行了么? |
» 猜你喜欢
中国机械工业科学技术奖含金量,好获奖吗?
已经有1人回复
日内瓦国际发明展没有转化,只有论文能报吗?必须线下参加吗?
已经有0人回复
物理学I论文润色/翻译怎么收费?
已经有278人回复
想投稿的来!
已经有0人回复
2027博士申请
已经有3人回复
华中科技大学集成电路学院招2027年博士研究生
已经有0人回复
华中科技大学陈实教授招2027年博士研究生
已经有37人回复
求英文歌,谢谢您。
已经有1人回复
蔡鹏课题组招收优秀硕士/博士研究生
已经有11人回复
澳门大学 应用物理及材料工程研究院 潘晖教授课题组诚招博士后
已经有14人回复
唐松磊
铜虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 1609.7
- 散金: 485
- 红花: 1
- 沙发: 2
- 帖子: 829
- 在线: 33.7小时
- 虫号: 6446859
- 注册: 2017-05-04
- 性别: GG
- 专业: 固体力学
6楼2018-11-30 11:41:20
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









回复此楼