atmosphere

package
v0.0.0-...-57fb5ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtmosphereData

type AtmosphereData struct {
	Density     float64
	Temperature float64
	Pressure    float64
}

AtmosphereData contains atmospheric properties at a given altitude

type ISAModel

type ISAModel struct {
	// contains filtered or unexported fields
}

ISAModel implements the International Standard Atmosphere

func NewISAModel

func NewISAModel(cfg *config.ISAConfiguration) *ISAModel

NewISAModel creates a new ISAModel with the given configuration

func (*ISAModel) GetAtmosphere

func (isa *ISAModel) GetAtmosphere(altitude float64) AtmosphereData

GetAtmosphere returns atmospheric data for a given altitude using memoization

func (*ISAModel) GetSpeedOfSound

func (isa *ISAModel) GetSpeedOfSound(altitude float64) float64

GetSpeedOfSound calculates speed of sound at given altitude

func (*ISAModel) GetTemperature

func (isa *ISAModel) GetTemperature(altitude float64) float64

GetTemperature calculates the temperature at a given altitude

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL