Tudat / tudat

NOTE: This Tudat version is no longer supported. See https://docs.tudat.space/en/stable/ and https://github.com/tudat-team/tudat-bundle for the new version
BSD 3-Clause "New" or "Revised" License
87 stars 143 forks source link

Ephemeris not set automatically #356

Closed JuliusWeinmiller closed 5 years ago

JuliusWeinmiller commented 6 years ago

Hello,

The ephemeris of a vehicle is not set automatically in the TranslationalStatePropagatorSettings. The vehicle experiences aerodynamic, thrust, and gravity accelerations in the Earth's atmosphere with a MassRateModel from thrust. The workaround is for this bug is manually adding both the ephemeris and massmodel, but setting the ephemeris should be done automatically by tudat.

bodyMap[ "Vehicle " ]->setEphemeris( boost::make_shared< ephemerides::TabulatedCartesianEphemeris< > >( boost::shared_ptr< interpolators::OneDimensionalInterpolator < double, Eigen::Vector6d > >( ), "Earth", "J2000" ) ); bodyMap[ "Vehicle " ]->setBodyMassFunction( boost::lambda::constant( Mass) );

DominicDirkx commented 6 years ago

Functionality should be documented better. No changes in setup are foreseen: ephemeris is only reset if

@ifodde Could you update this in a future wiki modification?