aerosandbox.atmosphere#

Subpackages#

Submodules#

Package Contents#

Classes#

Atmosphere

All models here are smoothed fits to the 1976 COESA model;

class aerosandbox.atmosphere.Atmosphere(altitude=0.0, method='differentiable', temperature_deviation=0.0)[source]#

Bases: aerosandbox.common.AeroSandboxObject

All models here are smoothed fits to the 1976 COESA model; see AeroSandboxstudiesAtmosphere Fitting for details.

Parameters:
  • altitude (float) –

  • method (str) –

  • temperature_deviation (float) –

__repr__()[source]#

Return repr(self).

Return type:

str

__getitem__(index)[source]#

Indexes one item from each attribute of an Atmosphere instance. Returns a new Atmosphere instance.

Parameters:

index – The index that is being called; e.g.,: >>> first_atmosphere = atmosphere[0]

Return type:

Atmosphere

Returns: A new Atmosphere instance, where each attribute is subscripted at the given value, if possible.

__len__()[source]#
__array__(dtype='O')[source]#

Allows NumPy array creation without infinite recursion in __len__ and __getitem__.

pressure()[source]#

Returns the pressure, in Pascals.

temperature()[source]#

Returns the temperature, in Kelvin.

density()[source]#

Returns the density, in kg/m^3.

density_altitude(method='approximate')[source]#

Returns the density altitude, in meters.

See https://en.wikipedia.org/wiki/Density_altitude

Parameters:

method (str) –

speed_of_sound()[source]#

Returns the speed of sound, in m/s.

dynamic_viscosity()[source]#

Returns the dynamic viscosity (mu), in kg/(m*s).

Based on Sutherland’s Law, citing https://www.cfd-online.com/Wiki/Sutherland’s_law.

According to Rathakrishnan, E. (2013). Theoretical aerodynamics. John Wiley & Sons.: This relationship is valid from 0.01 to 100 atm, and between 0 and 3000K.

According to White, F. M., & Corfield, I. (2006). Viscous fluid flow (Vol. 3, pp. 433-434). New York: McGraw-Hill.: The error is no more than approximately 2% for air between 170K and 1900K.

kinematic_viscosity()[source]#

Returns the kinematic viscosity (nu), in m^2/s.

Definitional.

ratio_of_specific_heats()[source]#
mean_free_path()[source]#

Returns the mean free path of an air molecule, in meters.

To find the collision radius, assumes “a hard-sphere gas that has the same viscosity as the actual gas being considered”.

From Vincenti, W. G. and Kruger, C. H. (1965). Introduction to physical gas dynamics. Krieger Publishing Company. p. 414.

knudsen(length)[source]#

Computes the Knudsen number for a given length.