pub struct CompositeComponent { /* private fields */ }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 are private; construction is only possible through
new, which validates the material via
Material::is_valid. This
guarantees that every CompositeComponent instance has a physically
admissible material.
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.
The material is also checked via Material::is_valid,
which verifies that E, G, ν, and ρ are all finite and within
their physically admissible ranges.
Sourcepub fn youngs_modulus(&self) -> f64
pub fn youngs_modulus(&self) -> f64
The Young’s modulus of this component’s material.