public void TestEarthAverageCometRocheLimit() { var phy = new BodyPhysics(); var earthAvgCometKM = 17887; var earthAvgCometAU = earthAvgCometKM / GlobalConstants.KM_PER_AU; var dAU = phy.GetRocheLimit(EarthRadius, EarthDensity, AvgCometDensity).AstronomicalUnits; Assert.AreEqual(earthAvgCometAU, dAU, 0.99); var dKM = phy.GetRocheLimit(EarthRadius, EarthDensity, AvgCometDensity).Kilometers; Assert.AreEqual(earthAvgCometKM, dKM, 0.99); }
public void TestSunJupiterRocheLimit() { var phy = new BodyPhysics(); var sunJupiterKM = 894677; var sunJupiterAU = sunJupiterKM / GlobalConstants.KM_PER_AU; var dAU = phy.GetRocheLimit(SunRadius, SunDensity, JupiterDensity).AstronomicalUnits; Assert.AreEqual(sunJupiterAU, dAU, 0.99); var dKM = phy.GetRocheLimit(SunRadius, SunDensity, JupiterDensity).Kilometers; Assert.AreEqual(sunJupiterKM, dKM, 0.99); }
public void TestEarthMoonRocheLimit() { var phy = new BodyPhysics(); var earthMoonKM = 9492; var earthMoonAU = earthMoonKM / GlobalConstants.KM_PER_AU; var dAU = phy.GetRocheLimit(EarthRadius, EarthDensity, MoonDensity).AstronomicalUnits; Assert.AreEqual(earthMoonAU, dAU, 0.99); var dKM = phy.GetRocheLimit(EarthRadius, EarthDensity, MoonDensity).Kilometers; Assert.AreEqual(earthMoonKM, dKM, 0.99); }