Add type for star with Janus cosmological law#18
Open
cittadhammo wants to merge 8 commits into
Open
Conversation
Author
|
OK, I manage to add two different colours and have some preliminary result ;-) Je vois que quelqu'un a eu la même ideé ;-) https://github.com/Lecrapouille/Janus |
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.


This is the result after my message below.
There are two constants of proportionality that regulate the law.
I was not able to give two different colors to different types of stars.
J'ai réussi à compiler et construire votre projet de simulation de galaxies.
Je suis intéressé à modifier le code pour y inclure deux types de masse en accord avec le modèle cosmologique Janus. (voir PDF pour détail sur Arxiv.org ou ResearchGate ). C'est assez simple à modéliser et j'aimerais essayer avec votre simulateur.
Il suffirait d'ajouter un type aux masses : positive ou négative.
Celles de même signe subissent la force gravitationnelle normale, celle de signes opposés se repoussent à l'opposé de la force gravitationnelle normal. (il y aurait surement des constantes de proportionnalité dans les forces à intégrer aussi)
Idéalement, on pourrait avoir les deux de deux couleurs différentes.
Le premier scénario serait de simplement mélanger aléatoirement une proportion des masses pour en avoir de type négative.
Le deuxième scénario intéressant serait d'avoir une distribution sphérique négative autour d'un noyau positif.
J'ai commencé à modifier votre code, mais les calculs se font dans les shaders et je suis un novice en OpenCL et en C++. Je vois bien qu'il faut ajouter de nouveau "Computer::types_buffer", mais un peu d'aide serait la bienvenue si ça vous intéresse pour faire la suite ;-).
Avec toute ma bienveillance,
Cittadhammo