pub struct ProgressiveDamage {
pub degradation: Vec<f64>,
pub criterion: TsaiWuCriterion,
pub reduction_factor: f64,
}Expand description
Progressive damage model (ply-by-ply degradation).
Fields§
§degradation: Vec<f64>Current stiffness degradation factor per ply (1 = intact).
criterion: TsaiWuCriterionFailure criterion (Tsai-Wu).
reduction_factor: f64Stiffness reduction factor upon failure.
Implementations§
Source§impl ProgressiveDamage
impl ProgressiveDamage
Sourcepub fn new(
n_plies: usize,
criterion: TsaiWuCriterion,
reduction_factor: f64,
) -> Self
pub fn new( n_plies: usize, criterion: TsaiWuCriterion, reduction_factor: f64, ) -> Self
Create progressive damage model for n plies.
Sourcepub fn apply_load_step(&mut self, stresses: &[[f64; 3]]) -> usize
pub fn apply_load_step(&mut self, stresses: &[[f64; 3]]) -> usize
Apply load step and degrade failed plies. Returns (new_degradation_flags, ply failure count).
Sourcepub fn all_plies_failed(&self) -> bool
pub fn all_plies_failed(&self) -> bool
Check if all plies have failed (last-ply-failure).
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
Number of failed plies.
Trait Implementations§
Source§impl Clone for ProgressiveDamage
impl Clone for ProgressiveDamage
Source§fn clone(&self) -> ProgressiveDamage
fn clone(&self) -> ProgressiveDamage
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 ProgressiveDamage
impl RefUnwindSafe for ProgressiveDamage
impl Send for ProgressiveDamage
impl Sync for ProgressiveDamage
impl Unpin for ProgressiveDamage
impl UnsafeUnpin for ProgressiveDamage
impl UnwindSafe for ProgressiveDamage
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