pub struct Config { /* private fields */ }
Expand description
Struct tracking Xfoil configuration.
Implementations
sourceimpl Config
impl Config
sourcepub fn new(path: &str) -> Self
pub fn new(path: &str) -> Self
Create new Xfoil configuration structure from the path to an Xfoil executable.
sourcepub fn get_runner(self) -> Result<XfoilRunner>
pub fn get_runner(self) -> Result<XfoilRunner>
Construct XfoilRunner from configuration panics: if no airfoil (either from polar file or NACA code) is given.
sourcepub fn angle_of_attack(self, angle: f64) -> Self
pub fn angle_of_attack(self, angle: f64) -> Self
Set angle of attack at which to run xfoil computation. If lift_coefficient was previously called, the state is overwritten to use an angle of attack calculation instead.
sourcepub fn lift_coefficient(self, cl: f64) -> Self
pub fn lift_coefficient(self, cl: f64) -> Self
Set lift coefficient at which to run xfoil computation. If angle_of_attack was previously called, the state is overwritten to use a lift coefficient calculation instead.
sourcepub fn polar_accumulation(self, fname: &str) -> Self
pub fn polar_accumulation(self, fname: &str) -> Self
Set path of polar file to save Xfoil data into.
sourcepub fn airfoil_polar_file(self, path: &str) -> Self
pub fn airfoil_polar_file(self, path: &str) -> Self
Specify a file containing airfoil coordinates to use in Xfoil computation.
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more