Hoshi Kazuma
unread,Aug 1, 2013, 9:57:43 PM8/1/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openac...@googlegroups.com
はじめまして,星と申します。
プログラム5-13(p113)は,特に境界条件を設定してませんね。
この場合,粒子速度 (プログラムではUx, Uy) が更新されるかポイントです。
プログラム5-13では,
Ux[0, y](四角の下辺)
Ux[41,y](四角の上辺)
Uy[x, 0](四角の左辺)
Uy[x,31](四角の右辺)
の全てが0のまま更新されません。よって四辺は,全て空気の粒子が動かない辺,すなわち剛壁とみなされます。
プログラム中の
<pre>
for n in range(5000)
</pre>
繰り返し数5000を500から1000まで,徐々に変化させながら音波の進行を見ると,固定端反射していることが確認できます。
是非お試しください。