foil_rs

Crates.iofoil_rs
lib.rsfoil_rs
version0.1.4
created_at2026-01-03 00:17:48.542811+00
updated_at2026-01-18 18:53:13.961849+00
descriptionCore airfoil geometry + panel-method solver for FoilRs (no Bevy dependency).
homepagehttps://github.com/carrapaz/FoilRs
repositoryhttps://github.com/carrapaz/FoilRs
max_upload_size
id2019376
size90,159
(carrapaz)

documentation

https://docs.rs/foil_rs

README

foil_rs

Core library for FoilRs: NACA 4‑digit airfoil geometry + a lightweight vortex-panel flow solver, Cp sampling, simple polar sweeps, and a small boundary-layer estimate for CDp.

This crate has no Bevy dependency and is intended to be usable in headless/batch workflows.

Usage

Add the dependency:

[dependencies]
foil_rs = "0.1"

Examples

  • Headless single solve:
    • cargo run -p foil_rs --example headless -- 2412 4.0
  • Export a polar sweep as CSV:
    • cargo run -p foil_rs --example export_polar_csv --release -- 2412
  • Export multi-polars as CSV:
    • cargo run -p foil_rs --example export_multi_polars_csv --release -- 2412 "0.5,1.0,2.0" "0.0,0.1"
  • Benchmark harness:
    • cargo run -p foil_rs --example bench_headless --release -- 2412 4.0

Status

0.1.x is a “preview” series: the API may change, and numerical results are intended for visualization and trend exploration (not as a drop-in replacement for XFoil).

License

MIT. See the repository LICENSE file.

Commit count: 36

cargo fmt