Search

Lib.rs

› Science
#lift #aerodynamics #airfoil #drag #wind

pavan

Pavan — aerodynamics engine for atmosphere, airfoils, panel methods, VLM, compressible flow, stability, propulsion, and CFD

Owned by MacCracken.

  • Install
  • API reference
  • GitHub repo (maccracken)

2 stable releases

Uses new Rust 2024

1.1.0 Mar 29, 2026
1.0.0 Mar 26, 2026

#289 in Science


Used in kiran

GPL-3.0 license

205KB
5K SLoC

Pavan

Pavan (पवन — Sanskrit for "wind, breeze") — aerodynamics engine for the AGNOS ecosystem.

Features

  • ISA Atmosphere — temperature, pressure, density vs altitude, speed of sound, Mach number
  • NACA Airfoils — 4-digit profile generation with camber and thickness distribution
  • Coefficients — thin airfoil lift (Cl=2πα), induced drag, L/D ratio optimization
  • Forces — lift, drag, Reynolds number, Sutherland viscosity, full force computation
  • Boundary Layer — Blasius laminar, turbulent (1/7th power), transition detection, skin friction
  • Wind — uniform fields, logarithmic profile, power law profile, wind chill
  • Vehicle — AeroBody presets (light aircraft, glider), altitude-dependent force computation

Quick Start

use pavan::{atmosphere, coefficients, forces};

let rho = atmosphere::standard_density(0.0);  // sea level: 1.225 kg/m³
let q = atmosphere::dynamic_pressure(rho, 100.0);  // 6125 Pa at 100 m/s

let alpha = 5.0_f64.to_radians();
let cl = coefficients::lift_coefficient_thin_airfoil(alpha);  // ~0.548
let l = forces::lift(q, 16.0, cl);  // lift on 16 m² wing

License

GPL-3.0

Dependencies

~15MB
~285K SLoC

  • hisab
  • cfd? pravash
  • serde+derive
  • thiserror 2.0
  • tracing
  • logging? tracing-subscriber+env-filter+fmt
  • dev criterion 0.8+html_reports
  • dev serde_json

Other feature

  • soorat-compat
Related: prani, sangha, mabda, jantu, varna, sharira, bijli, goonj, prakash, pravash
See also: drag, egui-selectable-table, lift-migration, bevy_atmosphere, tobari, atm-refraction, foil_rs, ballistics_rs, tauri-plugin-drag, bevy_feronia, lift

Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski. It contains data from multiple sources, including heuristics, and manually curated data. Content of this page is not necessarily endorsed by the authors of the crate. This site is not affiliated with nor endorsed by the Rust Project. If something is missing or incorrect, please file a bug.