Struct rs_xfoil::Config

source ·
pub struct Config { /* private fields */ }
Expand description

Struct tracking Xfoil configuration.

Implementations

Create new Xfoil configuration structure from the path to an Xfoil executable.

Construct XfoilRunner from configuration panics: if no airfoil (either from polar file or NACA code) is given.

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.

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.

Set path of polar file to save Xfoil data into.

Specify a 4-digit NACA airfoil code.

Specify a file containing airfoil coordinates to use in Xfoil computation.

Set a Reynolds number for a viscous calculation.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.