Struct FloraBiomechanicsEvaluator
#[repr(C)]pub struct FloraBiomechanicsEvaluator {
pub config: FloraArchetypeConfig,
pub turgor_pressure_mpa: f32,
pub ambient_temp_c: f32,
pub is_dieback_active: bool,
pub crown_height_m: f32,
}Expand description
Evaluator for stem mechanics and seasonal dieback across flora archetypes.
Fields§
§config: FloraArchetypeConfig§turgor_pressure_mpa: f32Current internal water potential / turgor in MPa
ambient_temp_c: f32Current ambient temperature in °C
is_dieback_active: boolHas the plant experienced lethal frost or drought pruning
crown_height_m: f32Effective height of surviving crown in meters
Implementations§
§impl FloraBiomechanicsEvaluator
impl FloraBiomechanicsEvaluator
pub fn new( config: FloraArchetypeConfig, initial_height_m: f32, ) -> FloraBiomechanicsEvaluator
pub fn second_moment_i(&self, outer_radius_m: f32) -> f32
pub fn second_moment_i(&self, outer_radius_m: f32) -> f32
Evaluates effective second moment of area:
- Solid stem: $I = \frac{\pi}{4} r_o^4$
- Hollow culm: $I = \frac{\pi}{4} (r_o^4 - r_i^4) = \frac{\pi}{4} r_o^4 (1 - \kappa^4)$
pub fn effective_elastic_modulus_mpa(&self) -> f32
pub fn effective_elastic_modulus_mpa(&self) -> f32
Evaluates effective Young’s modulus accounting for lignification and hydrostatic turgor: $E_{\text{eff}} = \lambda \cdot E_{\text{wood}} + (1 - \lambda) \cdot (E_{\text{tissue}} + k_{\text{hydro}} P_t)$
pub fn effective_stiffness_modulus(&self) -> f32
pub fn effective_stiffness_modulus(&self) -> f32
Normalized biomechanical stiffness modulus in [0.0, 1.0] derived from Young’s modulus: maps 8.0 MPa (limp) .. 900.0 MPa (hardwood) to 0.0 .. 1.0.
pub fn is_stem_buckled(&self) -> bool
pub fn is_stem_buckled(&self) -> bool
Checks if internal turgor is below the Euler buckling limit (causing stem to collapse).
pub fn step_environment(
&mut self,
temp_c: f32,
soil_moisture: f32,
full_height_m: f32,
)
pub fn step_environment( &mut self, temp_c: f32, soil_moisture: f32, full_height_m: f32, )
Updates seasonal environmental conditions and triggers Raunkiær dieback pruning.
Trait Implementations§
§impl Clone for FloraBiomechanicsEvaluator
impl Clone for FloraBiomechanicsEvaluator
§fn clone(&self) -> FloraBiomechanicsEvaluator
fn clone(&self) -> FloraBiomechanicsEvaluator
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FloraBiomechanicsEvaluator
§impl Debug for FloraBiomechanicsEvaluator
impl Debug for FloraBiomechanicsEvaluator
§impl PartialEq for FloraBiomechanicsEvaluator
impl PartialEq for FloraBiomechanicsEvaluator
impl StructuralPartialEq for FloraBiomechanicsEvaluator
Auto Trait Implementations§
impl Freeze for FloraBiomechanicsEvaluator
impl RefUnwindSafe for FloraBiomechanicsEvaluator
impl Send for FloraBiomechanicsEvaluator
impl Sync for FloraBiomechanicsEvaluator
impl Unpin for FloraBiomechanicsEvaluator
impl UnsafeUnpin for FloraBiomechanicsEvaluator
impl UnwindSafe for FloraBiomechanicsEvaluator
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>,
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
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> ⓘ
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> ⓘ
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