- #1
greg_rack
Gold Member
- 363
- 79
I'm currently programming lots of physics simulators in DHTML, and my next step would be simulating a perfect gas behavior at a molecular point of view, bouncing inside of an HTML canvas.
For this reason, I came across "Maxwell-Boltzmann's law of distribution"(for speed, which I only studied last year without going deep into the function at all) to have the right molecules speed distribution depending on temperature(which on the simulator will be changing thanks to a slider, to see the consequent speeds variation), molecular mass and number of total molecules(which will be fixed instead).
I surfed a lot on the internet in these past few days trying to come up with a solution, but what I found are only loads of different equations and informations, that only ended up confusing me a lot more than they should.
Jumping to conclusions, I would be extremely grateful if you guys could explain me what this law's all about, and how to effectively simulate a perfect gas behavior.
Heartfelt thanks in advance for your answers ,
Greg.
For this reason, I came across "Maxwell-Boltzmann's law of distribution"(for speed, which I only studied last year without going deep into the function at all) to have the right molecules speed distribution depending on temperature(which on the simulator will be changing thanks to a slider, to see the consequent speeds variation), molecular mass and number of total molecules(which will be fixed instead).
I surfed a lot on the internet in these past few days trying to come up with a solution, but what I found are only loads of different equations and informations, that only ended up confusing me a lot more than they should.
Jumping to conclusions, I would be extremely grateful if you guys could explain me what this law's all about, and how to effectively simulate a perfect gas behavior.
Heartfelt thanks in advance for your answers ,
Greg.