Search in sources :

Example 16 with BodiesElements

use of org.orekit.data.BodiesElements in project Orekit by CS-SI.

the class OceanLoadingTest method testLongPeriod.

@Test
public void testLongPeriod() throws OrekitException {
    TimeScale ut1 = TimeScalesFactory.getUT1(IERSConventions.IERS_2010, true);
    FundamentalNutationArguments fna = IERSConventions.IERS_2010.getNutationArguments(ut1);
    BodiesElements elements = fna.evaluateAll(new AbsoluteDate(2009, 6, 25, 0, 0, 0.0, ut1));
    for (Tide tide : getTides()) {
        if (tide.getDoodsonMultipliers()[0] == 0) {
            double f = tide.getRate(elements) * Constants.JULIAN_DAY / (2 * FastMath.PI);
            Assert.assertTrue(f > 0.0);
            Assert.assertTrue(f <= 0.5);
        }
    }
}
Also used : FundamentalNutationArguments(org.orekit.data.FundamentalNutationArguments) BodiesElements(org.orekit.data.BodiesElements) TimeScale(org.orekit.time.TimeScale) AbsoluteDate(org.orekit.time.AbsoluteDate) Test(org.junit.Test)

Example 17 with BodiesElements

use of org.orekit.data.BodiesElements in project Orekit by CS-SI.

the class OceanLoadingTest method testDiurnal.

@Test
public void testDiurnal() throws OrekitException {
    TimeScale ut1 = TimeScalesFactory.getUT1(IERSConventions.IERS_2010, true);
    FundamentalNutationArguments fna = IERSConventions.IERS_2010.getNutationArguments(ut1);
    BodiesElements elements = fna.evaluateAll(new AbsoluteDate(2009, 6, 25, 0, 0, 0.0, ut1));
    for (Tide tide : getTides()) {
        if (tide.getDoodsonMultipliers()[0] == 1) {
            double f = tide.getRate(elements) * Constants.JULIAN_DAY / (2 * FastMath.PI);
            Assert.assertTrue(f > 0.5);
            Assert.assertTrue(f <= 1.5);
        }
    }
}
Also used : FundamentalNutationArguments(org.orekit.data.FundamentalNutationArguments) BodiesElements(org.orekit.data.BodiesElements) TimeScale(org.orekit.time.TimeScale) AbsoluteDate(org.orekit.time.AbsoluteDate) Test(org.junit.Test)

Aggregations

BodiesElements (org.orekit.data.BodiesElements)17 FundamentalNutationArguments (org.orekit.data.FundamentalNutationArguments)15 TimeScale (org.orekit.time.TimeScale)14 AbsoluteDate (org.orekit.time.AbsoluteDate)13 Test (org.junit.Test)10 Vector3D (org.hipparchus.geometry.euclidean.threed.Vector3D)4 FieldAbsoluteDate (org.orekit.time.FieldAbsoluteDate)4 Method (java.lang.reflect.Method)2 FastMath (org.hipparchus.util.FastMath)2 OrekitException (org.orekit.errors.OrekitException)2 Frame (org.orekit.frames.Frame)2 Field (java.lang.reflect.Field)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 Function (java.util.function.Function)1 RealFieldElement (org.hipparchus.RealFieldElement)1 UnivariateFunction (org.hipparchus.analysis.UnivariateFunction)1 SplineInterpolator (org.hipparchus.analysis.interpolation.SplineInterpolator)1 PolynomialSplineFunction (org.hipparchus.analysis.polynomials.PolynomialSplineFunction)1