forked from Tudat/tudat
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b84d599
commit abb5613
Showing
5 changed files
with
169 additions
and
2 deletions.
There are no files selected for viewing
106 changes: 106 additions & 0 deletions
106
include/tudat/astro/aerodynamics/marsDtmAtmosphereModel.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
tests/src/astro/aerodynamics/unitTestMarsDtmAtmosphere.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |