cape.atm
Atmosphere Models¶
This is a module that provides interfaces for atmosphere models, which can be useful for estimating freestream conditions at a given altitude. Conversely, it can be used to find a representative altitude for a given set of freestream conditions.
At present it only contains the 1976 U.S. Standard Atmosphere:
For detailed trajectory modeling, a more general atmosphere model is suggested.
Furthermore, this model is only considered to be valid up to 85 km of altitude
even though cape.atm.atm76()
will return an atmospheric state for higher
altitudes.
- class cape.atm.State(p=None, rho=None, T=None, **kw)¶
Atmospheric state
- Call:
>>> S = atm.State(p=None, rho=None, T=None, V=0, gamma=1.4)
- Inputs:
- Outputs:
- Versions:
2015-07-05
@ddalle
: Version 1.0
- ConvertToFPS()¶
Convert state quantities to foot-pound-second units
- cape.atm.SutherlandMKS(T, mu0=None, T0=None, C=None)¶
Calculate viscosity using Sutherland’s law using SI units
This returns
- Call:
>>> mu = SutherlandMKS(T) >>> mu = SutherlandMKS(T, mu0=None, T0=None, C=None)
- Inputs:
- Outputs:
- mu:
float
Dynamic viscosity [kg/m*s]
- mu:
- Versions:
2016-03-23
@ddalle
: Version 1.0
- cape.atm.atm76(h)¶
Return 1976 standard atmosphere parameters
- cape.atm.get_T(h)¶
Get temperature from specific enthalpy