pub enum InteractionEvent {
YieldExceeded {
continuant_id: String,
ambient_pressure_kpa: f64,
yield_threshold_kpa: f64,
crush_ratio: f64,
},
PhaseChange {
continuant_id: String,
temperature_k: f64,
melt_threshold_k: f64,
new_phase: &'static str,
},
DissolutionStep {
solute_id: String,
solvent_id: String,
dissolved_mass_kg: f64,
remaining_mass_kg: f64,
mass_fraction: f64,
},
ImmiscibleBarrier {
body_a: String,
body_b: String,
interface_area_m2: f64,
},
}Expand description
Physical interaction event resulting from law evaluation.
Variants§
YieldExceeded
Object exceeded its mechanical yield strength under ambient pressure.
PhaseChange
Thermal energy caused a phase transition (e.g. melting).
DissolutionStep
Solute dissolving in solvent over delta time.
Fields
ImmiscibleBarrier
Immiscible materials meeting at an interface without blending (e.g. oil/water).
Trait Implementations§
Source§impl Clone for InteractionEvent
impl Clone for InteractionEvent
Source§impl Debug for InteractionEvent
impl Debug for InteractionEvent
Source§impl PartialEq for InteractionEvent
impl PartialEq for InteractionEvent
impl StructuralPartialEq for InteractionEvent
Auto Trait Implementations§
impl Freeze for InteractionEvent
impl RefUnwindSafe for InteractionEvent
impl Send for InteractionEvent
impl Sync for InteractionEvent
impl Unpin for InteractionEvent
impl UnsafeUnpin for InteractionEvent
impl UnwindSafe for InteractionEvent
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