コンテンツにスキップ

3. 4ストロークエンジン

公式デモ 3$14.5729分01秒音が出ます

4ストロークエンジンのカットモデルが動き、熱力学がその場で計算されます。燃料が燃え、ピストンに圧力がかかり、トルクが生まれ、排気の脈動がそのままエンジン音になります。横に描かれるP-V線図(圧力-体積線図)は、囲まれた面積をその場で積分して、1サイクルあたりの仕事量を出しています。

  • ピストン・コンロッド・クランクシャフト・バルブの開閉・点火プラグの火花と燃焼まで描いた大きなカットモデルのアニメーション
  • 燃焼・ピストンにかかる圧力・トルクをライブで計算
  • 排気の脈動をエンジン音に変換して再生
  • P-V線図をリアルタイムで描画し、囲まれた面積を積分して1サイクルの仕事量を算出
  • スロットルのスライダー、回転数(RPM)表示、1気筒/4気筒/8気筒の切り替え
Build me an interactive, visually stunning simulation of a four-stroke car engine, from first principles.
Compute the thermodynamics live: fuel burning, pressure on the pistons, torque, and the exhaust pulses turned into engine sound.
Draw the engine as a big animated cutaway — pistons, connecting rods, crankshaft, valves opening and closing, the spark and the flame — and show the pressure–volume loop being drawn in real time next to it, with the work per cycle integrated live from the area inside the loop.
Give me a throttle slider, an RPM readout, and a way to switch between 1, 4 and 8 cylinders, and make it beautiful.
Build it as a single HTML file with no external libraries, make it run at 60 fps, and keep the code clean and correct so it works perfectly the first time it is opened.
項目トークン料金
入力1,834$0.02
出力208,615$10.43
キャッシュ書き込み211,667$2.65
キャッシュ読み込み5,884,710$1.47
合計6,306,826$14.57

所要時間 29分01秒 / モデル claude-fable-5-1