Tudat/SimulationSetup/PropagationSetup/createMassRateModels.cpp
//! Function to create a list of mass rate models for a list of bodies.
Function to create a list of mass rate models for a list of bodies.
Function to create a list of mass rate models for a list of bodies .
basic_astrodynamics::MassRateModelMap createMassRateModelsMap(
        const NamedBodyMap& bodyMap,
        const SelectedMassRateModelMap& massRateModelSettings,
        const basic_astrodynamics::AccelerationMap& accelerationModels )
{
    std::map< std::string, std::vector< std::shared_ptr< basic_astrodynamics::MassRateModel > > > massRateModels;
    for( std::map< std::string, std::vector< std::shared_ptr< MassRateModelSettings > > >::const_iterator settingsIterator =
         massRateModelSettings.begin( ); settingsIterator != massRateModelSettings.end( ); settingsIterator++)
    {
        for( unsigned int i = 0; i < settingsIterator->second.size( ); i++ )
        {
            massRateModels[ settingsIterator->first ].push_back(
                        createMassRateModel( settingsIterator->first, settingsIterator->second.at( i ), bodyMap,
                                             accelerationModels ) );
        }
    }
    return massRateModels;
}
basic_astrodynamics :: MassRateModelMap createMassRateModelsMap ( const NamedBodyMap & bodyMap , const SelectedMassRateModelMap & massRateModelSettings , const basic_astrodynamics :: AccelerationMap & accelerationModels ) { std :: map < std :: string , std :: vector < std :: shared_ptr < basic_astrodynamics :: MassRateModel > > > massRateModels ; for ( std :: map < std :: string , std :: vector < std :: shared_ptr < MassRateModelSettings > > > :: const_iterator settingsIterator = massRateModelSettings . begin ( ) ; settingsIterator != massRateModelSettings . end ( ) ; settingsIterator ++ ) { for ( unsigned int i = 0 ; i < settingsIterator -> second . size ( ) ; i ++ ) { massRateModels [ settingsIterator -> first ] . push_back ( createMassRateModel ( settingsIterator -> first , settingsIterator -> second . at ( i ) , bodyMap , accelerationModels ) ) ; } } return massRateModels ; }
Function to create a list of mass rate models for a list of bodies.
Function to create a list of mass rate models for a list of bodies .
// Iterate over all bodies // Iterate over all mass model settings for current body.