-
Notifications
You must be signed in to change notification settings - Fork 0
/
taylorSeriesIntegratorGenMap.h
65 lines (51 loc) · 2.32 KB
/
taylorSeriesIntegratorGenMap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef TAYLORSERIESINTEGRATORGENMAP_H
#define TAYLORSERIESINTEGRATORGENMAP_H
#include <vector>
#include <map>
#include <Eigen/Core>
#include "Eigen/Core"
#include "integrationSettings.h"
#include "spacecraft.h"
#include "recurrenceRelations.h"
#include "problemRecurrenceRelationsGen.h"
#include "discreteForceModelGen.h"
#include "stepSizeControlTSI.h"
class TaylorSeriesIntegrator
{
public:
TaylorSeriesIntegrator(
bool useCSI,
bool useCorrectGamma,
ProblemRecurrenceRelationsPointer problemRecurrenceRelationsPointer,
DiscreteForceModelPointer discreteForceModelPointer,
SpacecraftPointer spacecraftPointer,
IntegrationSettingsPointer integrationSettingsPointer,
ConstantsPointer constantsPointer,
StepSizeControlTSIPointer stepSizeControlTSIPointer);
~TaylorSeriesIntegrator( );
void integrate();
void setStateMap( std::map< double, Eigen::MatrixXd > stateMap ) {stateMap_ = stateMap;}
void setComputedThrustAccelerationMap( std::map< double, Eigen::MatrixXd > computedThrustAccelerationMap )
{computedThrustAccelerationMap_ = computedThrustAccelerationMap;}
void setFullStateMap( std::map< double, Eigen::MatrixXd > fullStateMap )
{fullStateMap_ = fullStateMap;}
std::map< double, Eigen::MatrixXd > getStateMap() {return stateMap_;}
std::map< double, Eigen::MatrixXd > getComputedThrustAccelerationMap() {return computedThrustAccelerationMap_;}
std::map< double, Eigen::MatrixXd > getFullStateMap() {return fullStateMap_;}
std::vector<Vector11d> getStates() {return states_;}
private:
bool useCSI_;
bool useCorrectGamma_;
ProblemRecurrenceRelationsPointer problemRecurrenceRelationsPointer_;
DiscreteForceModelPointer discreteForceModelPointer_;
SpacecraftPointer spacecraftPointer_;
IntegrationSettingsPointer integrationSettingsPointer_;
ConstantsPointer constantsPointer_;
StepSizeControlTSIPointer stepSizeControlTSIPointer_;
std::map< double, Eigen::MatrixXd > stateMap_;
std::map< double, Eigen::MatrixXd > computedThrustAccelerationMap_;
std::map< double, Eigen::MatrixXd > fullStateMap_;
std::vector<Vector11d> states_;
};
typedef boost::shared_ptr< TaylorSeriesIntegrator > TaylorSeriesIntegratorPointer;
#endif // TAYLORSERIESINTEGRATORGEN_H