ootk 3.0.0 → 4.0.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +10 -10
- package/CHANGELOG.md +122 -0
- package/README.md +27 -40
- package/lib/coordinate/Hill.d.ts +50 -0
- package/lib/coordinate/Hill.js +214 -0
- package/lib/coordinate/Hill.js.map +1 -0
- package/lib/coordinate/index.d.ts +1 -0
- package/lib/coordinate/index.js +2 -0
- package/lib/coordinate/index.js.map +1 -0
- package/lib/covariance/CovarianceSample.d.ts +44 -0
- package/lib/covariance/CovarianceSample.js +146 -0
- package/lib/covariance/CovarianceSample.js.map +1 -0
- package/lib/covariance/StateCovariance.d.ts +41 -0
- package/lib/covariance/StateCovariance.js +62 -0
- package/lib/covariance/StateCovariance.js.map +1 -0
- package/lib/force/AtmosphericDrag.d.ts +32 -0
- package/lib/force/AtmosphericDrag.js +66 -0
- package/lib/force/AtmosphericDrag.js.map +1 -0
- package/lib/force/EarthGravity.d.ts +28 -0
- package/lib/force/EarthGravity.js +115 -0
- package/lib/force/EarthGravity.js.map +1 -0
- package/{dist/ootk.d.ts → lib/force/Force.d.ts} +10 -10
- package/lib/force/Force.js +30 -0
- package/lib/force/Force.js.map +1 -0
- package/lib/force/ForceModel.d.ts +38 -0
- package/lib/force/ForceModel.js +71 -0
- package/lib/force/ForceModel.js.map +1 -0
- package/lib/force/Gravity.d.ts +41 -0
- package/lib/force/Gravity.js +48 -0
- package/lib/force/Gravity.js.map +1 -0
- package/lib/force/SolarRadiationPressure.d.ts +27 -0
- package/lib/force/SolarRadiationPressure.js +42 -0
- package/lib/force/SolarRadiationPressure.js.map +1 -0
- package/lib/force/ThirdBodyGravity.d.ts +27 -0
- package/lib/force/ThirdBodyGravity.js +56 -0
- package/lib/force/ThirdBodyGravity.js.map +1 -0
- package/lib/force/Thrust.d.ts +35 -0
- package/lib/force/Thrust.js +53 -0
- package/lib/force/Thrust.js.map +1 -0
- package/lib/interpolator/ChebyshevCoefficients.d.ts +54 -0
- package/lib/interpolator/ChebyshevCoefficients.js +90 -0
- package/lib/interpolator/ChebyshevCoefficients.js.map +1 -0
- package/lib/interpolator/ChebyshevInterpolator.d.ts +39 -0
- package/lib/interpolator/ChebyshevInterpolator.js +71 -0
- package/lib/interpolator/ChebyshevInterpolator.js.map +1 -0
- package/lib/interpolator/CubicSpline.d.ts +36 -0
- package/lib/interpolator/CubicSpline.js +64 -0
- package/lib/interpolator/CubicSpline.js.map +1 -0
- package/lib/interpolator/CubicSplineInterpolator.d.ts +37 -0
- package/lib/interpolator/CubicSplineInterpolator.js +78 -0
- package/lib/interpolator/CubicSplineInterpolator.js.map +1 -0
- package/lib/interpolator/FieldInterpolator.d.ts +26 -0
- package/lib/interpolator/FieldInterpolator.js +31 -0
- package/lib/interpolator/FieldInterpolator.js.map +1 -0
- package/lib/interpolator/Interpolator.d.ts +23 -0
- package/lib/interpolator/Interpolator.js +48 -0
- package/lib/interpolator/Interpolator.js.map +1 -0
- package/lib/interpolator/LagrangeInterpolator.d.ts +42 -0
- package/lib/interpolator/LagrangeInterpolator.js +156 -0
- package/lib/interpolator/LagrangeInterpolator.js.map +1 -0
- package/lib/interpolator/StateInterpolator.d.ts +29 -0
- package/lib/interpolator/StateInterpolator.js +37 -0
- package/lib/interpolator/StateInterpolator.js.map +1 -0
- package/lib/interpolator/VerletBlendInterpolator.d.ts +44 -0
- package/lib/interpolator/VerletBlendInterpolator.js +115 -0
- package/lib/interpolator/VerletBlendInterpolator.js.map +1 -0
- package/lib/maneuver/TwoBurnOrbitTransfer.d.ts +43 -0
- package/lib/maneuver/TwoBurnOrbitTransfer.js +62 -0
- package/lib/maneuver/TwoBurnOrbitTransfer.js.map +1 -0
- package/lib/maneuver/Waypoint.d.ts +66 -0
- package/lib/maneuver/Waypoint.js +152 -0
- package/lib/maneuver/Waypoint.js.map +1 -0
- package/lib/objects/DetailedSatellite.d.ts +94 -0
- package/lib/objects/DetailedSatellite.js +140 -0
- package/lib/objects/DetailedSatellite.js.map +1 -0
- package/lib/objects/DetailedSensor.d.ts +43 -0
- package/lib/objects/DetailedSensor.js +45 -0
- package/lib/objects/DetailedSensor.js.map +1 -0
- package/{dist/objects/space-object.d.ts → lib/objects/LandObject.d.ts} +19 -21
- package/lib/objects/LandObject.js +28 -0
- package/lib/objects/LandObject.js.map +1 -0
- package/lib/objects/Marker.d.ts +21 -0
- package/lib/objects/Marker.js +25 -0
- package/lib/objects/Marker.js.map +1 -0
- package/lib/objects/index.d.ts +5 -4
- package/lib/objects/index.js +5 -4
- package/lib/objects/index.js.map +1 -1
- package/lib/observation/Observation.d.ts +51 -0
- package/lib/observation/Observation.js +71 -0
- package/lib/observation/Observation.js.map +1 -0
- package/lib/observation/ObservationOptical.d.ts +47 -0
- package/lib/observation/ObservationOptical.js +101 -0
- package/lib/observation/ObservationOptical.js.map +1 -0
- package/lib/observation/ObservationRadar.d.ts +43 -0
- package/lib/observation/ObservationRadar.js +90 -0
- package/lib/observation/ObservationRadar.js.map +1 -0
- package/lib/observation/ObservationUtils.d.ts +21 -0
- package/lib/observation/ObservationUtils.js +33 -0
- package/lib/observation/ObservationUtils.js.map +1 -0
- package/lib/observation/PropagatorPairs.d.ts +31 -0
- package/lib/observation/PropagatorPairs.js +40 -0
- package/lib/observation/PropagatorPairs.js.map +1 -0
- package/lib/ootk.d.ts +10 -8
- package/lib/ootk.js +10 -8
- package/lib/ootk.js.map +1 -1
- package/lib/operations/BoxMuller.d.ts +41 -0
- package/lib/operations/BoxMuller.js +66 -0
- package/lib/operations/BoxMuller.js.map +1 -0
- package/lib/operations/EulerAngles.d.ts +50 -0
- package/lib/operations/EulerAngles.js +111 -0
- package/lib/operations/EulerAngles.js.map +1 -0
- package/lib/operations/Quaternion.d.ts +57 -0
- package/lib/operations/Quaternion.js +164 -0
- package/lib/operations/Quaternion.js.map +1 -0
- package/lib/operations/RandomGaussianSource.d.ts +25 -0
- package/lib/operations/RandomGaussianSource.js +43 -0
- package/lib/operations/RandomGaussianSource.js.map +1 -0
- package/lib/operations/index.d.ts +4 -0
- package/lib/operations/index.js +5 -0
- package/lib/operations/index.js.map +1 -0
- package/lib/optimize/ChebyshevCompressor.d.ts +31 -0
- package/lib/optimize/ChebyshevCompressor.js +80 -0
- package/lib/optimize/ChebyshevCompressor.js.map +1 -0
- package/lib/optimize/DownhillSimplex.d.ts +50 -0
- package/lib/optimize/DownhillSimplex.js +168 -0
- package/lib/optimize/DownhillSimplex.js.map +1 -0
- package/lib/optimize/GoldenSection.d.ts +33 -0
- package/lib/optimize/GoldenSection.js +49 -0
- package/lib/optimize/GoldenSection.js.map +1 -0
- package/lib/optimize/PolynomialRegression.d.ts +37 -0
- package/lib/optimize/PolynomialRegression.js +66 -0
- package/lib/optimize/PolynomialRegression.js.map +1 -0
- package/lib/optimize/PolynomicalRegressionResult.d.ts +28 -0
- package/lib/optimize/PolynomicalRegressionResult.js +32 -0
- package/lib/optimize/PolynomicalRegressionResult.js.map +1 -0
- package/lib/optimize/SimpleLinearRegression.d.ts +41 -0
- package/lib/optimize/SimpleLinearRegression.js +107 -0
- package/lib/optimize/SimpleLinearRegression.js.map +1 -0
- package/lib/optimize/SimplexEntry.d.ts +33 -0
- package/lib/optimize/SimplexEntry.js +39 -0
- package/lib/optimize/SimplexEntry.js.map +1 -0
- package/lib/orbit_determination/BatchLeastSquaresOD.d.ts +54 -0
- package/lib/orbit_determination/BatchLeastSquaresOD.js +118 -0
- package/lib/orbit_determination/BatchLeastSquaresOD.js.map +1 -0
- package/lib/orbit_determination/BatchLeastSquaresResult.d.ts +29 -0
- package/lib/orbit_determination/BatchLeastSquaresResult.js +31 -0
- package/lib/orbit_determination/BatchLeastSquaresResult.js.map +1 -0
- package/lib/orbit_determination/GibbsIOD.d.ts +33 -0
- package/lib/orbit_determination/GibbsIOD.js +70 -0
- package/lib/orbit_determination/GibbsIOD.js.map +1 -0
- package/lib/orbit_determination/GoodingIOD.d.ts +52 -0
- package/lib/orbit_determination/GoodingIOD.js +244 -0
- package/lib/orbit_determination/GoodingIOD.js.map +1 -0
- package/lib/{objects/space-object.d.ts → orbit_determination/HerrickGibbsIOD.d.ts} +17 -22
- package/lib/orbit_determination/HerrickGibbsIOD.js +49 -0
- package/lib/orbit_determination/HerrickGibbsIOD.js.map +1 -0
- package/lib/orbit_determination/LambertIOD.d.ts +46 -0
- package/lib/orbit_determination/LambertIOD.js +199 -0
- package/lib/orbit_determination/LambertIOD.js.map +1 -0
- package/lib/orbit_determination/ModifiedGoodingIOD.d.ts +41 -0
- package/lib/orbit_determination/ModifiedGoodingIOD.js +82 -0
- package/lib/orbit_determination/ModifiedGoodingIOD.js.map +1 -0
- package/lib/propagator/DormandPrince54Propagator.d.ts +29 -0
- package/lib/propagator/DormandPrince54Propagator.js +68 -0
- package/lib/propagator/DormandPrince54Propagator.js.map +1 -0
- package/lib/propagator/KeplerPropagator.d.ts +36 -0
- package/lib/propagator/KeplerPropagator.js +81 -0
- package/lib/propagator/KeplerPropagator.js.map +1 -0
- package/lib/propagator/Propagator.d.ts +35 -0
- package/lib/propagator/Propagator.js +163 -0
- package/lib/propagator/Propagator.js.map +1 -0
- package/lib/propagator/RkCheckpoint.d.ts +23 -0
- package/lib/propagator/RkCheckpoint.js +26 -0
- package/lib/propagator/RkCheckpoint.js.map +1 -0
- package/lib/propagator/RkResult.d.ts +24 -0
- package/lib/propagator/RkResult.js +28 -0
- package/lib/propagator/RkResult.js.map +1 -0
- package/lib/propagator/RungeKutta4Propagator.d.ts +46 -0
- package/lib/propagator/RungeKutta4Propagator.js +132 -0
- package/lib/propagator/RungeKutta4Propagator.js.map +1 -0
- package/lib/propagator/RungeKutta89Propagator.d.ts +29 -0
- package/lib/propagator/RungeKutta89Propagator.js +130 -0
- package/lib/propagator/RungeKutta89Propagator.js.map +1 -0
- package/lib/propagator/RungeKuttaAdaptive.d.ts +52 -0
- package/lib/propagator/RungeKuttaAdaptive.js +152 -0
- package/lib/propagator/RungeKuttaAdaptive.js.map +1 -0
- package/lib/propagator/Sgp4Propagator.d.ts +35 -0
- package/lib/propagator/Sgp4Propagator.js +55 -0
- package/lib/propagator/Sgp4Propagator.js.map +1 -0
- package/lib/smoothing/ExponentialSmoothing.d.ts +24 -0
- package/lib/smoothing/ExponentialSmoothing.js +82 -0
- package/lib/smoothing/ExponentialSmoothing.js.map +1 -0
- package/lib/types/types.d.ts +65 -584
- package/lib/types/types.js +21 -33
- package/lib/types/types.js.map +1 -1
- package/package.json +16 -14
- package/.prettierrc +0 -17
- package/babel.config.js +0 -16
- package/codecov.yml +0 -21
- package/dist/objects/base-object.d.ts +0 -40
- package/dist/objects/detailed-sat.d.ts +0 -66
- package/dist/objects/index.d.ts +0 -4
- package/dist/objects/sat.d.ts +0 -92
- package/dist/objects/sensor.d.ts +0 -93
- package/dist/objects/star.d.ts +0 -46
- package/dist/ootk.js +0 -2
- package/dist/ootk.js.LICENSE.txt +0 -77
- package/dist/sgp4/sgp4.d.ts +0 -82
- package/dist/tle/tle-format-data.d.ts +0 -6
- package/dist/tle/tle.d.ts +0 -375
- package/dist/transforms/transforms.d.ts +0 -94
- package/dist/types/types.d.ts +0 -605
- package/dist/utils/constants.d.ts +0 -34
- package/dist/utils/moon-math.d.ts +0 -113
- package/dist/utils/sun-math.d.ts +0 -230
- package/dist/utils/utils.d.ts +0 -39
- package/lib/objects/base-object.d.ts +0 -40
- package/lib/objects/base-object.js +0 -79
- package/lib/objects/base-object.js.map +0 -1
- package/lib/objects/detailed-sat.d.ts +0 -66
- package/lib/objects/detailed-sat.js +0 -149
- package/lib/objects/detailed-sat.js.map +0 -1
- package/lib/objects/sat.d.ts +0 -92
- package/lib/objects/sat.js +0 -188
- package/lib/objects/sat.js.map +0 -1
- package/lib/objects/sensor.d.ts +0 -93
- package/lib/objects/sensor.js +0 -273
- package/lib/objects/sensor.js.map +0 -1
- package/lib/objects/space-object.js +0 -60
- package/lib/objects/space-object.js.map +0 -1
- package/lib/objects/star.d.ts +0 -46
- package/lib/objects/star.js +0 -91
- package/lib/objects/star.js.map +0 -1
- package/lib/sgp4/sgp4.d.ts +0 -82
- package/lib/sgp4/sgp4.js +0 -3262
- package/lib/sgp4/sgp4.js.map +0 -1
- package/lib/tle/tle-format-data.d.ts +0 -6
- package/lib/tle/tle-format-data.js +0 -10
- package/lib/tle/tle-format-data.js.map +0 -1
- package/lib/tle/tle.d.ts +0 -375
- package/lib/tle/tle.js +0 -611
- package/lib/tle/tle.js.map +0 -1
- package/lib/transforms/transforms.d.ts +0 -94
- package/lib/transforms/transforms.js +0 -308
- package/lib/transforms/transforms.js.map +0 -1
- package/lib/utils/constants.d.ts +0 -34
- package/lib/utils/constants.js +0 -35
- package/lib/utils/constants.js.map +0 -1
- package/lib/utils/moon-math.d.ts +0 -113
- package/lib/utils/moon-math.js +0 -387
- package/lib/utils/moon-math.js.map +0 -1
- package/lib/utils/sun-math.d.ts +0 -230
- package/lib/utils/sun-math.js +0 -422
- package/lib/utils/sun-math.js.map +0 -1
- package/lib/utils/utils.d.ts +0 -39
- package/lib/utils/utils.js +0 -102
- package/lib/utils/utils.js.map +0 -1
- package/sandbox.html +0 -8
- package/tsconfig.base.json +0 -31
- package/tsconfig.build.json +0 -14
- /package/{LICENSE.MD → LICENSE.md} +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { J2000, Vector, Vector3D } from 'ootk-core';
|
|
19
|
+
import { Thrust } from './Thrust';
|
|
20
|
+
export declare class ForceModel {
|
|
21
|
+
private _centralGravity?;
|
|
22
|
+
private _thirdBodyGravity?;
|
|
23
|
+
private _solarRadiationPressure?;
|
|
24
|
+
private _atmosphericDrag?;
|
|
25
|
+
private _maneuverThrust?;
|
|
26
|
+
setGravity(mu?: number): this;
|
|
27
|
+
setEarthGravity(degree: number, order: number): void;
|
|
28
|
+
setThirdBodyGravity({ moon, sun }: {
|
|
29
|
+
moon?: boolean;
|
|
30
|
+
sun?: boolean;
|
|
31
|
+
}): void;
|
|
32
|
+
setSolarRadiationPressure(mass: number, area: number, coeff?: number): void;
|
|
33
|
+
setAtmosphericDrag(mass: number, area: number, coeff?: number, cosine?: number): void;
|
|
34
|
+
loadManeuver(maneuver: Thrust): void;
|
|
35
|
+
clearManeuver(): void;
|
|
36
|
+
acceleration(state: J2000): Vector3D;
|
|
37
|
+
derivative(state: J2000): Vector;
|
|
38
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { Earth, Vector3D } from 'ootk-core';
|
|
19
|
+
import { AtmosphericDrag } from './AtmosphericDrag';
|
|
20
|
+
import { EarthGravity } from './EarthGravity';
|
|
21
|
+
import { Gravity } from './Gravity';
|
|
22
|
+
import { SolarRadiationPressure } from './SolarRadiationPressure';
|
|
23
|
+
import { ThirdBodyGravity } from './ThirdBodyGravity';
|
|
24
|
+
// / Force model for spacecraft propagation.
|
|
25
|
+
export class ForceModel {
|
|
26
|
+
setGravity(mu = Earth.mu) {
|
|
27
|
+
this._centralGravity = new Gravity(mu);
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
setEarthGravity(degree, order) {
|
|
31
|
+
this._centralGravity = new EarthGravity(degree, order);
|
|
32
|
+
}
|
|
33
|
+
setThirdBodyGravity({ moon = false, sun = false }) {
|
|
34
|
+
this._thirdBodyGravity = new ThirdBodyGravity(moon, sun);
|
|
35
|
+
}
|
|
36
|
+
setSolarRadiationPressure(mass, area, coeff = 1.2) {
|
|
37
|
+
this._solarRadiationPressure = new SolarRadiationPressure(mass, area, coeff);
|
|
38
|
+
}
|
|
39
|
+
setAtmosphericDrag(mass, area, coeff = 2.2, cosine = 4) {
|
|
40
|
+
this._atmosphericDrag = new AtmosphericDrag(mass, area, coeff, cosine);
|
|
41
|
+
}
|
|
42
|
+
loadManeuver(maneuver) {
|
|
43
|
+
this._maneuverThrust = maneuver;
|
|
44
|
+
}
|
|
45
|
+
clearManeuver() {
|
|
46
|
+
this._maneuverThrust = null;
|
|
47
|
+
}
|
|
48
|
+
acceleration(state) {
|
|
49
|
+
let accVec = Vector3D.origin;
|
|
50
|
+
if (this._centralGravity) {
|
|
51
|
+
accVec = accVec.add(this._centralGravity.acceleration(state));
|
|
52
|
+
}
|
|
53
|
+
if (this._thirdBodyGravity) {
|
|
54
|
+
accVec = accVec.add(this._thirdBodyGravity.acceleration(state));
|
|
55
|
+
}
|
|
56
|
+
if (this._solarRadiationPressure) {
|
|
57
|
+
accVec = accVec.add(this._solarRadiationPressure.acceleration(state));
|
|
58
|
+
}
|
|
59
|
+
if (this._atmosphericDrag) {
|
|
60
|
+
accVec = accVec.add(this._atmosphericDrag.acceleration(state));
|
|
61
|
+
}
|
|
62
|
+
if (this._maneuverThrust) {
|
|
63
|
+
accVec = accVec.add(this._maneuverThrust.acceleration(state));
|
|
64
|
+
}
|
|
65
|
+
return accVec;
|
|
66
|
+
}
|
|
67
|
+
derivative(state) {
|
|
68
|
+
return state.velocity.join(this.acceleration(state));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=ForceModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForceModel.js","sourceRoot":"","sources":["../../src/force/ForceModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,KAAK,EAAiB,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,4CAA4C;AAE5C,MAAM,OAAO,UAAU;IAOrB,UAAU,CAAC,KAAa,KAAK,CAAC,EAAE;QAC9B,IAAI,CAAC,eAAe,GAAG,IAAI,OAAO,CAAC,EAAE,CAAC,CAAC;QAEvC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,eAAe,CAAC,M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,GAAG,CAAC,IAAI,CAAC,uBAAuB,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;SACvE;QACD,IAAI,IAAI,CAAC,gBAAgB,EAAE;YACzB,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;SAChE;QACD,IAAI,IAAI,CAAC,eAAe,EAAE;YACxB,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;SAC/D;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,UAAU,CAAC,KAAY;QACrB,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACvD,CAAC;CACF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { J2000, Vector3D } from 'ootk-core';
|
|
19
|
+
import { Force } from './Force';
|
|
20
|
+
export declare class Gravity implements Force {
|
|
21
|
+
mu: number;
|
|
22
|
+
/**
|
|
23
|
+
* Create a new [Gravity] object with optional gravitational
|
|
24
|
+
* @param mu Gravitational parameter _(km²/s³)_.
|
|
25
|
+
*/
|
|
26
|
+
constructor(mu?: number);
|
|
27
|
+
/**
|
|
28
|
+
* Calculates the gravitational force in spherical coordinates.
|
|
29
|
+
*
|
|
30
|
+
* @param state The J2000 state containing the position and velocity vectors.
|
|
31
|
+
* @returns The gravitational force vector in spherical coordinates.
|
|
32
|
+
*/
|
|
33
|
+
private _spherical;
|
|
34
|
+
/**
|
|
35
|
+
* Calculates the acceleration due to gravity at a given state.
|
|
36
|
+
*
|
|
37
|
+
* @param state The J2000 state at which to calculate the acceleration.
|
|
38
|
+
* @returns The acceleration vector.
|
|
39
|
+
*/
|
|
40
|
+
acceleration(state: J2000): Vector3D;
|
|
41
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { Earth } from 'ootk-core';
|
|
19
|
+
// / Simple central-body gravity model.
|
|
20
|
+
export class Gravity {
|
|
21
|
+
/**
|
|
22
|
+
* Create a new [Gravity] object with optional gravitational
|
|
23
|
+
* @param mu Gravitational parameter _(km²/s³)_.
|
|
24
|
+
*/
|
|
25
|
+
constructor(mu = Earth.mu) {
|
|
26
|
+
this.mu = mu;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Calculates the gravitational force in spherical coordinates.
|
|
30
|
+
*
|
|
31
|
+
* @param state The J2000 state containing the position and velocity vectors.
|
|
32
|
+
* @returns The gravitational force vector in spherical coordinates.
|
|
33
|
+
*/
|
|
34
|
+
_spherical(state) {
|
|
35
|
+
const rMag = state.position.magnitude();
|
|
36
|
+
return state.position.scale(-this.mu / (rMag * rMag * rMag));
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Calculates the acceleration due to gravity at a given state.
|
|
40
|
+
*
|
|
41
|
+
* @param state The J2000 state at which to calculate the acceleration.
|
|
42
|
+
* @returns The acceleration vector.
|
|
43
|
+
*/
|
|
44
|
+
acceleration(state) {
|
|
45
|
+
return this._spherical(state);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=Gravity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gravity.js","sourceRoot":"","sources":["../../src/force/Gravity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,KAAK,EAAmB,MAAM,WAAW,CAAC;AAGnD,uCAAuC;AACvC,MAAM,OAAO,OAAO;IAIlB;;;OAGG;IACH,YAAY,KAAa,KAAK,CAAC,EAAE;QAC/B,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;IAED;;;;;OAKG;IACK,UAAU,CAAC,KAAY;QAC7B,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;QAExC,OAAO,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;OAKG;IACH,YAAY,CAAC,KAAY;QACvB,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { J2000, Vector3D } from 'ootk-core';
|
|
19
|
+
import { Force } from './Force';
|
|
20
|
+
export declare class SolarRadiationPressure extends Force {
|
|
21
|
+
mass: number;
|
|
22
|
+
area: number;
|
|
23
|
+
reflectCoeff: number;
|
|
24
|
+
constructor(mass: number, area: number, reflectCoeff: number);
|
|
25
|
+
private static readonly _kRef;
|
|
26
|
+
acceleration(state: J2000): Vector3D;
|
|
27
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { astronomicalUnit, Sun } from 'ootk-core';
|
|
19
|
+
import { Force } from './Force';
|
|
20
|
+
// / Solar radiation pressure model.
|
|
21
|
+
export class SolarRadiationPressure extends Force {
|
|
22
|
+
// / Create a new [SolarRadiationPressure] object.
|
|
23
|
+
constructor(mass, area, reflectCoeff) {
|
|
24
|
+
super();
|
|
25
|
+
this.mass = mass;
|
|
26
|
+
this.area = area;
|
|
27
|
+
this.reflectCoeff = reflectCoeff;
|
|
28
|
+
}
|
|
29
|
+
acceleration(state) {
|
|
30
|
+
const rSun = Sun.positionApparent(state.epoch);
|
|
31
|
+
const r = state.position.subtract(rSun);
|
|
32
|
+
const rMag = r.magnitude();
|
|
33
|
+
const r2 = rMag * rMag;
|
|
34
|
+
const ratio = Sun.lightingRatio(state.position, rSun);
|
|
35
|
+
const p = (ratio * SolarRadiationPressure._kRef) / r2;
|
|
36
|
+
const flux = r.scale(p / rMag);
|
|
37
|
+
return flux.scale(((this.area * this.reflectCoeff) / this.mass) * 1e-3);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
// / Solar pressure _(N/m²)_;
|
|
41
|
+
SolarRadiationPressure._kRef = 4.56e-6 * astronomicalUn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AAC,GAAG,IAAI,CAAC,CAAC;IAC1E,CAAC;;AAbD,6BAA6B;AACL,4BAAK,GAAW,OAAO,GAAG,gBAAgB,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { J2000, Vector3D } from 'ootk-core';
|
|
19
|
+
import { Force } from './Force';
|
|
20
|
+
export declare class ThirdBodyGravity implements Force {
|
|
21
|
+
moon: boolean;
|
|
22
|
+
sun: boolean;
|
|
23
|
+
constructor(moon?: boolean, sun?: boolean);
|
|
24
|
+
private static _moonGravity;
|
|
25
|
+
private static _sunGravity;
|
|
26
|
+
acceleration(state: J2000): Vector3D;
|
|
27
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { Moon, Sun, Vector3D } from 'ootk-core';
|
|
19
|
+
// / Third-body gravity model.
|
|
20
|
+
export class ThirdBodyGravity {
|
|
21
|
+
// / Create a new [ThirdBodyGravity] object with the selected bodies enabled.
|
|
22
|
+
constructor(moon = false, sun = false) {
|
|
23
|
+
this.moon = moon;
|
|
24
|
+
this.sun = sun;
|
|
25
|
+
// Nothing to do here.
|
|
26
|
+
}
|
|
27
|
+
static _moonGravity(state) {
|
|
28
|
+
const rMoon = Moon.position(state.epoch);
|
|
29
|
+
const aNum = rMoon.subtract(state.position);
|
|
30
|
+
const aDen = aNum.magnitude() ** 3;
|
|
31
|
+
const bNum = rMoon;
|
|
32
|
+
const bDen = rMoon.magnitude() ** 3;
|
|
33
|
+
const gravity = aNum.scale(1 / aDen).add(bNum.scale(-1 / bDen));
|
|
34
|
+
return gravity.scale(Moon.mu);
|
|
35
|
+
}
|
|
36
|
+
static _sunGravity(state) {
|
|
37
|
+
const rSun = Sun.positionApparent(state.epoch);
|
|
38
|
+
const aNum = rSun.subtract(state.position);
|
|
39
|
+
const aDen = aNum.magnitude() ** 3;
|
|
40
|
+
const bNum = rSun;
|
|
41
|
+
const bDen = rSun.magnitude() ** 3;
|
|
42
|
+
const gravity = aNum.scale(1 / aDen).add(bNum.scale(-1 / bDen));
|
|
43
|
+
return gravity.scale(Sun.mu);
|
|
44
|
+
}
|
|
45
|
+
acceleration(state) {
|
|
46
|
+
let accVec = Vector3D.origin;
|
|
47
|
+
if (this.moon) {
|
|
48
|
+
accVec = accVec.add(ThirdBodyGravity._moonGravity(state));
|
|
49
|
+
}
|
|
50
|
+
if (this.sun) {
|
|
51
|
+
accVec = accVec.add(ThirdBodyGravity._sunGravity(state));
|
|
52
|
+
}
|
|
53
|
+
return accVec;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=ThirdBodyGravity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThirdBodyGravity.js","sourceRoot":"","sources":["../../src/force/ThirdBodyGravity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAS,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGvD,8BAA8B;AAC9B,MAAM,OAAO,gBAAgB;IAC3B,6EAA6E;IAC7E,YAAmB,OAAgB,KAAK,EAAS,MAAe,KAAK;QAAlD,SAAI,GAAJ,IAAI,CAAiB;QAAS,QAAG,GAAH,GAAG,CAAiB;QACnE,sBAAsB;IACxB,CAAC;IAEO,MAAM,CAAC,YAAY,CAAC,KAAY;QACtC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACzC,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC5C,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACnC,MAAM,IAAI,GAAG,KAAK,CAAC;QACnB,MAAM,IAAI,GAAG,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACpC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,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0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { EpochUTC, J2000, Vector3D } from 'ootk-core';
|
|
19
|
+
import { Force } from './Force';
|
|
20
|
+
export declare class Thrust implements Force {
|
|
21
|
+
center: EpochUTC;
|
|
22
|
+
radial: number;
|
|
23
|
+
intrack: number;
|
|
24
|
+
crosstrack: number;
|
|
25
|
+
durationRate: number;
|
|
26
|
+
constructor(center: EpochUTC, radial: number, intrack: number, crosstrack: number, durationRate?: number);
|
|
27
|
+
deltaV: Vector3D;
|
|
28
|
+
get magnitude(): number;
|
|
29
|
+
get duration(): number;
|
|
30
|
+
get start(): EpochUTC;
|
|
31
|
+
get stop(): EpochUTC;
|
|
32
|
+
acceleration(state: J2000): Vector3D;
|
|
33
|
+
apply(state: J2000): J2000;
|
|
34
|
+
get isImpulsive(): boolean;
|
|
35
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { RIC, Vector3D } from 'ootk-core';
|
|
19
|
+
// / Thrust force model.
|
|
20
|
+
export class Thrust {
|
|
21
|
+
constructor(center, radial, intrack, crosstrack, durationRate = 0.0) {
|
|
22
|
+
this.center = center;
|
|
23
|
+
this.radial = radial;
|
|
24
|
+
this.intrack = intrack;
|
|
25
|
+
this.crosstrack = crosstrack;
|
|
26
|
+
this.durationRate = durationRate;
|
|
27
|
+
this.deltaV = new Vector3D(radial * 1e-3, intrack * 1e-3, crosstrack * 1e-3);
|
|
28
|
+
}
|
|
29
|
+
get magnitude() {
|
|
30
|
+
return this.deltaV.magnitude() * 1000.0;
|
|
31
|
+
}
|
|
32
|
+
get duration() {
|
|
33
|
+
return this.magnitude * this.durationRate;
|
|
34
|
+
}
|
|
35
|
+
get start() {
|
|
36
|
+
return this.center.roll(-0.5 * this.duration);
|
|
37
|
+
}
|
|
38
|
+
get stop() {
|
|
39
|
+
return this.center.roll(0.5 * this.duration);
|
|
40
|
+
}
|
|
41
|
+
acceleration(state) {
|
|
42
|
+
const relative = new RIC(Vector3D.origin, this.deltaV.scale(1.0 / this.duration));
|
|
43
|
+
return relative.toJ2000(state).velocity.subtract(state.velocity);
|
|
44
|
+
}
|
|
45
|
+
apply(state) {
|
|
46
|
+
const relative = new RIC(Vector3D.origin, this.deltaV);
|
|
47
|
+
return relative.toJ2000(state);
|
|
48
|
+
}
|
|
49
|
+
get isImpulsive() {
|
|
50
|
+
return this.duration <= 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=Thrust.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Thrust.js","sourceRoot":"","sources":["../../src/force/Thrust.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAmB,GAAG,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAG3D,wBAAwB;AACxB,MAAM,OAAO,MAAM;IACjB,YACS,MAAgB,EAChB,MAAc,EACd,OAAe,EACf,UAAkB,EAClB,eAAuB,GAAG;QAJ1B,WAAM,GAAN,MAAM,CAAU;QAChB,WAAM,GAAN,MAAM,CAAQ;QACd,YAAO,GAAP,OAAO,CAAQ;QACf,eAAU,GAAV,UAAU,CAAQ;QAClB,iBAAY,GAAZ,YAAY,CAAc;QAEjC,IAAI,CAAC,MAAM,GAAG,IAAI,QAAQ,CAAC,MAAM,GAAG,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC,CAAC;IAC/E,CAAC;IAID,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,GAAG,MAAM,CAAC;IAC1C,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC;IAC5C,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC/C,CAAC;IAED,YAAY,CAAC,KAAY;QACvB,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAElF,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACnE,CAAC;IAED,KAAK,CAAC,KAAY;QAChB,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAEvD,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { PositionVelocity } from 'ootk-core';
|
|
19
|
+
export declare class ChebyshevCoefficients {
|
|
20
|
+
a: number;
|
|
21
|
+
b: number;
|
|
22
|
+
private _cx;
|
|
23
|
+
private _cy;
|
|
24
|
+
private _cz;
|
|
25
|
+
_cxd: Float64Array;
|
|
26
|
+
_cyd: Float64Array;
|
|
27
|
+
_czd: Float64Array;
|
|
28
|
+
constructor(a: number, b: number, _cx: Float64Array, _cy: Float64Array, _cz: Float64Array);
|
|
29
|
+
/**
|
|
30
|
+
* Calculates the derivative of a polynomial represented by Chebyshev coefficients.
|
|
31
|
+
*
|
|
32
|
+
* @param a - The lower bound of the polynomial's domain.
|
|
33
|
+
* @param b - The upper bound of the polynomial's domain.
|
|
34
|
+
* @param c - The Chebyshev coefficients of the polynomial.
|
|
35
|
+
* @returns The derivative of the polynomial as an array of coefficients.
|
|
36
|
+
*/
|
|
37
|
+
private static _derivative;
|
|
38
|
+
get sizeBytes(): number;
|
|
39
|
+
/**
|
|
40
|
+
* Evaluates the Chebyshev polynomial represented by the given coefficients at the specified value.
|
|
41
|
+
*
|
|
42
|
+
* @param c - The coefficients of the Chebyshev polynomial.
|
|
43
|
+
* @param t - The value at which to evaluate the polynomial _(POSIX seconds)_.
|
|
44
|
+
* @returns The result of evaluating the polynomial at the specified value.
|
|
45
|
+
*/
|
|
46
|
+
evaluate(c: Float64Array, t: number): number;
|
|
47
|
+
/**
|
|
48
|
+
* Interpolates the position and velocity at a given time (km, km/s).
|
|
49
|
+
*
|
|
50
|
+
* @param t - The time value to interpolate at _(POSIX seconds)_.
|
|
51
|
+
* @returns An object containing the interpolated position and velocity.
|
|
52
|
+
*/
|
|
53
|
+
interpolate(t: number): PositionVelocity;
|
|
54
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @thkruz Theodore Kruczek
|
|
3
|
+
*
|
|
4
|
+
* @license AGPL-3.0-or-later
|
|
5
|
+
* @Copyright (c) 2020-2024 Theodore Kruczek
|
|
6
|
+
*
|
|
7
|
+
* Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
|
|
8
|
+
* terms of the GNU Affero General Public License as published by the Free Software
|
|
9
|
+
* Foundation, either version 3 of the License, or (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Orbital Object ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
12
|
+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* See the GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along with
|
|
16
|
+
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { Vector3D } from 'ootk-core';
|
|
19
|
+
// / Chebyshev compressed ephemeris coefficients.
|
|
20
|
+
export class ChebyshevCoefficients {
|
|
21
|
+
// / Create a new [ChebyshevCoefficients] object.
|
|
22
|
+
constructor(a, b, _cx, _cy, _cz) {
|
|
23
|
+
this.a = a;
|
|
24
|
+
this.b = b;
|
|
25
|
+
this._cx = _cx;
|
|
26
|
+
this._cy = _cy;
|
|
27
|
+
this._cz = _cz;
|
|
28
|
+
this._cxd = ChebyshevCoefficients._derivative(a, b, _cx);
|
|
29
|
+
this._cyd = ChebyshevCoefficients._derivative(a, b, _cy);
|
|
30
|
+
this._czd = ChebyshevCoefficients._derivative(a, b, _cz);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Calculates the derivative of a polynomial represented by Chebyshev coefficients.
|
|
34
|
+
*
|
|
35
|
+
* @param a - The lower bound of the polynomial's domain.
|
|
36
|
+
* @param b - The upper bound of the polynomial's domain.
|
|
37
|
+
* @param c - The Chebyshev coefficients of the polynomial.
|
|
38
|
+
* @returns The derivative of the polynomial as an array of coefficients.
|
|
39
|
+
*/
|
|
40
|
+
static _derivative(a, b, c) {
|
|
41
|
+
const n = c.length;
|
|
42
|
+
const d = new Float64Array(n);
|
|
43
|
+
d[n - 1] = 0;
|
|
44
|
+
d[n - 2] = 2 * (n - 1) * c[n - 1];
|
|
45
|
+
for (let k = n - 3; k >= 0; k--) {
|
|
46
|
+
d[k] = d[k + 2] + 2 * (k + 1) * c[k + 1];
|
|
47
|
+
}
|
|
48
|
+
for (let k = 0; k < n; k++) {
|
|
49
|
+
d[k] *= 2 / (b - a);
|
|
50
|
+
}
|
|
51
|
+
return d;
|
|
52
|
+
}
|
|
53
|
+
// / Return the size _(bytes)_ of this coefficient set's cached data.
|
|
54
|
+
get sizeBytes() {
|
|
55
|
+
return (64 * 2 + 64 * 3 * this._cx.length) / 8;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Evaluates the Chebyshev polynomial represented by the given coefficients at the specified value.
|
|
59
|
+
*
|
|
60
|
+
* @param c - The coefficients of the Chebyshev polynomial.
|
|
61
|
+
* @param t - The value at which to evaluate the polynomial _(POSIX seconds)_.
|
|
62
|
+
* @returns The result of evaluating the polynomial at the specified value.
|
|
63
|
+
*/
|
|
64
|
+
evaluate(c, t) {
|
|
65
|
+
const n = c.length;
|
|
66
|
+
const x = (t - 0.5 * (this.b + this.a)) / (0.5 * (this.b - this.a));
|
|
67
|
+
const alpha = 2 * x;
|
|
68
|
+
const beta = -1;
|
|
69
|
+
let y1 = 0.0;
|
|
70
|
+
let y2 = 0.0;
|
|
71
|
+
for (let k = n - 1; k >= 1; k--) {
|
|
72
|
+
const tmp = y1;
|
|
73
|
+
y1 = alpha * y1 + beta * y2 + c[k];
|
|
74
|
+
y2 = tmp;
|
|
75
|
+
}
|
|
76
|
+
return x * y1 - y2 + 0.5 * c[0];
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Interpolates the position and velocity at a given time (km, km/s).
|
|
80
|
+
*
|
|
81
|
+
* @param t - The time value to interpolate at _(POSIX seconds)_.
|
|
82
|
+
* @returns An object containing the interpolated position and velocity.
|
|
83
|
+
*/
|
|
84
|
+
interpolate(t) {
|
|
85
|
+
const pos = new Vector3D(this.evaluate(this._cx, t), this.evaluate(this._cy, t), this.evaluate(this._cz, t));
|
|
86
|
+
const vel = new Vector3D(this.evaluate(this._cxd, t), this.evaluate(this._cyd, t), this.evaluate(this._czd, t));
|
|
87
|
+
return { position: pos, velocity: vel };
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=ChebyshevCoefficients.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChebyshevCoefficients.js","sourceRoot":"","sources":["../../src/interpolator/ChebyshevCoefficients.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAoB,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEvD,iDAAiD;AACjD,MAAM,OAAO,qBAAqB;IAIhC,iDAAiD;IACjD,YACS,CAAS,EACT,CAAS,EACR,GAAiB,EACjB,GAAiB,EACjB,GAAiB;QAJlB,MAAC,GAAD,CAAC,CAAQ;QACT,MAAC,GAAD,CAAC,CAAQ;QACR,QAAG,GAAH,GAAG,CAAc;QACjB,QAAG,GAAH,GAAG,CAAc;QACjB,QAAG,GAAH,GAAG,CAAc;QAEzB,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;QACzD,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;QACzD,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;OAOG;IACK,MAAM,CAAC,WAAW,CAAC,CAAS,EAAE,CAAS,EAAE,CAAe;QAC9D,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;QACnB,MAAM,CAAC,GAAG,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;QAE9B,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QACb,CAA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