Adiabatic atmosphere model based on the troposphere model in the Manual of the ICAO Standard Atmosphere.
More...
#include <AdiabaticAtmosphere.hh>
Inherits Atmosphere.
|
std::unique_ptr< AdiabaticAtmospherePrivate > | dataPtr |
|
Adiabatic atmosphere model based on the troposphere model in the Manual of the ICAO Standard Atmosphere.
http://ntrs.nasa.gov/search.jsp?R=19930083952 This model assumes a specific composition of gases, the ideal gas law, hydrostatic equilibrium, and constant gradients of gravity and temperature with respect to altitude. The troposphere model is recommended for altitudes below 11 km.
◆ AdiabaticAtmosphere()
Constructor.
- Parameters
-
[in] | _world | The World that uses this atmosphere model. |
◆ ~AdiabaticAtmosphere()
◆ Load()
virtual void Load |
( |
sdf::ElementPtr |
_sdf | ) |
|
|
virtual |
Load the atmosphere model.
- Parameters
-
[in] | _sdf | Pointer to the SDF parameters. |
Reimplemented from Atmosphere.
◆ MassDensity()
double MassDensity |
( |
const double |
_altitude = 0.0 | ) |
const |
|
virtual |
Get the density in kg/m^3 at a given altitude.
- Parameters
-
[in] | _altitude | Altitude above sea level in meters. |
- Returns
- Density in kg/m^3 at the specified altitude.
Reimplemented from Atmosphere.
◆ OnAtmosphereMsg()
virtual void OnAtmosphereMsg |
( |
ConstAtmospherePtr & |
_msg | ) |
|
|
protectedvirtual |
Virtual callback for gztopic "~/atmosphere".
- Parameters
-
Reimplemented from Atmosphere.
◆ OnRequest()
virtual void OnRequest |
( |
ConstRequestPtr & |
_msg | ) |
|
|
protectedvirtual |
Virtual callback for gztopic "~/request".
- Parameters
-
Reimplemented from Atmosphere.
◆ Pressure()
virtual double Pressure |
( |
const double |
_altitude = 0.0 | ) |
const |
|
virtual |
Get the pressure at a specified altitude in pascals.
- Parameters
-
[in] | _altitude | Altitude above sea level in meters. |
- Returns
- Pressure in pascals at the specified altitude.
Reimplemented from Atmosphere.
◆ Publish()
void Publish |
( |
const msgs::Response & |
_msg | ) |
const |
|
protectedinherited |
Publish response to a request.
- Parameters
-
[in] | _msg | Message to be published. |
◆ Reset()
Reset the atmosphere model.
◆ SDF()
sdf::ElementPtr SDF |
( |
| ) |
const |
|
inherited |
Get a pointer to the SDF element for this atmosphere model.
- Returns
- Pointer to the atmosphere SDF element.
◆ SetPressure()
virtual void SetPressure |
( |
const double |
_pressure | ) |
|
|
virtualinherited |
Set the sea level pressure.
- Parameters
-
[in] | _pressure | Pressure in pascals. |
◆ SetTemperature()
virtual void SetTemperature |
( |
const double |
_t | ) |
|
|
virtualinherited |
Set the sea level temperature.
- Parameters
-
[in] | _t | Temperature value in kelvins. |
◆ SetTemperatureGradient()
virtual void SetTemperatureGradient |
( |
const double |
_gradient | ) |
|
|
virtual |
Set the temperature gradient dT/dZ with respect to increasing altitude around sea level.
- Parameters
-
[in] | _gradient | Value of the temperature gradient dT/dZ around sea level in K/m. |
Implements Atmosphere.
◆ Temperature()
virtual double Temperature |
( |
const double |
_altitude = 0.0 | ) |
const |
|
virtual |
Get the actual modeled temperature in kelvins at a given altitude.
- Parameters
-
[in] | _altitude | Altitude above sea level in meters. |
- Returns
- Modeled temperature in kelvin at the specified altitude.
Reimplemented from Atmosphere.
◆ TemperatureGradient()
double TemperatureGradient |
( |
| ) |
const |
|
inherited |
Get the sea level temperature gradient with respect to increasing altitude.
- Returns
- Temperature gradient at sea level in K/m.
◆ Type()
virtual std::string Type |
( |
| ) |
const |
|
virtual |
Return the atmosphere model type (such as "adiabatic").
- Returns
- Type of the atmosphere model.
Implements Atmosphere.
◆ UpdateMassDensity()
void UpdateMassDensity |
( |
| ) |
|
|
protectedinherited |
◆ World()
Return the world.
- Returns
- Reference to the world.
◆ dataPtr
std::unique_ptr<AdiabaticAtmospherePrivate> dataPtr |
|
protected |
◆ IDEAL_GAS_CONSTANT_R
const double IDEAL_GAS_CONSTANT_R |
|
staticinherited |
Universal ideal gas constant in J/(mol.K)
◆ MOLAR_MASS
Molar mass of the air in kg/mol.
The documentation for this class was generated from the following file: