Welcome, Guest

Author Topic: Cancri 55  (Read 9714 times)

tony873004

  • **
  • Posts: 10
Cancri 55
« on: July 11, 2008, 09:07:16 PM »
Hi, Dan,
I can't get this to work.  This is the Cancri 55 system translated from Gravity Simulator.  Maybe I'm using the wrong units.  When I run it, my star says its mass is 0 even though I give it mass in this file.  I'm using Earth masses, meters, meters/second.

Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<System xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Body>
        <Object>Cancri55</Object>
        <PositionX> .345322894982861</PositionX>
        <PositionY> .530559374647256</PositionY>
        <PositionZ> 0</PositionZ>
        <VelocityX> 1.32801304314968E-02</VelocityX>
        <VelocityY> 2.04075429997798E-02</VelocityY>
        <VelocityZ> 0</VelocityZ>
        <Name>Cancri55</Name>
        <Mass> 307166.919879134</Mass>
        <Diameter> 1392000000</Diameter>
    </Body>
    <Body>
        <Object>Planet c</Object>
        <PositionX> 26200358064.5108</PositionX>
        <PositionY> 24552261459.9653</PositionY>
        <PositionZ> 0</PositionZ>
        <VelocityX>-36771.2753392409</VelocityX>
        <VelocityY> 45392.1315247589</VelocityY>
        <VelocityZ> 0</VelocityZ>
        <Name>Planet c</Name>
        <Mass> 53.147750100442</Mass>
        <Diameter> 0</Diameter>
    </Body>
    <Body>
        <Object>Planet e</Object>
        <PositionX> 3763527661.31916</PositionX>
        <PositionY> 4289876734.58789</PositionY>
        <PositionZ> 0</PositionZ>
        <VelocityX>-116777.971872964</VelocityX>
        <VelocityY> 87955.5950384404</VelocityY>
        <VelocityZ> 0</VelocityZ>
        <Name>Planet e</Name>
        <Mass> 10.6924467657694</Mass>
        <Diameter> 0</Diameter>
    </Body>
    <Body>
        <Object>Planet b</Object>
        <PositionX> 8650944280.15159</PositionX>
        <PositionY> 15360028170.23</PositionY>
        <PositionZ> 0</PositionZ>
        <VelocityX>-71229.8379366437</VelocityX>
        <VelocityY> 41340.0615753976</VelocityY>
        <VelocityZ> 0</VelocityZ>
        <Name>Planet b</Name>
        <Mass> 259.134592205705</Mass>
        <Diameter> 0</Diameter>
    </Body>
    <Body>
        <Object>Planet f</Object>
        <PositionX>-121193898302.123</PositionX>
        <PositionY> 59305124961.5274</PositionY>
        <PositionZ> 0</PositionZ>
        <VelocityX>-14831.4664558138</VelocityX>
        <VelocityY>-23264.6469128906</VelocityY>
        <VelocityZ> 0</VelocityZ>
        <Name>Planet f</Name>
        <Mass> 45.2856568903174</Mass>
        <Diameter> 0</Diameter>
    </Body>
    <Body>
        <Object>Planet d</Object>
        <PositionX>-294528070538.547</PositionX>
        <PositionY> 827340605359.907</PositionY>
        <PositionZ> 0</PositionZ>
        <VelocityX>-11254.1442574392</VelocityX>
        <VelocityY>-3605.17090031499</VelocityY>
        <VelocityZ> 0</VelocityZ>
        <Name>Planet d</Name>
        <Mass> 1206.04509843311</Mass>
        <Diameter> 0</Diameter>
    </Body>
</System>

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: Cancri 55
« Reply #1 on: July 12, 2008, 10:17:28 PM »
Hey Tony...

There were a few problems with your system (some of which are problems I plan to address in a future update).

The default units are:
Mass = kg^20
Velocity = km/s
Position = km

  • Since your units are different you need to specify the units for all of your values.
  • You also need to remove the extra spaces in front of values (because of a bug, I'll fix this in the next update).
  • You don't need the Object tags. These are for looking up the properties of bodies in the data files: LocalObjects.xml & DeepSkyObjects.xml (like for the Earth, Moon, Jupiter, Ceres, or the Sun)

Diameters should be automatically calculated to something other than 0, but that seems to be broken (also something I'll fix).

And all the extra stuff at the top of the XML files is something that Excel adds in. It's optional and ignored by Universe Sandbox.

This works (other than the diameter issue):

Code: [Select]
<System>
    <Body>
        <Name>Cancri55</Name>
        <PositionX>.345322894982861 m</PositionX>
        <PositionY>.530559374647256 m</PositionY>
        <PositionZ>0</PositionZ>
        <VelocityX>1.32801304314968E-02 m</VelocityX>
        <VelocityY>2.04075429997798E-02 m</VelocityY>
        <VelocityZ>0</VelocityZ>
        <Mass>307166.919879134 earth</Mass>
        <Diameter>1392000000 m</Diameter>
    </Body>
    <Body>
        <Name>Planet c</Name>
        <PositionX>26200358064.5108 m</PositionX>
        <PositionY>24552261459.9653 m</PositionY>
        <PositionZ>0</PositionZ>
        <VelocityX>-36771.2753392409 m</VelocityX>
        <VelocityY>45392.1315247589 m</VelocityY>
        <VelocityZ>0</VelocityZ>
        <Mass>53.147750100442 earth</Mass>
    </Body>
    <Body>
        <Name>Planet e</Name>
        <PositionX> 3763527661.31916 m</PositionX>
        <PositionY>4289876734.58789 m</PositionY>
        <PositionZ>0</PositionZ>
        <VelocityX>-116777.971872964 m</VelocityX>
        <VelocityY>87955.5950384404 m</VelocityY>
        <VelocityZ>0</VelocityZ>
        <Mass>10.6924467657694 earth</Mass>
    </Body>
    <Body>
        <Name>Planet b</Name>
        <PositionX>8650944280.15159 m</PositionX>
        <PositionY>15360028170.23 m</PositionY>
        <PositionZ>0</PositionZ>
        <VelocityX>-71229.8379366437 m</VelocityX>
        <VelocityY>41340.0615753976 m</VelocityY>
        <VelocityZ>0</VelocityZ>
        <Mass>259.134592205705 earth</Mass>
    </Body>
    <Body>
        <Name>Planet f</Name>
        <PositionX>-121193898302.123 m</PositionX>
        <PositionY>59305124961.5274 m</PositionY>
        <PositionZ>0</PositionZ>
        <VelocityX>-14831.4664558138 m</VelocityX>
        <VelocityY>-23264.6469128906 m</VelocityY>
        <VelocityZ>0</VelocityZ>
        <Mass>45.2856568903174 earth</Mass>
    </Body>
    <Body>
        <Name>Planet d</Name>
        <PositionX>-294528070538.547 m</PositionX>
        <PositionY>827340605359.907 m</PositionY>
        <PositionZ>0</PositionZ>
        <VelocityX>-11254.1442574392 m</VelocityX>
        <VelocityY>-3605.17090031499 m</VelocityY>
        <VelocityZ>0</VelocityZ>
        <Mass>1206.04509843311 earth</Mass>
    </Body>
</System>

You can press Ctrl+R to reload a system, very helpful when trying to get something to work.

Press G to turn on the Grid so you can see the size comparison with our Solar System.

And for everyone else, here's more info about this system:
http://www.orbitsimulator.com/gravity/articles/cancri.html

Let me know if you have any other problems. :)

tony873004

  • **
  • Posts: 10
Re: Cancri 55
« Reply #2 on: July 12, 2008, 10:40:52 PM »
...And for everyone else, here's more info about this system:
http://www.orbitsimulator.com/gravity/articles/cancri.html

Let me know if you have any other problems. :)
Actually, it's the updated 5-planet system.   ;D  I just haven't updated my own site yet.

So I copied and pasted your code and saved as an xml file.  But when I open it, all I get is the background nebulas, no Cancri, no planets.

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: Cancri 55
« Reply #3 on: July 12, 2008, 10:55:02 PM »
You might take a look at your log files and see if there are any errors or problems listed there (or send them to me).
They should also show up in the lower left hand corner of the screen after the system is loaded (you may have to move the mouse over the area to make them visible though).

I'll make these system loading errors more obvious in a future release.

I just tried this (copy and pasted from the forum) and I didn't have any problems.
« Last Edit: July 12, 2008, 11:15:03 PM by Dan Dixon »

tony873004

  • **
  • Posts: 10
Re: Cancri 55
« Reply #4 on: July 12, 2008, 11:08:28 PM »
oops... I accidently copied and pasted the entire thread, rather than just the revelant code.  It works now :D