Search in sources :

Example 11 with BoxAndSolarArraySpacecraft

use of org.orekit.forces.BoxAndSolarArraySpacecraft in project Orekit by CS-SI.

the class DragForceTest method testJacobianBoxVs80Implementation.

@Test
public void testJacobianBoxVs80Implementation() throws OrekitException {
    // initialization
    AbsoluteDate date = new AbsoluteDate(new DateComponents(2003, 03, 01), new TimeComponents(13, 59, 27.816), TimeScalesFactory.getUTC());
    double i = FastMath.toRadians(98.7);
    double omega = FastMath.toRadians(93.0);
    double OMEGA = FastMath.toRadians(15.0 * 22.5);
    Orbit orbit = new KeplerianOrbit(7201009.7124401, 1e-3, i, omega, OMEGA, 0, PositionAngle.MEAN, FramesFactory.getEME2000(), date, Constants.EIGEN5C_EARTH_MU);
    final DragForce forceModel = new DragForce(new HarrisPriester(CelestialBodyFactory.getSun(), new OneAxisEllipsoid(Constants.WGS84_EARTH_EQUATORIAL_RADIUS, Constants.WGS84_EARTH_FLATTENING, FramesFactory.getITRF(IERSConventions.IERS_2010, true))), new BoxAndSolarArraySpacecraft(1.5, 2.0, 1.8, CelestialBodyFactory.getSun(), 20.0, Vector3D.PLUS_J, 1.2, 0.7, 0.2));
    SpacecraftState state = new SpacecraftState(orbit, Propagator.DEFAULT_LAW.getAttitude(orbit, orbit.getDate(), orbit.getFrame()));
    checkStateJacobianVs80Implementation(state, forceModel, new LofOffset(state.getFrame(), LOFType.VVLH), 5e-6, false);
}
Also used : BoxAndSolarArraySpacecraft(org.orekit.forces.BoxAndSolarArraySpacecraft) SpacecraftState(org.orekit.propagation.SpacecraftState) FieldSpacecraftState(org.orekit.propagation.FieldSpacecraftState) HarrisPriester(org.orekit.forces.drag.atmosphere.HarrisPriester) OneAxisEllipsoid(org.orekit.bodies.OneAxisEllipsoid) CartesianOrbit(org.orekit.orbits.CartesianOrbit) FieldKeplerianOrbit(org.orekit.orbits.FieldKeplerianOrbit) KeplerianOrbit(org.orekit.orbits.KeplerianOrbit) Orbit(org.orekit.orbits.Orbit) DateComponents(org.orekit.time.DateComponents) FieldKeplerianOrbit(org.orekit.orbits.FieldKeplerianOrbit) KeplerianOrbit(org.orekit.orbits.KeplerianOrbit) TimeComponents(org.orekit.time.TimeComponents) LofOffset(org.orekit.attitudes.LofOffset) FieldAbsoluteDate(org.orekit.time.FieldAbsoluteDate) AbsoluteDate(org.orekit.time.AbsoluteDate) AbstractLegacyForceModelTest(org.orekit.forces.AbstractLegacyForceModelTest) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)11 BoxAndSolarArraySpacecraft (org.orekit.forces.BoxAndSolarArraySpacecraft)11 SpacecraftState (org.orekit.propagation.SpacecraftState)11 OneAxisEllipsoid (org.orekit.bodies.OneAxisEllipsoid)9 AbstractLegacyForceModelTest (org.orekit.forces.AbstractLegacyForceModelTest)9 FieldSpacecraftState (org.orekit.propagation.FieldSpacecraftState)9 HarrisPriester (org.orekit.forces.drag.atmosphere.HarrisPriester)8 FieldAbsoluteDate (org.orekit.time.FieldAbsoluteDate)8 FieldKeplerianOrbit (org.orekit.orbits.FieldKeplerianOrbit)7 CartesianOrbit (org.orekit.orbits.CartesianOrbit)6 KeplerianOrbit (org.orekit.orbits.KeplerianOrbit)6 AbsoluteDate (org.orekit.time.AbsoluteDate)6 OrbitType (org.orekit.orbits.OrbitType)5 FieldNumericalPropagator (org.orekit.propagation.numerical.FieldNumericalPropagator)5 NumericalPropagator (org.orekit.propagation.numerical.NumericalPropagator)5 FieldPVCoordinates (org.orekit.utils.FieldPVCoordinates)5 PVCoordinates (org.orekit.utils.PVCoordinates)5 DormandPrince853Integrator (org.hipparchus.ode.nonstiff.DormandPrince853Integrator)4 Orbit (org.orekit.orbits.Orbit)4 DateComponents (org.orekit.time.DateComponents)4