Add repulsion simulation#59
Merged
Merged
Conversation
Mainly targeted at SwiftUI views right now, of which there are not that much in the project currently. As we create more of them and they get more complex, the current formatting would make them harder to read. This is not perfect, though, and a context-specific solution has been suggested in swiftlang/swift-format#543.
5e96b8b to
6d3b91d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.