pub struct PlyState {
pub angle_deg: f64,
pub thickness: f64,
pub q_matrix: [f64; 4],
pub ff_failed: bool,
pub iff_failed: bool,
pub degradation: f64,
}Expand description
State of a single ply in a laminate.
Fields§
§angle_deg: f64Ply angle (degrees from laminate x-axis).
thickness: f64Ply thickness (m).
q_matrix: [f64; 4]In-plane stiffness matrix Q [Q11, Q22, Q12, Q66] (Pa).
ff_failed: boolWhether fiber fracture has occurred.
iff_failed: boolWhether inter-fiber fracture has occurred.
degradation: f64Degradation factor applied (0..1, 1 = no degradation).
Implementations§
Source§impl PlyState
impl PlyState
Sourcepub fn new(
angle_deg: f64,
thickness: f64,
e1: f64,
e2: f64,
nu12: f64,
g12: f64,
) -> Self
pub fn new( angle_deg: f64, thickness: f64, e1: f64, e2: f64, nu12: f64, g12: f64, ) -> Self
Constructs a PlyState from elastic constants.
E₁, E₂ (Pa), ν₁₂, G₁₂ (Pa).
Sourcepub fn apply_degradation(&mut self, rule: DegradationRule, ff: bool, iff: bool)
pub fn apply_degradation(&mut self, rule: DegradationRule, ff: bool, iff: bool)
Applies stiffness degradation according to rule and failure mode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlyState
impl RefUnwindSafe for PlyState
impl Send for PlyState
impl Sync for PlyState
impl Unpin for PlyState
impl UnsafeUnpin for PlyState
impl UnwindSafe for PlyState
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