pub struct CompositeComponent {
pub section: Section,
pub material: Material,
}Expand description
A geometric section component paired with a material.
The section geometry is owned (cloned) so that the original user data is never mutated. The transformed section is an analytical representation only — the original geometry remains recoverable.
Fields§
§section: SectionThe geometric section (outer boundary + optional holes).
material: MaterialThe isotropic linear-elastic material assigned to this component.
Implementations§
Source§impl CompositeComponent
impl CompositeComponent
Sourcepub fn new(section: Section, material: Material) -> Result<Self, CompositeError>
pub fn new(section: Section, material: Material) -> Result<Self, CompositeError>
Create a new composite component from a section and a material.
Returns Err if the Young’s modulus is not a positive, finite value
or if the section geometry is degenerate.
Sourcepub fn youngs_modulus(&self) -> f64
pub fn youngs_modulus(&self) -> f64
The Young’s modulus of this component’s material.
Trait Implementations§
Source§impl Clone for CompositeComponent
impl Clone for CompositeComponent
Auto Trait Implementations§
impl Freeze for CompositeComponent
impl RefUnwindSafe for CompositeComponent
impl Send for CompositeComponent
impl Sync for CompositeComponent
impl Unpin for CompositeComponent
impl UnsafeUnpin for CompositeComponent
impl UnwindSafe for CompositeComponent
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