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§
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