Add repulsion simulation #59
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Because my goal with this project is quite ambitious and my knowledge regarding physics is hugely scarce, I think that one of the best ways to get better in it is to experiment. This PR adds a framework,
LaboratoryKit, unrelated to the API or user-facing features of Deus, in which I intend to replicate physics experiments to — most importantly — learn a certain concept, ranging from general to more specific ones (such as those of quantum mechanics).In the framework itself, the first experiment is a simulation of repulsion of particles. This is an interesting one, given that it is my first time doing any kind of simulation (which is funny, given the nature of this project). The implementation is in SwiftUI, but was inspired by the simulator by Tatum Roaquim.
This is just the start of experimentation in Deus. An experiment I would like to simulate here is, also, the double-slit experiment. The ultimate aim is to do it quantum-mechanically; it may be better, however, to first do it like I made this repulsion one: directly, classically.