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
Alberto Fossà
Orekit
Commits
00de34fa
Commit
00de34fa
authored
Jan 12, 2022
by
Luc Maisonobe
Browse files
Allow STM to be computed in AbsolutePVCoordinates configuration.
parent
b1bdbec8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/orekit/propagation/numerical/StateTransitionMatrixGenerator.java
View file @
00de34fa
...
...
@@ -125,23 +125,28 @@ class StateTransitionMatrixGenerator implements AdditionalDerivativesProvider {
final
OrbitType
orbitType
,
final
PositionAngle
positionAngle
)
{
if
(
dYdY0
!=
null
)
{
final
RealMatrix
nonNullDYdY0
;
if
(
dYdY0
==
null
)
{
nonNullDYdY0
=
MatrixUtils
.
createRealIdentityMatrix
(
STATE_DIMENSION
);
}
else
{
if
(
dYdY0
.
getRowDimension
()
!=
STATE_DIMENSION
||
dYdY0
.
getColumnDimension
()
!=
STATE_DIMENSION
)
{
throw
new
OrekitException
(
LocalizedCoreFormats
.
DIMENSIONS_MISMATCH_2x2
,
dYdY0
.
getRowDimension
(),
dYdY0
.
getColumnDimension
(),
STATE_DIMENSION
,
STATE_DIMENSION
);
}
nonNullDYdY0
=
dYdY0
;
}
// convert to Cartesian STM
final
double
[][]
dYdC
=
new
double
[
STATE_DIMENSION
][
STATE_DIMENSION
];
orbitType
.
convertType
(
state
.
getOrbit
()).
getJacobianWrtCartesian
(
positionAngle
,
dYdC
);
final
RealMatrix
dCdY0
=
new
QRDecomposition
(
MatrixUtils
.
createRealMatrix
(
dYdC
),
THRESHOLD
).
getSolver
().
solve
(
dYdY0
==
null
?
MatrixUtils
.
createRealIdentityMatrix
(
STATE_DIMENSION
)
:
dYdY0
);
final
RealMatrix
dCdY0
;
if
(
state
.
isOrbitDefined
())
{
final
double
[][]
dYdC
=
new
double
[
STATE_DIMENSION
][
STATE_DIMENSION
];
orbitType
.
convertType
(
state
.
getOrbit
()).
getJacobianWrtCartesian
(
positionAngle
,
dYdC
);
dCdY0
=
new
QRDecomposition
(
MatrixUtils
.
createRealMatrix
(
dYdC
),
THRESHOLD
).
getSolver
().
solve
(
nonNullDYdY0
);
}
else
{
dCdY0
=
nonNullDYdY0
;
}
// flatten matrix
final
double
[]
flat
=
new
double
[
STATE_DIMENSION
*
STATE_DIMENSION
];
...
...
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