Search in sources :

Example 1 with MarshallSolarActivityFutureEstimation

use of org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation in project Orekit by CS-SI.

the class MarshallSolarActivityFutureEstimationTest method testKpWeak.

@Test
public void testKpWeak() throws OrekitException {
    MarshallSolarActivityFutureEstimation msafe = loadMsafe(MarshallSolarActivityFutureEstimation.StrengthLevel.WEAK);
    Assert.assertEquals(1 + 1.0 / 3.0, msafe.get24HoursKp(new AbsoluteDate("2010-10-01", utc)), 0.1);
    Assert.assertEquals(2.0, msafe.get24HoursKp(new AbsoluteDate("2011-05-01", utc)), 0.3);
    Assert.assertEquals(1 + 1.0 / 3.0, msafe.get24HoursKp(new AbsoluteDate("2010-08-01", utc)), 0.1);
    Assert.assertEquals(msafe.getThreeHourlyKP(new AbsoluteDate("2010-08-01", utc)), msafe.get24HoursKp(new AbsoluteDate("2010-08-01", utc)), 1.0e-14);
}
Also used : MarshallSolarActivityFutureEstimation(org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation) AbsoluteDate(org.orekit.time.AbsoluteDate) Test(org.junit.Test)

Example 2 with MarshallSolarActivityFutureEstimation

use of org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation in project Orekit by CS-SI.

the class MarshallSolarActivityFutureEstimationTest method testMinDate.

@Test
public void testMinDate() throws OrekitException {
    MarshallSolarActivityFutureEstimation msafe = loadMsafe(MarshallSolarActivityFutureEstimation.StrengthLevel.WEAK);
    Assert.assertEquals(new AbsoluteDate("2010-05-01", utc), msafe.getMinDate());
    Assert.assertEquals(78.1, msafe.getMeanFlux(msafe.getMinDate()), 1.0e-14);
}
Also used : MarshallSolarActivityFutureEstimation(org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation) AbsoluteDate(org.orekit.time.AbsoluteDate) Test(org.junit.Test)

Example 3 with MarshallSolarActivityFutureEstimation

use of org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation in project Orekit by CS-SI.

the class MarshallSolarActivityFutureEstimationTest method testExtraData.

@Test(expected = OrekitException.class)
public void testExtraData() throws OrekitException {
    MarshallSolarActivityFutureEstimation msafe = new MarshallSolarActivityFutureEstimation("Jan2011F10-extra-data\\.txt", MarshallSolarActivityFutureEstimation.StrengthLevel.STRONG);
    DataProvidersManager manager = DataProvidersManager.getInstance();
    manager.feed(msafe.getSupportedNames(), msafe);
}
Also used : MarshallSolarActivityFutureEstimation(org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation) DataProvidersManager(org.orekit.data.DataProvidersManager) Test(org.junit.Test)

Example 4 with MarshallSolarActivityFutureEstimation

use of org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation in project Orekit by CS-SI.

the class MarshallSolarActivityFutureEstimationTest method testFluxStrong.

@Test
public void testFluxStrong() throws OrekitException {
    MarshallSolarActivityFutureEstimation msafe = loadMsafe(MarshallSolarActivityFutureEstimation.StrengthLevel.STRONG);
    Assert.assertEquals(94.2, msafe.getMeanFlux(new AbsoluteDate("2010-10-01", utc)), 1.0e-10);
    Assert.assertEquals(96.6, msafe.getMeanFlux(new AbsoluteDate("2010-10-16T12:00:00", utc)), 1.0e-10);
    Assert.assertEquals(99.0, msafe.getMeanFlux(new AbsoluteDate("2010-11-01", utc)), 1.0e-10);
    Assert.assertEquals(msafe.getInstantFlux(new AbsoluteDate("2010-11-01", utc)), msafe.getMeanFlux(new AbsoluteDate("2010-11-01", utc)), 1.0e-10);
    Assert.assertEquals(MarshallSolarActivityFutureEstimation.StrengthLevel.STRONG, msafe.getStrengthLevel());
}
Also used : MarshallSolarActivityFutureEstimation(org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation) AbsoluteDate(org.orekit.time.AbsoluteDate) Test(org.junit.Test)

Example 5 with MarshallSolarActivityFutureEstimation

use of org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation in project Orekit by CS-SI.

the class MarshallSolarActivityFutureEstimationTest method testNoData.

@Test(expected = OrekitException.class)
public void testNoData() throws OrekitException {
    MarshallSolarActivityFutureEstimation msafe = new MarshallSolarActivityFutureEstimation("Jan2011F10-no-data\\.txt", MarshallSolarActivityFutureEstimation.StrengthLevel.STRONG);
    DataProvidersManager manager = DataProvidersManager.getInstance();
    manager.feed(msafe.getSupportedNames(), msafe);
}
Also used : MarshallSolarActivityFutureEstimation(org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation) DataProvidersManager(org.orekit.data.DataProvidersManager) Test(org.junit.Test)

Aggregations

MarshallSolarActivityFutureEstimation (org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation)20 Test (org.junit.Test)13 AbsoluteDate (org.orekit.time.AbsoluteDate)11 DataProvidersManager (org.orekit.data.DataProvidersManager)6 DragForce (org.orekit.forces.drag.DragForce)5 IsotropicDrag (org.orekit.forces.drag.IsotropicDrag)5 DTM2000 (org.orekit.forces.drag.atmosphere.DTM2000)5 HolmesFeatherstoneAttractionModel (org.orekit.forces.gravity.HolmesFeatherstoneAttractionModel)5 ThirdBodyAttraction (org.orekit.forces.gravity.ThirdBodyAttraction)5 IsotropicRadiationSingleCoefficient (org.orekit.forces.radiation.IsotropicRadiationSingleCoefficient)5 SolarRadiationPressure (org.orekit.forces.radiation.SolarRadiationPressure)5 ArrayList (java.util.ArrayList)3 List (java.util.List)3 Vector3D (org.hipparchus.geometry.euclidean.threed.Vector3D)3 CelestialBody (org.orekit.bodies.CelestialBody)3 GeodeticPoint (org.orekit.bodies.GeodeticPoint)3 PolynomialParametricAcceleration (org.orekit.forces.PolynomialParametricAcceleration)3 Atmosphere (org.orekit.forces.drag.atmosphere.Atmosphere)3 OceanTides (org.orekit.forces.gravity.OceanTides)3 Relativity (org.orekit.forces.gravity.Relativity)3