#[non_exhaustive]pub struct AeroBody {
pub reference_area: f64,
pub cd0: f64,
pub aspect_ratio: f64,
pub oswald_efficiency: f64,
pub chord: f64,
}Expand description
An aerodynamic body with reference properties.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.reference_area: f64Reference area (m²) — typically wing area for aircraft.
cd0: f64Zero-lift drag coefficient.
aspect_ratio: f64Wing aspect ratio (span² / area).
oswald_efficiency: f64Oswald efficiency factor (0.7–0.85 typical).
chord: f64Chord length (m) — for moment computation.
Implementations§
Source§impl AeroBody
impl AeroBody
Sourcepub fn light_aircraft() -> Self
pub fn light_aircraft() -> Self
Typical light aircraft (Cessna 172 class).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AeroBody
impl<'de> Deserialize<'de> for AeroBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AeroBody
impl RefUnwindSafe for AeroBody
impl Send for AeroBody
impl Sync for AeroBody
impl Unpin for AeroBody
impl UnsafeUnpin for AeroBody
impl UnwindSafe for AeroBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more