HarrisPriesterDrag.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: HarrisPriesterDrag.hpp 2457 2010-08-18 14:20:12Z coandrei $"
00002 
00008 #ifndef   GPSTK_HARRIS_PRIESTER_DRAG_HPP
00009 #define   GPSTK_HARRIS_PRIESTER_DRAG_HPP
00010 
00011 
00012 //============================================================================
00013 //
00014 //  This file is part of GPSTk, the GPS Toolkit.
00015 //
00016 //  The GPSTk is free software; you can redistribute it and/or modify
00017 //  it under the terms of the GNU Lesser General Public License as published
00018 //  by the Free Software Foundation; either version 2.1 of the License, or
00019 //  any later version.
00020 //
00021 //  The GPSTk is distributed in the hope that it will be useful,
00022 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00023 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00024 //  GNU Lesser General Public License for more details.
00025 //
00026 //  You should have received a copy of the GNU Lesser General Public
00027 //  License along with GPSTk; if not, write to the Free Software Foundation,
00028 //  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00029 //
00030 //  Wei Yan - Chinese Academy of Sciences . 2009, 2010
00031 //
00032 //============================================================================
00033 
00034 
00035 #include "AtmosphericDrag.hpp"
00036 #include "Matrix.hpp"
00037 #include <map>
00038 
00039 namespace gpstk
00040 {
00043 
00050    class HarrisPriesterDrag : public AtmosphericDrag
00051    {
00052    public:
00054       HarrisPriesterDrag();
00055 
00057       virtual ~HarrisPriesterDrag() {};
00058 
00060       void test();
00061 
00063       void updateF107(double f107 = 157);
00064 
00065 
00073       virtual double computeDensity(UTCTime utc, EarthBody& rb, Vector<double> r, Vector<double> v);
00074 
00075    protected:
00076 
00078       void init();
00079 
00080       Matrix<double> getDensityCoeficentsByF107(double f107 = 157);
00081 
00082    protected:
00084       static const double upper_limit;        
00085 
00087       static const double lower_limit;
00088          
00090       static const double ra_lag;       
00091     
00093       double workingF107;
00094 
00096       Matrix<double> workingDens;
00097 
00099       std::map<int, Matrix<double> > hpCoeficient;
00100          
00103       static const double hpcoef[10][177];
00104 
00105    }; // End of class 'HarrisPriesterDrag'
00106 
00107       // @}
00108 
00109 }  // End of namespace 'gpstk'
00110 
00111 #endif   // GPSTK_HARRIS_PRIESTER_DRAG_HPP
00112 
00113 
00114 
00115 
00116 

Generated on Tue May 22 03:30:58 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1