Skip to main content

WindField

Trait WindField 

Source
pub trait WindField {
    // Required method
    fn wind(&self, time_s: f64, position_m: [f64; 3]) -> Wind;
}
Expand description

A deterministic, stateless wind field: same time and position always give the same wind, so integrator substeps, snapshots and seeded reproduction are exact.

Required Methods§

Source

fn wind(&self, time_s: f64, position_m: [f64; 3]) -> Wind

World-frame air velocity at a time (seconds) and position ([x, y, z] metres, Y up).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§