| 7 | 1/1 | 返回列表 |
| 查看: 3138 | 回復(fù): 6 | ||
lythrumy銅蟲 (初入文壇)
|
[求助]
玻爾茲曼格子法與浸入邊界法結(jié)合(IB-LBM)插值問題 已有3人參與
|
|
哪位前輩指點(diǎn)下,在IB-LBM中,對(duì)受力和速度使用兩點(diǎn)插值,可是在一段程序中: // 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,不是直接向下取整就行了么? |
鐵蟲 (初入文壇)
銅蟲 (初入文壇)
新蟲 (初入文壇)
銅蟲 (正式寫手)
銅蟲 (正式寫手)
銅蟲 (正式寫手)

| 7 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 271求調(diào)劑 +3 | 勒布朗@ 2026-03-31 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 286求調(diào)劑 +6 | Faune 2026-03-30 | 6/300 |
|
|
[考研] 311求調(diào)劑一志愿合肥工業(yè)大學(xué) +9 | 秋二十二 2026-03-30 | 9/450 |
|
|
[考研] 理學(xué)07化學(xué) 303求調(diào)劑 +7 | 睿08 2026-03-27 | 7/350 |
|
|
[考研] 277跪求調(diào)劑 +8 | 1915668 2026-03-27 | 12/600 |
|
|
[考研] 334分 一志愿武理 材料求調(diào)劑 +16 | 李李不服輸 2026-03-26 | 16/800 |
|
|
[考研] 310求調(diào)劑 +10 | 爭(zhēng)取九點(diǎn)睡 2026-03-30 | 10/500 |
|
|
[考研] 283求調(diào)劑(080500) +14 | A child 2026-03-27 | 14/700 |
|
|
[考研] 332求調(diào)劑 +6 | Lyy930824@ 2026-03-29 | 6/300 |
|
|
[考研] 337求調(diào)劑 +6 | 《樹》 2026-03-29 | 6/300 |
|
|
[考研] 本科雙非材料,跨考一志愿華電085801電氣,283求調(diào)劑,任何專業(yè)都可以 +6 | 芝士雪baoo 2026-03-28 | 8/400 |
|
|
[考研] 材料與化工(0856)304求B區(qū)調(diào)劑 +8 | 邱gl 2026-03-27 | 8/400 |
|
|
[考研] 調(diào)劑 +3 | 好好讀書。 2026-03-28 | 3/150 |
|
|
[考研] 339求調(diào)劑,想調(diào)回江蘇 +6 | 烤麥芽 2026-03-27 | 8/400 |
|
|
[考研] 340求調(diào)劑 +5 | jhx777 2026-03-27 | 5/250 |
|
|
[考研] 352分 化工與材料 +5 | 海納百川Ly 2026-03-27 | 5/250 |
|
|
[考研] 085600,材料與化工321分,求調(diào)劑 +9 | 大饞小子 2026-03-27 | 9/450 |
|
|
[考研]
|
平樂樂樂 2026-03-26 | 4/200 |
|
|
[考研] 材料專碩 335 分求調(diào)劑 +4 | 拒絕冷暴力 2026-03-25 | 4/200 |
|
|
[考研] 296求調(diào)劑 +4 | 汪。! 2026-03-25 | 7/350 |
|