Struct ContinuumBridge3D
pub struct ContinuumBridge3D {
pub soil_profile: SoilMechanicsProfile,
pub soil_porosity: f32,
pub wave_spectrum: SimdGerstnerSpectrum,
pub water_elevation_m: f32,
pub plant_graph: MetamerPlantGraph,
pub plant_position: [f32; 3],
pub last_soil_outcome: Option<SoilCouplingOutcome>,
pub last_hydro_outcome: Option<HydroCouplingOutcome>,
pub last_botanical_outcome: Option<BotanicalImpactOutcome>,
}Expand description
Two-way continuum coupling bridge coordinating Geomechanics, Hydrodynamics, and Botanical Biomechanics.
Fields§
§soil_profile: SoilMechanicsProfile6-layer soil strata geotechnical profile (Bekker sinkage & Mohr-Coulomb shear).
soil_porosity: f32Current soil volumetric porosity $\eta \in [0.15, 0.65]$.
wave_spectrum: SimdGerstnerSpectrum3D Gerstner wave spectrum for water surfaces.
water_elevation_m: f32Surface water level elevation in world Y coordinates.
plant_graph: MetamerPlantGraphBotanical metamer functional-structural plant graph (MetamerPlantGraph).
plant_position: [f32; 3]World position of the anchor root base of plant_graph.
last_soil_outcome: Option<SoilCouplingOutcome>Telemetry from the most recent geotechnical soil-body coupling step.
last_hydro_outcome: Option<HydroCouplingOutcome>Telemetry from the most recent hydrodynamic water-body coupling step.
last_botanical_outcome: Option<BotanicalImpactOutcome>Telemetry from the most recent botanical metamer collision step.
Implementations§
§impl ContinuumBridge3D
impl ContinuumBridge3D
pub fn new(
soil_profile: SoilMechanicsProfile,
soil_porosity: f32,
water_elevation_m: f32,
plant_position: [f32; 3],
) -> ContinuumBridge3D
pub fn new( soil_profile: SoilMechanicsProfile, soil_porosity: f32, water_elevation_m: f32, plant_position: [f32; 3], ) -> ContinuumBridge3D
Creates a new continuum bridge with initialized sub-systems.
pub fn step_coupling(
&mut self,
bodies: &mut [RigidBody3D],
time_seconds: f32,
dt: f32,
)
pub fn step_coupling( &mut self, bodies: &mut [RigidBody3D], time_seconds: f32, dt: f32, )
Evaluates two-way continuum coupling forces between bodies and soil, water, and vegetation.
Trait Implementations§
§impl Clone for ContinuumBridge3D
impl Clone for ContinuumBridge3D
§fn clone(&self) -> ContinuumBridge3D
fn clone(&self) -> ContinuumBridge3D
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more