Skip to content

Allow other galaxy model #29

@Lecrapouille

Description

@Lecrapouille

Hi ! It could be interesting to customize the code to allow creating other galaxy models (By the way, I did not find how to create initial galaxy inside your menu):

Here is a version "interactions_anti_newton" with negative masses: https://www.januscosmologicalmodel.fr/post/janus (French site but with US papers)
https://github.com/Lecrapouille/Janus/blob/master/data/shaders/model.cl#L26-L82

Called here:
https://github.com/Lecrapouille/Janus/blob/master/src/Computer.cpp#L135-L156

Galaxy created here:
https://github.com/Lecrapouille/Janus/blob/master/src/Computer.cpp#L19-L55

Concerning colours: it is important to give one colour by type of mass (I do not remember: let say red for -1 and green for +1).

From what I understand also, "home-made" simulation missed modelling cloud of dust, that create stars which makes change the simulation. I'm not a maths guy.

AFAIK my GPU is too old (GT710) and OpenCL probably not enough optimized. I cannot have quick simulations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions