[−][src]Struct lib::Config
Struct tracking Xfoil configuration.
Methods
impl Config
[src]
impl Config
pub fn new(path: &str) -> Self
[src]
pub fn new(path: &str) -> Self
Create new Xfoil configuration structure from the path to an Xfoil executable.
pub fn get_runner(self) -> Result<XfoilRunner>
[src]
pub fn get_runner(self) -> Result<XfoilRunner>
Construct XfoilRunner from configuration panics: if no airfoil (either from polar file or NACA code) is given.
pub fn angle_of_attack(self, angle: f64) -> Self
[src]
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.
pub fn lift_coefficient(self, cl: f64) -> Self
[src]
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.
pub fn polar_accumulation(self, fname: &str) -> Self
[src]
pub fn polar_accumulation(self, fname: &str) -> Self
Set path of polar file to save Xfoil data into.
pub fn naca(self, code: &str) -> Self
[src]
pub fn naca(self, code: &str) -> Self
Specify a 4-digit NACA airfoil code.
pub fn airfoil_polar_file(self, path: &str) -> Self
[src]
pub fn airfoil_polar_file(self, path: &str) -> Self
Specify a file containing airfoil coordinates to use in Xfoil computation.
pub fn reynolds(self, reynolds: usize) -> Self
[src]
pub fn reynolds(self, reynolds: usize) -> Self
Set a Reynolds number for a viscous calculation.
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId