コンテンツにスキップ

4. アルゴン分子動力学

オリジナル$16.1324分34秒

2次元の箱の中で約600個のアルゴン原子が動きます。温度スライダーを動かすと、気体・液体・固体のあいだを行き来する様子が見られます。原子はLennard-Jonesポテンシャルと速度Verlet法で動いているだけで、相転移はプログラムされていません。

  • 約600個の原子。運動エネルギーで色分けされるので、熱が箱の中を伝わっていく様子が見える
  • 測定パネル:等分配則から出した瞬間温度、ビリアル定理から出した圧力、希薄になるほど1に近づくはずの PV/NkT、全エネルギーと開始時からのドリフト
  • 速度分布のヒストグラムを毎フレーム更新し、その温度でのマクスウェル・ボルツマン分布の解析曲線を重ねて描画。2%以内で一致するとパネルが緑になる
  • 温度スライダーで加熱・冷却、右の壁をピストンのようにドラッグして圧縮
  • 原子をクリックでタグ付けして軌跡を追跡
  • ボタンで急冷(クエンチ)し、結晶格子が核生成して成長する様子を観察
Show me a live molecular dynamics simulation of about six hundred argon atoms in a two-dimensional box, rendered like an elegant museum exhibit readable from across a room, where I can watch the substance move between gas, liquid and solid as I change the temperature.
Beside the box show a live measurement panel: instantaneous temperature computed from the average kinetic energy by equipartition, pressure computed from the virial theorem, the ratio PV/NkT which should approach one as the gas gets dilute, and total energy with its drift since start; also draw a histogram of the atoms' speeds updating every frame with the analytic Maxwell–Boltzmann curve for the current temperature drawn over it, and highlight the panel green when the measured distribution matches the curve within two percent.
Let me drag a temperature slider to heat and cool the box, drag the right wall like a piston to compress it, click an atom to tag it and trace its path, and press a button to quench the system instantly so I can watch a crystal lattice nucleate and grow.
Move every atom with a real Lennard-Jones potential and velocity Verlet integration, never with scripted animations or preset states — the phase changes must emerge from the physics alone. Draw the atoms with soft glowing edges and faint motion trails on a dark background, colour them by kinetic energy so heat visibly flows through the box, run at 60 fps, and build it as one self-contained HTML file with no external libraries or assets.
項目トークン料金
入力1,832$0.02
出力205,310$10.27
キャッシュ書き込み301,662$3.77
キャッシュ読み込み8,311,888$2.08
合計8,820,692$16.13

所要時間 24分34秒 / モデル claude-fable-5-1