FlightGear next
atmosphere.hxx File Reference
#include <simgear/compiler.h>
#include <simgear/math/interpolater.hxx>
#include <cmath>
#include <utility>

Go to the source code of this file.

Classes

class  ISA_layer
 
class  FGAtmo
 
class  FGAtmoCache
 
class  FGAltimeter
 

Namespaces

namespace  atmodel
 
namespace  atmodel::ISA
 

Macros

#define SCD(name, val)
 Model the atmosphere in a way consistent with the laws of physics.
 

Functions

const double atmodel::g (9.80665)
 
const double atmodel::mm (.0289644)
 
const double atmodel::Rgas (8.31432)
 
const double atmodel::inch (0.0254)
 
const double atmodel::foot (12 *inch)
 
const double atmodel::inHg (101325.0/760 *1000 *inch)
 
const double atmodel::mbar (100.)
 
const double atmodel::freezing (273.15)
 
const double atmodel::nm (1852)
 
const double atmodel::sm (5280 *foot)
 
const double atmodel::ISA::P0 (101325.0)
 
const double atmodel::ISA::T0 (15.+freezing)
 
const double atmodel::ISA::lam0 (.0065)
 
std::pair< double, double > PT_vs_hpt (const double hh, const double _p0=atmodel::ISA::P0, const double _t0=atmodel::ISA::T0)
 
double P_layer (const double height, const double href, const double Pref, const double Tref, const double lapse)
 
double T_layer (const double height, const double href, const double Pref, const double Tref, const double lapse)
 

Variables

const ISA_layer ISA_def []
 

Macro Definition Documentation

◆ SCD

#define SCD ( name,
val )
Value:
const double name(val)
const char * name

Model the atmosphere in a way consistent with the laws of physics.

Each instance of this class models a particular air mass. You may freely move up, down, or sideways in the air mass. In contrast, if you want to compare different air masses, you should use a separate instance for each one.

See also ./environment.hxx

Definition at line 46 of file atmosphere.hxx.

Function Documentation

◆ P_layer()

double P_layer ( const double height,
const double href,
const double Pref,
const double Tref,
const double lapse )

Definition at line 32 of file atmosphere.cxx.

◆ PT_vs_hpt()

std::pair< double, double > PT_vs_hpt ( const double hh,
const double _p0 = atmodel::ISA::P0,
const double _t0 = atmodel::ISA::T0 )

Definition at line 68 of file atmosphere.cxx.

◆ T_layer()

double T_layer ( const double height,
const double href,
const double Pref,
const double Tref,
const double lapse )

Definition at line 51 of file atmosphere.cxx.

Variable Documentation

◆ ISA_def

const ISA_layer ISA_def[]
extern

Definition at line 10 of file atmosphere.cxx.