Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Guilhem Bonnefille
Orekit
Commits
bfd76a4c
Commit
bfd76a4c
authored
Dec 01, 2020
by
Thomas Paulet
Browse files
Added test comparison with finite difference Jacobian
parent
f4a8f816
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/orekit/forces/radiation/KnockeRediffusedForceModelTest.java
View file @
bfd76a4c
...
...
@@ -41,6 +41,7 @@ import org.orekit.orbits.Orbit;
import
org.orekit.orbits.OrbitType
;
import
org.orekit.orbits.PositionAngle
;
import
org.orekit.propagation.FieldSpacecraftState
;
import
org.orekit.propagation.Propagator
;
import
org.orekit.propagation.SpacecraftState
;
import
org.orekit.propagation.analytical.tle.TLE
;
import
org.orekit.propagation.analytical.tle.TLEPropagator
;
...
...
@@ -69,6 +70,39 @@ public class KnockeRediffusedForceModelTest extends AbstractForceModelTest{
Utils
.
setDataRoot
(
"regular-data"
);
}
@Test
public
void
testJacobianVsFiniteDifferences
()
{
// 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
,
1
e
-
3
,
i
,
omega
,
OMEGA
,
0
,
PositionAngle
.
MEAN
,
FramesFactory
.
getEME2000
(),
date
,
Constants
.
EIGEN5C_EARTH_MU
);
// Sun
final
ExtendedPVCoordinatesProvider
sun
=
CelestialBodyFactory
.
getSun
();
// Radiation sensitive model
final
RadiationSensitive
radiationSensitive
=
new
IsotropicRadiationSingleCoefficient
(
1
,
1.5
);
// Set up the force model to test
final
KnockeRediffusedForceModel
forceModel
=
new
KnockeRediffusedForceModel
(
sun
,
radiationSensitive
,
Constants
.
EIGEN5C_EARTH_EQUATORIAL_RADIUS
,
FastMath
.
toRadians
(
30
));
SpacecraftState
state
=
new
SpacecraftState
(
orbit
,
Propagator
.
DEFAULT_LAW
.
getAttitude
(
orbit
,
orbit
.
getDate
(),
orbit
.
getFrame
()));
checkStateJacobianVsFiniteDifferences
(
state
,
forceModel
,
Propagator
.
DEFAULT_LAW
,
1.0
,
5.5
e
-
9
,
false
);
}
@Test
public
void
testParameterIsotropicSingle
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment