public class MSIS00Adapter extends Object implements ExtendedAtmosphere
NRLMSISE00
class - adapted from Fortran - and the
SIRIUS data structures. It implements the method getDensity of the interface Atmosphere, based on
the MSIS00 atmospheric model.
Warning: this model is not continuous. There is a discontinuity every day (at 0h in UTC time scale). Discontinuities are however very small (1E-3 on a relative scale).
Constructor and Description |
---|
MSIS00Adapter(MSISE2000InputParameters data,
double rEq,
double f,
CelestialPoint sunBody)
Simple constructor for class MSIS00Adapter.
|
Modifier and Type | Method and Description |
---|---|
void |
checkSolarActivityData(AbsoluteDate start,
AbsoluteDate end)
This methods throws an exception if the user did not provide solar activity on the provided interval [start,
end].
|
Atmosphere |
copy()
A copy of the atmosphere.
|
AtmosphereData |
getData(AbsoluteDate date,
Vector3D position,
Frame frame)
Get detailed atmospheric data.
|
double |
getDensity(AbsoluteDate date,
Vector3D position,
Frame frame)
Get the local density.
|
double |
getPressure(AbsoluteDate date,
Vector3D position,
Frame frame)
Returns pressure.
|
double |
getSpeedOfSound(AbsoluteDate date,
Vector3D position,
Frame frame)
Get the local speed of sound.
|
Vector3D |
getVelocity(AbsoluteDate date,
Vector3D position,
Frame frame)
Get the spacecraft velocity relative to the atmosphere.
|
public MSIS00Adapter(MSISE2000InputParameters data, double rEq, double f, CelestialPoint sunBody)
data
- solar datarEq
- the Earth equatorial radiusf
- the Earth flatteningsunBody
- the sunpublic double getDensity(AbsoluteDate date, Vector3D position, Frame frame) throws PatriusException
getDensity
in interface Atmosphere
date
- current dateposition
- current position in frameframe
- the frame in which is defined the positionPatriusException
- if date is out of range of solar activity model or if some frame
conversion cannot be performedpublic double getPressure(AbsoluteDate date, Vector3D position, Frame frame) throws PatriusException
date
- dateposition
- positionframe
- framePatriusException
- thrown if pressure could not be computedpublic Vector3D getVelocity(AbsoluteDate date, Vector3D position, Frame frame) throws PatriusException
getVelocity
in interface Atmosphere
date
- current dateposition
- current position in frameframe
- the frame in which is defined the positionPatriusException
- if some conversion cannot be performedpublic double getSpeedOfSound(AbsoluteDate date, Vector3D position, Frame frame) throws PatriusException
getSpeedOfSound
in interface Atmosphere
date
- current dateposition
- current position in frameframe
- the frame in which is defined the positionPatriusException
- if some conversion cannot be performedpublic AtmosphereData getData(AbsoluteDate date, Vector3D position, Frame frame) throws PatriusException
MSISE00Adapter provides all data mentioned in AtmosphereData
.
getData
in interface ExtendedAtmosphere
date
- current dateposition
- current position in frameframe
- the frame in which is defined the positionPatriusException
- if some atmospheric data cannot be retrieved (because date is out of
range of solar activity model or if some frame conversion cannot be performed)public Atmosphere copy()
The following attributes are not deeply copied:
MSISE2000InputParameters
PVCoordinatesProvider
copy
in interface Atmosphere
public void checkSolarActivityData(AbsoluteDate start, AbsoluteDate end) throws PatriusException
checkSolarActivityData
in interface Atmosphere
start
- range start dateend
- range end datePatriusException
- thrown if some solar activity data is missingCopyright © 2023 CNES. All rights reserved.