fly_ruler_std.libs.atmosphere
本页由
fr-docs-dev gen-api从源码 docstring 生成,请勿手工编辑;重新生成执行just api。
标准大气模型 (US Standard Atmosphere 1976)。
所有函数返回 Signal 表达式,可在 @fr.block 中直接使用;对外的长度、压力与温度单位分别为 m、Pa 与 K。
公开成员
| 名称 | 类型 | 定义位置 |
|---|---|---|
AtmResult | 类 | 本页 |
atmos76 | 函数 | 本页 |
定义
AtmResult
python
class AtmResult(NamedTuple)由 atmos76 返回的大气状态,各字段为随高度变化的信号。
density
python
density: Signal空气密度 (kg/m³)。
实现位置:packages/fly_ruler/python/fly_ruler_std/libs/atmosphere.py:24
pressure
python
pressure: Signal静压 (Pa)。
实现位置:packages/fly_ruler/python/fly_ruler_std/libs/atmosphere.py:26
temperature
python
temperature: Signal温度 (K)。
实现位置:packages/fly_ruler/python/fly_ruler_std/libs/atmosphere.py:28
speed_of_sound
python
speed_of_sound: Signal声速 (m/s)。
实现位置:packages/fly_ruler/python/fly_ruler_std/libs/atmosphere.py:30
pressure_ratio
python
pressure_ratio: Signal压力比 p / p0。
实现位置:packages/fly_ruler/python/fly_ruler_std/libs/atmosphere.py:32
density_ratio
python
density_ratio: Signal密度比 rho / rho0。
实现位置:packages/fly_ruler/python/fly_ruler_std/libs/atmosphere.py:34
sqrt_density_ratio
python
sqrt_density_ratio: Signal密度比的平方根 sqrt(rho / rho0),用于当量空速换算。
实现位置:packages/fly_ruler/python/fly_ruler_std/libs/atmosphere.py:36
temp_ratio
python
temp_ratio: Signal温度比 T / T0。
实现位置:packages/fly_ruler/python/fly_ruler_std/libs/atmosphere.py:38
实现位置:packages/fly_ruler/python/fly_ruler_std/libs/atmosphere.py:21
atmos76
python
def atmos76(altitude: Signal) -> AtmResult计算 US Standard Atmosphere 1976 大气状态。
模型覆盖对流层与平流层,几何高度被裁剪到 0–11000 m。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
altitude | Signal | — | 几何高度 (m)。 |
返回
| 类型 | 说明 |
|---|---|
AtmResult | 密度 (kg/m³)、压力 (Pa)、温度 (K)、声速 (m/s) 及四个 |
AtmResult | 无量纲比值随高度变化的信号。 |
python
from fly_ruler_core import api as fr
from fly_ruler_std.libs.atmosphere import atmos76
@fr.block
def AirData():
altitude = fr.input("altitude", (1,), unit="m")
atmosphere = atmos76(altitude)
fr.output("density", atmosphere.density, dim=(1,), unit="kg/m^3")实现位置:packages/fly_ruler/python/fly_ruler_std/libs/atmosphere.py:42