Tudat/Astrodynamics/Aerodynamics/UnitTests/unitTestNRLMSISE00Atmosphere.cpp
//! Perform NRLMSISE-00 test 19
// Check computation of molar mass
Perform NRLMSISE-00 test 19
Check computation of molar mass
Perform NRLMSISE - 00 test 19 Check computation of molar mass
BOOST_AUTO_TEST_CASE( testMolarMass )
{
    NRLMSISE00Atmosphere model( std::bind( &function, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, false, false ) );
    double altitude = 0.0 ;
    double longitude = 0.0 ;
    double latitude = 0.0 ;
    double time = 0.0 ;
    BOOST_CHECK_CLOSE_FRACTION( model.getMeanMolarMass(altitude,longitude,latitude,time), 28.96643E-3 , 3E-4 ); 
    altitude = 50.0E3;
    BOOST_CHECK_CLOSE_FRACTION( model.getMeanMolarMass(altitude,longitude,latitude,time), 28.96643E-3 , 3E-4 ); 
    altitude = 200.0E3;
    BOOST_CHECK_CLOSE_FRACTION( model.getMeanMolarMass(altitude,longitude,latitude,time), 21.0E-3 , 3E-2 ); 
    altitude = 300.0E3;
    BOOST_CHECK_CLOSE_FRACTION( model.getMeanMolarMass(altitude,longitude,latitude,time), 18.0E-3 , 3E-2 ); 
}
BOOST_AUTO_TEST_CASE ( testMolarMass ) { NRLMSISE00Atmosphere model ( std :: bind ( & function , std :: placeholders :: _1 , std :: placeholders :: _2 , std :: placeholders :: _3 , std :: placeholders :: _4 , false , false ) ) ; double altitude = 0.0 ; double longitude = 0.0 ; double latitude = 0.0 ; double time = 0.0 ; BOOST_CHECK_CLOSE_FRACTION ( model . getMeanMolarMass ( altitude , longitude , latitude , time ) , 28.96643E-3 , 3E-4 ) ; altitude = 50.0E3 ; BOOST_CHECK_CLOSE_FRACTION ( model . getMeanMolarMass ( altitude , longitude , latitude , time ) , 28.96643E-3 , 3E-4 ) ; altitude = 200.0E3 ; BOOST_CHECK_CLOSE_FRACTION ( model . getMeanMolarMass ( altitude , longitude , latitude , time ) , 21.0E-3 , 3E-2 ) ; altitude = 300.0E3 ; BOOST_CHECK_CLOSE_FRACTION ( model . getMeanMolarMass ( altitude , longitude , latitude , time ) , 18.0E-3 , 3E-2 ) ; }
Perform NRLMSISE-00 test 19
Check computation of molar mass
Perform NRLMSISE - 00 test 19 Check computation of molar mass
// Construct model with default properties // Check using textbook example: Dynamics of atmospheric re-entry, Regan , 1993 // < 0.03% // < 0.03% // < 3% // < 3%