pub struct RepairEffectiveness {
pub repair_factor: f64,
pub residual_damage: f64,
}Expand description
Repair effectiveness model for damaged composite structures.
After repair, the material recovers some fraction of its original strength depending on the repair method quality and residual damage level.
Repair effectiveness η ∈ [0, 1]:
- η = 1: perfect repair (full strength recovery)
- η = 0: no repair (residual damage remains)
Fields§
§repair_factor: f64Repair quality factor κ ∈ [0, 1] (1 = perfect repair quality).
residual_damage: f64Residual damage after repair d_res ∈ [0, 1).
Implementations§
Source§impl RepairEffectiveness
impl RepairEffectiveness
Sourcepub fn new(repair_factor: f64, residual_damage: f64) -> Self
pub fn new(repair_factor: f64, residual_damage: f64) -> Self
Create a new repair effectiveness model.
§Arguments
repair_factor- Quality of repair κ ∈ [0, 1]residual_damage- Remaining damage after repair d_res
Sourcepub fn effectiveness(&self) -> f64
pub fn effectiveness(&self) -> f64
Repair effectiveness η = κ · (1 - d_res).
Sourcepub fn strength_recovery(&self, original_strength: f64) -> f64
pub fn strength_recovery(&self, original_strength: f64) -> f64
Recovered strength after repair.
σ_rep = σ_0 · η
Sourcepub fn stiffness_recovery_factor(&self) -> f64
pub fn stiffness_recovery_factor(&self) -> f64
Post-repair stiffness factor relative to undamaged.
E_rep / E_0 = 1 - d_res · (1 - κ)
Sourcepub fn is_acceptable(&self, min_effectiveness: f64) -> bool
pub fn is_acceptable(&self, min_effectiveness: f64) -> bool
Check if the repair meets a minimum effectiveness threshold.
Trait Implementations§
Source§impl Clone for RepairEffectiveness
impl Clone for RepairEffectiveness
Source§fn clone(&self) -> RepairEffectiveness
fn clone(&self) -> RepairEffectiveness
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RepairEffectiveness
impl RefUnwindSafe for RepairEffectiveness
impl Send for RepairEffectiveness
impl Sync for RepairEffectiveness
impl Unpin for RepairEffectiveness
impl UnsafeUnpin for RepairEffectiveness
impl UnwindSafe for RepairEffectiveness
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