搜索插件、代码仓与 APP 分类

插件详情v1.0.2

atmospeed

计算标准和非标准大气属性以及速度转换。使用1976年美国标准大气定义。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
75
喜欢数
0
Pub 分数
150

安装插件

flutter pub add atmospeed

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Atmospeed 是一个 Dart 包,基于 1976 年美国标准大气模型,用于计算标准和非标准大气的属性。它可准确计算不同高度下的温度、压力、密度和声速。该包还支持速度单位转换,非常适合航空航天和航空应用。专为跨平台使用设计,可在 Android、iOS、Web、macOS、Windows 和 Linux 上无缝运行。其轻量级且精确的计算使其适用于实时飞行模拟和工程工具。

适合场景

  • 航空航天工程
  • 飞行模拟
  • 航空仪表开发
  • 基于海拔的性能计算
  • 天气建模

主要特点

  • 符合1976年美国标准大气
  • 温度、压力和密度计算
  • 声速计算
  • 速度单位转换
  • 跨平台支持

适合对象

  • 航空开发者
  • 航空航天工程师
  • 飞行模拟软件
  • 大气科学教育工具
  • 应用中的实时数据处理

使用建议

  • 仅限标准大气模型
  • 未考虑动态天气变化
  • 大多数计算需要高度输入
  • 未针对极高海拔或高超音速环境进行优化

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

A Dart library to perform standard and non-standard atmosphere property calculations and speed conversions. Based on the 1976 US Standard Atmosphere (NASA-TM-X-74335) methodologies and valid through 20 km (stratopause) for atmospheric flight calculations (identical to ICAO and International Standard Atmosphere definitions through 20 km).

Features

  • Define an atmospheric point in terms of pressure altitude and temperature (either as delta ISA or OAT) and for that point:
    • Calculate pressure, temperature and density ratios
    • Calculate speed of sound
    • Calculate Outside Air Temperature (OAT), standard temperature (ISA) or deviation form standard (delta ISA)
  • Define a speed point condition in terms of speed value and speed type (EAS, CAS, TAS or Mach) and for that point:
    • Convert to the other speed types at a defined atmospheric point
    • Convert between different speed units
  • Calculate pressure altitude from airport elevation and altimeter setting
  • Units default to feet (altitude), Celsius (temperature) and knots (speed), but Atmospeed offers unit choice flexibility

Getting started

No prerequisites, simply add Atmospeed to the pubspec.yaml file:

dependencies:
  atmospeed: ^1.0.0    

Usage

  1. Define one or more Atmo point condition:
// 18455 ft pressure alt, ISA+13C temperature
Atmo atmo = Atmo(hp: 18455, temperature: 13); 

// 11249 m pressure alt, -51.5 OATC temperature
Atmo atmo1 = Atmo(hp: 11249, unitAltitude: LengthUnit.m, temperature: -51.5, temperatureIsDeltaISA: false); 
  1. Calculate atmospheric properties on the atmo conditions:
atmo.getDelta(); // δ = 0.4901
atmo.getTheta(); // θ = 0.9182
atmo1.getSigma(); // σ = 0.2792
atmo1.getDeltaISA(); // ISA+5C
  1. Or, define a Speed point and convert to another speed type for an Atmo point condition:
// Define CAS as 255.6 knots
Speed kcas = Speed(value: 255.6, type: SpeedType.cas);

// Calculate EAS, TAS and Mach at atmo point
kcas.toEAS(atmo); // 251.1 KEAS
kcas.toTAS(atmo); // 343.7 KTAS
kcas.toMach(atmo); // Mach 0.5422
  1. Additional convenience methods exist:
// Convert a Speed object's speed to another unit; example knots to mph conversion
var mph_cas = kcas.convertSpeed(SpeedUnit.kts, SpeedUnit.mph);

// Or convert any double value between any two speed units
174.6.convertSpeed(SpeedUnit.kmh, SpeedUnit.fps); // 159.1 ft/sec

// Calculate pressure altitude form airport elevation and altimer setting
Altitude.pressureAltitude(airportElevation: 3456, airportAltimeter: 29.73); // 3632.2 ft

See additional examples in the /example folder.

Library Limitation

This library limits calculations to an altitude of 20km (65617 ft) and is intended for atmospheric flight calculations below the stratopause.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。