-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temperature #70
Comments
My idea for the implementation is like this: The problem with just adding a temperature field to the atoms is that if we want to update the temperature we would need to keep a lot of atoms "awake", that would drastically affect performance negatively. But temperature spreading is not something that makes particles move, so we can probably use a compute shader to do that, that way we can make it awake only the particles that change state, and by having this separate simulation we can probably have some nice thermodynamics without damaging performance. It would also spread temperature on a vast portion of the map without problems. References: https://github.com/bevyengine/bevy/blob/main/examples/shader/compute_shader_game_of_life.rs |
We can maybe also use a similar system to implement how fluids(gas/liquids) dissolve into each other. |
Another resource: https://thermtest.com/what-is-thermal-conductivity |
Thermodynamic simulation will be awesome! So that we can have rocks melt, water freeze, etc
We probably want to add #52 first
The text was updated successfully, but these errors were encountered: