nacafoil

Crates.ionacafoil
lib.rsnacafoil
version
sourcesrc
created_at2023-05-13 21:20:14.932335
updated_at2024-11-08 18:45:56.985033
descriptionProgrammatic drawing of NACA airfoils.
homepagehttps://github.com/OwenShepherd/nacafoil
repositoryhttps://github.com/OwenShepherd/nacafoil
max_upload_size
id863938
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Owen Shepherd (OwenShepherd)

documentation

README

nacafoil

NACA airfoil generation.

Usage

This can be used to generate boundary points for NACA 4-digit airfoils.

use crate::nacafoil::Airfoil;
fn generate_naca0006_boundary() {
    let n = 1000;
    let c: f64 = 1.0;
    let name: String = "0006".to_string();
    let airfoil = Airfoil::new(name, c, n);
    let upper_x = airfoil.upper_x;
    let upper_y = airfoil.upper_y;
    let lower_x = airfoil.lower_x;
    let lower_y = airfoil.lower_y;
}

Results are tested againt airfoil data in tests/data.json within 0.3 percent of chord.
All 4-digit airfoils from NACA #824 aside from 2424 and 4424 pass tests.

Commit count: 32

cargo fmt