6 releases

0.0.6 Nov 8, 2024
0.0.5 Jun 6, 2023
0.0.4 May 31, 2023

#354 in Science

Download history 56/week @ 2024-11-02 54/week @ 2024-11-09 5/week @ 2024-11-16 2/week @ 2024-11-23 38/week @ 2024-11-30 77/week @ 2024-12-07 21/week @ 2024-12-14 27/week @ 2024-12-21 10/week @ 2024-12-28 15/week @ 2025-01-04 8/week @ 2025-01-11 53/week @ 2025-02-08

53 downloads per month

MPL-2.0 license

2.5MB
137 lines

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.

No runtime deps