pub struct PftParams {Show 22 fields
pub pft_type: PftType,
pub pathway: PhotosynthesisPathway,
pub pmax: f32,
pub quantum_yield: f32,
pub temp_optimum: f32,
pub max_height: f32,
pub growth_rate: f32,
pub successional_stage: SuccessionalStage,
pub leaf_habit: LeafHabit,
pub sla: f32,
pub lai_max: f32,
pub leaf_n: f32,
pub alloc_leaf: f32,
pub alloc_stem: f32,
pub alloc_root: f32,
pub root_depth: f32,
pub lifespan_years: f32,
pub leaf_turnover: f32,
pub root_turnover: f32,
pub wood_n: f32,
pub frost_threshold: f32,
pub critical_n: f32,
}Expand description
Complete parameter set for a plant functional type.
All the numbers a consumer needs to configure vanaspati’s modules for a given species group.
Fields§
§pft_type: PftTypePFT identifier.
pathway: PhotosynthesisPathwayPhotosynthesis pathway (C3/C4/CAM).
pmax: f32Maximum photosynthesis rate at light saturation (µmol CO₂/m²/s).
quantum_yield: f32Quantum yield (mol CO₂ / mol photons).
temp_optimum: f32Optimal temperature for photosynthesis (°C).
max_height: f32Maximum height (meters).
growth_rate: f32Relative growth rate (per day).
successional_stage: SuccessionalStageSuccessional strategy.
leaf_habit: LeafHabitLeaf habit (deciduous/evergreen).
sla: f32Specific leaf area (m² leaf / kg leaf).
lai_max: f32Maximum leaf area index (m² leaf / m² ground).
leaf_n: f32Leaf N concentration (kg N / kg leaf).
alloc_leaf: f32Fraction to leaves (0.0–1.0).
alloc_stem: f32Fraction to stem (0.0–1.0).
alloc_root: f32Fraction to roots (0.0–1.0).
root_depth: f32Maximum root depth (meters).
lifespan_years: f32Maximum lifespan (years).
leaf_turnover: f32Annual leaf turnover rate (fraction, 1.0 = all leaves replaced yearly).
root_turnover: f32Annual fine root turnover rate (fraction).
wood_n: f32Wood N concentration (kg N / kg wood).
frost_threshold: f32Cold hardiness threshold (°C).
critical_n: f32Critical N concentration for unstressed growth (kg N / kg biomass).
Implementations§
Source§impl PftParams
impl PftParams
Sourcepub fn alloc_reproductive(&self) -> f32
pub fn alloc_reproductive(&self) -> f32
Allocation fractions sum (should be ≤1.0, remainder is reproductive).
Sourcepub fn is_conifer(&self) -> bool
pub fn is_conifer(&self) -> bool
Whether this PFT is a conifer.