#command #results #runner #aerodynamics #sequence #xfoil

rs-xfoil

Run Xfoil commands from Rust, and retrieve their results

1 unstable release

0.0.1 Dec 28, 2018

#77 in #results

MIT license

575KB
298 lines

Contains (WOFF font, 120KB) doc/Heuristica-Italic.woff, (WOFF font, 90KB) doc/FiraSans-Medium.woff, (WOFF font, 92KB) doc/FiraSans-Regular.woff, (WOFF font, 56KB) doc/SourceCodePro-Regular.woff, (WOFF font, 56KB) doc/SourceCodePro-Semibold.woff, (WOFF font, 49KB) doc/SourceSerifPro-Bold.woff and 1 more.

rs-xfoil

This crate provides a Rust interface to Xfoil, an aerodynamics simulation program written by Mark Drela in Fortran. This will allow users to perform calculations using Xfoil, while seamlessly using the results in Rust code.

Model

The crate works by building up a command sequence in an XfoilRunner. Xfoil must be configured fully before actually running the process. Valid configurational states are tracked internally. After configuring the runner, the process can be dispatched, which consumes the runner and returns the result of the calculation.

The crate is currently very limited in functionality, more options will be added as I need them.

Example

extern crate rs_xfoil;

fn main() {
    let result = rs_xfoil::Config::new("/usr/local/bin/xfoil")
        .naca("2414")
        .reynolds(100_000)
        .polar_accumulation("test_run")
        .angle_of_attack(4.0)
        .get_runner()
        .unwrap()
        .dispatch()
        .unwrap();
    println!("{:?}", result);
}

No runtime deps