🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
RunTime.cpp 文件参考
#include "RunTime.hpp"
#include "DataContext.hpp"
#include "AstUtil/FileSystem.hpp"
#include "AstUtil/Logger.hpp"
#include "AstUtil/StartupConfig.hpp"
#include "AstCore/TimePoint.hpp"
#include "AstCore/FundamentalArguments.hpp"
#include "AstCore/GlobalContext.hpp"
#include "AstCore/SpiceApi.hpp"
#include "AstCore/TimeSystem.hpp"
#include "AstCore/OrbitElement.hpp"
#include "AstCore/JplSpk.hpp"
#include "AstCore/JplDe.hpp"
#include "AstMath/MathOperator.hpp"
#include "RunTimeData.hpp"
#include "RunTimeSolarSystem.hpp"
#include <assert.h>

struct  ast::InitalizeConfig
 
struct  ast::XYSCache
 

命名空间

namespace  ast
 

宏定义

#define AST_DEFAULT_FILE_LEAPSECOND   "Time/Leap_Second.dat"
 
#define AST_DEFAULT_FILE_JPLDE   "SolarSystem/plneph.430"
 
#define AST_DEFAULT_FILE_EOP   "SolarSystem/Earth/EOP-All.txt"
 
#define AST_DEFAULT_FILE_SPACEWEATHER   "SolarSystem/Earth/SW-Last5Years.txt"
 
#define AST_DEFAULT_FILE_IAUX   "IERS-conventions/2010/tab5.2a.txt"
 
#define AST_DEFAULT_FILE_IAUY   "IERS-conventions/2010/tab5.2b.txt"
 
#define AST_DEFAULT_FILE_IAUS   "IERS-conventions/2010/tab5.2d.txt"
 
#define AST_DEFAULT_FILE_IAUXYS_PRECOMPUTED   "Test/ICRF/IAU2006_XYS.dat"
 
#define AST_DEFAULT_DIR_SOLARSYSTEM   "SolarSystem/"
 

类型定义

using ast::StringVector = std::vector<std::string>
 

函数

GlobalContextast::aGlobalContext_Get ()
 
IAUXYSast::aGlobalContext_GetIAUXYS ()
 
std::string ast::aGetDefaultSPKDir ()
 
errc_t ast::aInitializeByDefault (DataContext *context)
 
errc_t ast::aInitializeByConfig (DataContext *context, const InitalizeConfig &config)
 
fs::path ast::aRelPathToAbs (const fs::path &relpath, const fs::path &basedir)
 
errc_t ast::aInitializeByConfig (DataContext *context, StringView configfile)
 
errc_t ast::aInitializeByConfig (StringView configfile)
 
errc_t ast::aInitialize (DataContext *context)
 
errc_t ast::aInitialize ()
 
errc_t ast::aUninitialize ()
 
std::string ast::aDataDirGet ()
 
errc_t ast::aDataDirGet (std::string &datadir)
 
errc_t ast::aDataDirSet (StringView dirpath)
 
DataContextast::aDataContext_GetCurrent ()
 
DataContextast::aDataContext_GetDefault ()
 
DataContextast::aDataContext_EnsureDefault ()
 
DataContextast::aDataContext_EnsureCurrent ()
 
void ast::aDataContext_SetCurrent (DataContext *context)
 
EOPast::aDataContext_GetEOP ()
 
SolarSystemast::aDataContext_GetSolarSystem ()
 
IAUXYSPrecomputedast::aDataContext_GetIAUXYSPrecomputed ()
 
StartupConfigast::aDataContext_GetConfig ()
 
DataContextast::aDataContext_New ()
 
double ast::aLeapSecondUTC (double jdUTC)
 
double ast::aLeapSecondUTCMJD (double mjdUTC)
 
errc_t ast::aJplDeGetPosVelICRF (const TimePoint &time, int target, int referenceBody, Vector3d &pos, Vector3d &vel)
 
errc_t ast::aJplDeGetPosICRF (const TimePoint &time, int target, int referenceBody, Vector3d &pos)
 
errc_t ast::aJplDeGetNutation (const TimePoint &time, double &dpsi, double &deps)
 
errc_t ast::aJplDeGetLibration (const TimePoint &time, Vector3d &ang)
 
errc_t ast::aJplDeGetLibration (const TimePoint &time, Euler &ang)
 
int ast::aJplDeNum ()
 
errc_t ast::aJplDeGetInterval (TimeInterval &interval)
 
errc_t ast::aJplDeOpen (const char *filepath)
 
void ast::aJplDeClose ()
 
double ast::aUT1MinusUTC_UTC (const JulianDate &jdUTC)
 
void ast::aPoleMotion (const TimePoint &tp, double &x, double &y)
 
void ast::aPoleMotionUTC (const JulianDate &jdUTC, double &x, double &y)
 
double ast::aLOD (const TimePoint &tp)
 
void ast::aTheoreticalXYS_IERS2010 (double t, array3d &xys)
 
void ast::aTheoreticalXYS_IERS2010_Cache (double t, array3d &xys)
 
void ast::aTheoreticalXYS_IERS2010 (const TimePoint &tp, array3d &xys)
 
void ast::aTheoreticalXYS_IERS2010_TT (const JulianDate &jdTT, array3d &xys)
 
errc_t ast::aTheoreticalXYS_IERS2010Precomputed (const TimePoint &tp, array3d &xys)
 
void ast::aTheoreticalXYS (const TimePoint &tp, array3d &xys)
 
void ast::aXYCorrection (const TimePoint &tp, array2d &xyCorrection)
 
void ast::aXYS_IERS2010 (const TimePoint &tp, array3d &xys)
 
void ast::aXYS (const TimePoint &tp, array3d &xys)
 
SolarSystemast::aGetSolarSystem ()
 
CelestialBodyast::aGetBody (StringView name)
 
CelestialBodyast::aGetDefaultBody ()
 
CelestialBodyast::aGetMercury ()
 
CelestialBodyast::aGetVenus ()
 
CelestialBodyast::aGetEarth ()
 
CelestialBodyast::aGetMars ()
 
CelestialBodyast::aGetJupiter ()
 
CelestialBodyast::aGetSaturn ()
 
CelestialBodyast::aGetUranus ()
 
CelestialBodyast::aGetNeptune ()
 
CelestialBodyast::aGetPluto ()
 
CelestialBodyast::aGetMoon ()
 
CelestialBodyast::aGetSun ()
 
CelestialBodyast::aGetSSBarycenter ()
 
CelestialBodyast::aGetEMBarycenter ()
 
errc_t ast::aSpiceGetPosICRF (const TimePoint &time, int target, int referenceBody, Vector3d &pos)
 
errc_t ast::aSpiceGetPosVelICRF (const TimePoint &time, int target, int referenceBody, Vector3d &pos, Vector3d &vel)
 

变量

A_THREAD_LOCAL DataContextast::t_currentDataContext = nullptr
 
std::unique_ptr< DataContextast::g_defaultDataContext = nullptr
 
A_THREAD_LOCAL XYSCache ast::tXYSCache {std::numeric_limits<double>::quiet_NaN(), {0.0, 0.0, 0.0}}
 

详细描述


~

作者
axel
日期
26.11.2025

宏定义说明

◆ AST_DEFAULT_FILE_LEAPSECOND

#define AST_DEFAULT_FILE_LEAPSECOND   "Time/Leap_Second.dat"

ast项目(https://github.com/space-ast/ast) 本项目基于 Apache 2.0 开源许可证分发。 您可在遵守许可证条款的前提下使用、修改和分发本软件。 许可证全文请见:

http://www.apache.org/licenses/LICENSE-2.0

重要须知: 软件按“现有状态”提供,无任何明示或暗示的担保条件。 除非法律要求或书面同意,作者与贡献者不承担任何责任。 使用本软件所产生的风险,需由您自行承担。