FlightGear next
FGAtmo Class Reference

#include <atmosphere.hxx>

Inherited by FGAtmoCache [private].

Public Member Functions

double a_vs_p (const double press, const double qnh=atmodel::ISA::P0)
 
double fake_T_vs_a_us (const double h_ft, const double Tsl=atmodel::ISA::T0) const
 
double fake_dp_vs_a_us (const double dpsl, const double h_ft)
 
void check_one (const double height)
 
double QNH (const double field_elev, const double field_press)
 

Static Public Member Functions

static double fieldPressure (const double field_elev, const double qnh)
 Invert the QNH calculation to get the field pressure from a metar report.
 
static double ISATemperatureKAtAltitudeFt (const double alt, const double Tsl=atmodel::ISA::T0)
 Compute the outisde temperature at an altitude, according to the standard atmosphere model.
 
static double CSMetersPerSecondAtAltitudeFt (const double alt, const double Tsl=atmodel::ISA::T0)
 Compute the speed of sound at an altitude.
 
static double densityAtAltitudeFt (const double alt, const double Tsl=atmodel::ISA::T0)
 
static double machFromKnotsAtAltitudeFt (const double knots, const double altFt, const double Tsl=atmodel::ISA::T0)
 
static double knotsFromMachAtAltitudeFt (const double mach, const double altFt, const double Tsl=atmodel::ISA::T0)
 

Detailed Description

Definition at line 97 of file atmosphere.hxx.

Member Function Documentation

◆ a_vs_p()

double FGAtmo::a_vs_p ( const double press,
const double qnh = atmodel::ISA::P0 )

Definition at line 147 of file atmosphere.cxx.

◆ check_one()

void FGAtmo::check_one ( const double height)

◆ CSMetersPerSecondAtAltitudeFt()

double FGAtmo::CSMetersPerSecondAtAltitudeFt ( const double alt,
const double Tsl = atmodel::ISA::T0 )
static

Compute the speed of sound at an altitude.

Definition at line 162 of file atmosphere.cxx.

◆ densityAtAltitudeFt()

double FGAtmo::densityAtAltitudeFt ( const double alt,
const double Tsl = atmodel::ISA::T0 )
static

Definition at line 171 of file atmosphere.cxx.

◆ fake_dp_vs_a_us()

double FGAtmo::fake_dp_vs_a_us ( const double dpsl,
const double h_ft )

Definition at line 139 of file atmosphere.cxx.

◆ fake_T_vs_a_us()

double FGAtmo::fake_T_vs_a_us ( const double h_ft,
const double Tsl = atmodel::ISA::T0 ) const

Definition at line 132 of file atmosphere.cxx.

◆ fieldPressure()

double FGAtmo::fieldPressure ( const double field_elev,
const double qnh )
static

Invert the QNH calculation to get the field pressure from a metar report.

Valid for fields within the troposphere only.

Parameters
field_elevfield elevation in m
qnhaltimeter setting in pascals
Returns
field pressure in pascals. Caller gets to convert to inHg or millibars

Definition at line 310 of file atmosphere.cxx.

◆ ISATemperatureKAtAltitudeFt()

double FGAtmo::ISATemperatureKAtAltitudeFt ( const double alt,
const double Tsl = atmodel::ISA::T0 )
static

Compute the outisde temperature at an altitude, according to the standard atmosphere model.

Optionally allow offseting the temperature at seal level, but default to the ISA standard for that value as well

Definition at line 155 of file atmosphere.cxx.

◆ knotsFromMachAtAltitudeFt()

double FGAtmo::knotsFromMachAtAltitudeFt ( const double mach,
const double altFt,
const double Tsl = atmodel::ISA::T0 )
static

Definition at line 187 of file atmosphere.cxx.

◆ machFromKnotsAtAltitudeFt()

double FGAtmo::machFromKnotsAtAltitudeFt ( const double knots,
const double altFt,
const double Tsl = atmodel::ISA::T0 )
static

Definition at line 179 of file atmosphere.cxx.

◆ QNH()

double FGAtmo::QNH ( const double field_elev,
const double field_press )

Definition at line 282 of file atmosphere.cxx.


The documentation for this class was generated from the following files: