Computing trajectories in Schwarzschild spacetime

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
35 replies · 8K views
I saw that but wasn't sure if that was for the orbit model code or just required boilerplate for distributing anything running Java.
 
Physics news on Phys.org
Jimster41 said:
I saw that but wasn't sure if that was for the orbit model code or just required boilerplate for distributing anything running Java.

It's an open-source license. There is no such license required for java code in general.
 
  • Like
Likes   Reactions: Jimster41
Jimster41 said:
Question about copyright.
I downloaded the source for this simulator from github. Is this code I can play with? I assumed some copyright, yours, by default. But then I've never heard of github, and got the idea it was considered open source. I'm pretty good with C#, and I code with it often (in application/algorithm contexts, not as a pure developer), but I'm pretty new(100%noob) to java. I made some changes and was having no luck saving them. I assumed because I am a doof with java. But then I thought I better check to be sure that I wasn't misunderstanding the copyright context (and my saves weren't working because it was locked).

Actually it is JavaScript, not Java. JavaScript can have objects see here for instance https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript
I downloaded the zip file from github and the code is working locally in FireFox. I'm still impressed.
 
Last edited:
Mentz114 said:
Actually it is JavaScript, not Java. JavaScript can have objects see here for instance https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript
I downloaded the zip file from github abd the code is working locally in FireFox. I'm still impressed.

I was able to run it no problem after the download. Just trying to figure out how to monkey around with the pieces. Thank s for the ref. I've got a good book and I'm pretty familiar with OO architecture, just not HTML, or CSS, or .JS. I've been working in a proprietary environment for... Too long. Its all drag and drop, with bits of custom C#. Lost my skillz.
 
Jimster41 said:
I was able to run it no problem after the download. Just trying to figure out how to monkey around with the pieces. Thank s for the ref. I've got a good book and I'm pretty familiar with OO architecture, just not HTML, or CSS, or .JS. I've been working in a proprietary environment for... Too long. Its all drag and drop, with bits of custom C#. Lost my skillz.

OK, you'll soon get familiar with Javascript. It's easy and pretty 'fiendly'.

I've changed some colours and I'm going to lay out the screen differently and add a trace list to log (say) the differences between succesive ##\phi_{min}## values to get the precession of the major axis.

All good fun ...
 
I was away yesterday, but glad to see you have all got it working. BTW I consider the program finished in terms of what I set out to do, so feel free to fork/fix/improve as you wish, it's GPL after all ;).
 
  • Like
Likes   Reactions: bcrowell