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 more