aerosandbox.atmosphere.atmosphere
#
Module Contents#
Classes#
All models here are smoothed fits to the 1976 COESA model; |
Attributes#
- class aerosandbox.atmosphere.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) –
- __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:
Returns: A new Atmosphere instance, where each attribute is subscripted at the given value, if possible.
- __array__(dtype='O')[source]#
Allows NumPy array creation without infinite recursion in __len__ and __getitem__.
- density_altitude(method='approximate')[source]#
Returns the density altitude, in meters.
See https://en.wikipedia.org/wiki/Density_altitude
- Parameters:
method (str) –
- 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.
- 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.