| 7 | 1/1 | 返回列表 |
| 查看: 3137 | 回復(fù): 6 | ||
lythrumy銅蟲 (初入文壇)
|
[求助]
玻爾茲曼格子法與浸入邊界法結(jié)合(IB-LBM)插值問題 已有3人參與
|
|
哪位前輩指點(diǎn)下,在IB-LBM中,對受力和速度使用兩點(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ā)表 | |
|---|---|---|---|---|
|
[考研] 一志愿華東理工大學(xué),080500學(xué)碩,317分,求調(diào)劑 +3 | s1145 2026-03-31 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 285求調(diào)劑 +6 | AZMK 2026-03-30 | 10/500 |
|
|
[考研] 320分,材料與化工專業(yè),求調(diào)劑 +10 | 一定上岸aaa 2026-03-27 | 14/700 |
|
|
[考研] 085600,專業(yè)課化工原理,320分求調(diào)劑 +6 | 大饞小子 2026-03-29 | 6/300 |
|
|
[考研] 環(huán)境工程 085701,267求調(diào)劑 +11 | minht 2026-03-29 | 11/550 |
|
|
[考研] 309求調(diào)劑 +15 | 誰不是少年 2026-03-29 | 15/750 |
|
|
[考研] 289求調(diào)劑 +16 | 新時(shí)代材料 2026-03-27 | 16/800 |
|
|
[考研] 材料專碩 085600求調(diào)劑 +7 | BBQ233 2026-03-30 | 7/350 |
|
|
[碩博家園] 求調(diào)劑 有機(jī)化學(xué)考研356分 +10 | Nadiums 2026-03-25 | 11/550 |
|
|
[考研] 求化學(xué)調(diào)劑 +11 | wulanna 2026-03-28 | 11/550 |
|
|
[考研] 290求調(diào)劑 +3 | dfffsar 2026-03-29 | 3/150 |
|
|
[考研] 327求調(diào)劑 +6 | 汲亦昊 2026-03-29 | 6/300 |
|
|
[考研] 329求調(diào)劑 +10 | 鈕恩雪 2026-03-25 | 10/500 |
|
|
[考研] 2026年華南師范大學(xué)歡迎化學(xué),化工,生物,生醫(yī)工等專業(yè)優(yōu)秀學(xué)子加入! +3 | llss0711 2026-03-28 | 6/300 |
|
|
[考研] 本科雙非材料,跨考一志愿華電085801電氣,283求調(diào)劑,任何專業(yè)都可以 +6 | 芝士雪baoo 2026-03-28 | 8/400 |
|
|
[考研] 求調(diào)劑 +6 | 蘆lty 2026-03-25 | 7/350 |
|
|
[考研] 352分 化工與材料 +5 | 海納百川Ly 2026-03-27 | 5/250 |
|
|
[考研] 一志愿211院校 344分 東北農(nóng)業(yè)大學(xué)生物學(xué)學(xué)碩,求調(diào)劑 +5 | 丶風(fēng)雪夜歸人丶 2026-03-26 | 8/400 |
|
|
[考研] 085601求調(diào)劑總分293英一數(shù)二 +4 | 鋼鐵大炮 2026-03-24 | 4/200 |
|
|
[考研] 【2026考研調(diào)劑】制藥工程 284分 求相關(guān)專業(yè)調(diào)劑名額 +4 | 袁奐奐 2026-03-25 | 8/400 |
|