Page 1 of 1

How to include general relativity in the code?

Posted: Thu Feb 15, 2018 10:34 pm
by ahmedkq
When I start GR I have to load the code first then to switch on the GR option from setup. I am asking how to start directly with GR (and light speed value) such that it is already included in the code?

Re: How to include general relativity in the code?

Posted: Sun Mar 18, 2018 5:39 pm
by testtubegames
Good question - just write this for the settings in the code:

_settings(gravity: GR (c=31));

with c being whatever speed you'd like.

Re: How to include general relativity in the code?

Posted: Sun Apr 08, 2018 2:11 am
by ahmedkq
Many Thanks for the useful answer :)

Re: How to include general relativity in the code?

Posted: Thu Feb 07, 2019 10:56 am
by Coggan
I may play around with general relativity too. Is speed value of 31 what you recommend to use or was that just an example?

Re: How to include general relativity in the code?

Posted: Thu Feb 07, 2019 3:02 pm
by testtubegames
That's just an example -- the default value is 30. Which seems to work well for the various masses and densities normally used in the sim. But it's interesting, too, to play around with it and see what happens. What if light were *really* slow, for instance.

(hmm, no velocity raptor emoji, that's quite an oversight)