Skip to content

Commit

Permalink
Skeleton for Mars DTM atmosphere
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicDirkx committed Oct 19, 2023
1 parent b84d599 commit abb5613
Show file tree
Hide file tree
Showing 5 changed files with 169 additions and 2 deletions.
106 changes: 106 additions & 0 deletions include/tudat/astro/aerodynamics/marsDtmAtmosphereModel.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/* Copyright (c) 2010-2019, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
* a copy of the license with this file. If not, please or visit:
* http://tudat.tudelft.nl/LICENSE.
*
*/

#ifndef TUDAT_MARS_DTM_ATMOSPHERE_MODEL_H
#define TUDAT_MARS_DTM_ATMOSPHERE_MODEL_H

#include "tudat/astro/aerodynamics/atmosphereModel.h"

namespace tudat
{

namespace aerodynamics
{

class MarsDtmAtmosphereModel: public AtmosphereModel
{
public:

MarsDtmAtmosphereModel( ){ }

//! Default destructor.
/*!
* Default destructor.
*/
virtual ~MarsDtmAtmosphereModel( ) { }

//! Get local density.
/*!
* Returns the local density parameter of the atmosphere in kg per meter^3.
* \param altitude Altitude.
* \param longitude Longitude.
* \param latitude Latitude.
* \param time Time.
* \return Atmospheric density.
*/
virtual double getDensity( const double altitude, const double longitude,
const double latitude, const double time )
{

}

//! Get local pressure.
/*!
* Returns the local pressure of the atmosphere parameter in Newton per meter^2.
* \param altitude Altitude.
* \param longitude Longitude.
* \param latitude Latitude.
* \param time Time.
* \return Atmospheric pressure.
*/
virtual double getPressure( const double altitude, const double longitude,
const double latitude, const double time )
{

}

//! Get local temperature.
/*!
* Returns the local temperature of the atmosphere parameter in Kelvin.
* \param altitude Altitude.
* \param longitude Longitude.
* \param latitude Latitude.
* \param time Time.
* \return Atmospheric temperature.
*/
virtual double getTemperature( const double altitude, const double longitude,
const double latitude, const double time )
{

}

//! Get local speed of sound.
/*!
* Returns the local speed of sound of the atmosphere in m/s.
* \param altitude Altitude.
* \param longitude Longitude.
* \param latitude Latitude.
* \param time Time.
* \return Atmospheric speed of sound.
*/
virtual double getSpeedOfSound( const double altitude, const double longitude,
const double latitude, const double time )
{

}

protected:

private:

};


} // namespace aerodynamics

} // namespace tudat

#endif // TUDAT_MARS_DTM_ATMOSPHERE_MODEL_H
6 changes: 4 additions & 2 deletions src/astro/aerodynamics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ set(aerodynamics_SOURCES
"flightConditions.cpp"
"trimOrientation.cpp"
"equilibriumWallTemperature.cpp"
)
"marsDtmAtmosphereModel.cpp"
)

# Set the header files.
set(aerodynamics_HEADERS
Expand All @@ -46,7 +47,8 @@ set(aerodynamics_HEADERS
"aerodynamicGuidance.h"
"equilibriumWallTemperature.h"
"windModel.h"
)
"marsDtmAtmosphereModel.h"
)

if (TUDAT_BUILD_WITH_NRLMSISE00)
set(aerodynamics_SOURCES
Expand Down
11 changes: 11 additions & 0 deletions src/astro/aerodynamics/marsDtmAtmosphereModel.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

#include "tudat/astro/aerodynamics/marsDtmAtmosphereModel.h"

namespace tudat
{
namespace aerodynamics
{

} // namespace aerodynamics

} // namespace tudat
5 changes: 5 additions & 0 deletions tests/src/astro/aerodynamics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ TUDAT_ADD_TEST_CASE(WindModel
${Tudat_PROPAGATION_LIBRARIES}
)

TUDAT_ADD_TEST_CASE(MarsDtmAtmosphere
PRIVATE_LINKS
${Tudat_PROPAGATION_LIBRARIES}
)

if (TUDAT_BUILD_WITH_NRLMSISE00)
TUDAT_ADD_TEST_CASE(NRLMSISE00Atmosphere
PRIVATE_LINKS
Expand Down
43 changes: 43 additions & 0 deletions tests/src/astro/aerodynamics/unitTestMarsDtmAtmosphere.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/* Copyright (c) 2010-2019, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
* a copy of the license with this file. If not, please or visit:
* http://tudat.tudelft.nl/LICENSE.
*
* References
*
*/

//#define BOOST_TEST_DYN_LINK
//#define BOOST_TEST_MAIN

#include <limits>

#include <boost/test/unit_test.hpp>

#include "tudat/astro/aerodynamics/marsDtmAtmosphereModel.h"

int main( )
{

}
//
//namespace tudat
//{
//namespace unit_tests
//{
//
//BOOST_AUTO_TEST_SUITE( test_mars_dtm_atmosphere )
//
//BOOST_AUTO_TEST_CASE( testMarsDtmAtmosphere )
//{
//
//}
//
//BOOST_AUTO_TEST_SUITE_END( )
//
//} // namespace unit_tests
//} // namespace tudat

0 comments on commit abb5613

Please sign in to comment.