Struct BoundaryLayerProfile
#[repr(C)]pub struct BoundaryLayerProfile {
pub roughness_length_z0: f32,
pub zero_plane_displacement_d: f32,
pub friction_velocity_u_star: f32,
}Expand description
Atmospheric Boundary Layer (ABL) logarithmic wind profile.
Fields§
§roughness_length_z0: f32Aerodynamic roughness length $z_0$ in meters.
zero_plane_displacement_d: f32Zero-plane displacement height $d$ in meters (for forest/canopy lift).
friction_velocity_u_star: f32Friction velocity $u_*$ in m/s (momentum shear stress transferred into surface).
Implementations§
§impl BoundaryLayerProfile
impl BoundaryLayerProfile
pub fn sample_wind_speed(&self, height_z: f32) -> f32
pub fn sample_wind_speed(&self, height_z: f32) -> f32
Evaluates horizontal wind speed $u(z)$ at elevation $z$ above ground (in meters): $u(z) = \frac{u_*}{\kappa} \ln\left(\frac{z - d}{z_0}\right)$
pub fn dynamic_pressure(&self, air_density: f32, wind_speed: f32) -> f32
pub fn dynamic_pressure(&self, air_density: f32, wind_speed: f32) -> f32
Evaluates dynamic wind pressure $q = \frac{1}{2} \rho_{\text{air}} v^2$ (in Pascals/N·m⁻²).
Trait Implementations§
§impl Clone for BoundaryLayerProfile
impl Clone for BoundaryLayerProfile
§fn clone(&self) -> BoundaryLayerProfile
fn clone(&self) -> BoundaryLayerProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BoundaryLayerProfile
§impl Debug for BoundaryLayerProfile
impl Debug for BoundaryLayerProfile
§impl Default for BoundaryLayerProfile
impl Default for BoundaryLayerProfile
§fn default() -> BoundaryLayerProfile
fn default() -> BoundaryLayerProfile
Returns the “default value” for a type. Read more
§impl PartialEq for BoundaryLayerProfile
impl PartialEq for BoundaryLayerProfile
impl StructuralPartialEq for BoundaryLayerProfile
Auto Trait Implementations§
impl Freeze for BoundaryLayerProfile
impl RefUnwindSafe for BoundaryLayerProfile
impl Send for BoundaryLayerProfile
impl Sync for BoundaryLayerProfile
impl Unpin for BoundaryLayerProfile
impl UnsafeUnpin for BoundaryLayerProfile
impl UnwindSafe for BoundaryLayerProfile
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.