| 查看: 3110 | 回复: 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,不是直接向下取整就行了么? |
» 猜你喜欢
基元I理论下三大核心空间现象精准推导与细节解析
已经有0人回复
基于基元 I 统一理论的反重力理论推导
已经有0人回复
物理学I论文润色/翻译怎么收费?
已经有249人回复
基于基元I统一理论的量子力学本源推导
已经有1人回复
推荐一款可以AI辅助写作的Latex编辑器SmartLatexEditor,超级好用,AI润色,全免费
已经有20人回复
【EI|Scopus 双检索】第六届智能机器人系统国际会议(ISoIRS 2026)
已经有0人回复
2026年第四届电动车与车辆工程国际会议(CEVVE 2026)
已经有0人回复
唐松磊
铜虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 1609.7
- 散金: 485
- 红花: 1
- 沙发: 2
- 帖子: 829
- 在线: 33.6小时
- 虫号: 6446859
- 注册: 2017-05-04
- 性别: GG
- 专业: 固体力学
5楼2018-11-30 11:39:42
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













回复此楼