スキップしてメイン コンテンツに移動

投稿

11月, 2013の投稿を表示しています

javascriptで流体シミュレーション

流体シミュレーションをJavascriptのcanvasを用いて実装してみた。 http://183.181.8.119/test/js/027/ 流体シミュレーションの手法は複数存在する。今回はJavascriptで動作することを考慮し、計算量の観点で SPH(Smoothing Particle Hydrodynamics)を採用した。SPH は一定量の粒子の集合を点に置き換え、点に働く力(重力、反発力、など)をシミュレーションする。 参考文献 SPH Simulation of River Ice Dynamics https://graphics.ethz.ch/~sobarbar/papers/Sol10b/Sol10b.pdf Interactive SPH Simulation and Rendering on the GPU https://graphics.ethz.ch/~sobarbar/papers/Sol10b/Sol10b.pdf Two-way coupled SPH and particle level set fluid simulation http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.220.8275&rep=rep1&type=pdf Smoothed particle hydrodynamics (SPH): an overview and recent developments http://www.ase.uc.edu/~liugr/Publications/Journal%20Papers/2010/JA_2010_05.pdf