pub trait Elasticwhere
Self: Cohesive,{
// Required methods
fn tractions(
&self,
normal_separation: Quantity<Length>,
tangential_separation: Quantity<Length>,
) -> Result<(Quantity<Stress>, Quantity<Stress>), ConstitutiveError>;
fn stiffnesses(
&self,
normal_separation: Quantity<Length>,
tangential_separation: Quantity<Length>,
) -> Result<(Quantity<StressPerLength>, Quantity<StressPerLength>), ConstitutiveError>;
// Provided methods
fn traction(
&self,
separation: Separation,
normal: Normal,
) -> Result<Traction, ConstitutiveError> { ... }
fn stiffness(
&self,
separation: Separation,
normal: Normal,
) -> Result<TensorTuple<TensorRank2<3, Current, Current, StressPerLength>, TensorRank2<3, Current, Current, Stress>>, ConstitutiveError> { ... }
}Expand description
Required methods for elastic cohesive constitutive models.
Required Methods§
Sourcefn tractions(
&self,
normal_separation: Quantity<Length>,
tangential_separation: Quantity<Length>,
) -> Result<(Quantity<Stress>, Quantity<Stress>), ConstitutiveError>
fn tractions( &self, normal_separation: Quantity<Length>, tangential_separation: Quantity<Length>, ) -> Result<(Quantity<Stress>, Quantity<Stress>), ConstitutiveError>
Calculates and returns the normal and tangential tractions.
Sourcefn stiffnesses(
&self,
normal_separation: Quantity<Length>,
tangential_separation: Quantity<Length>,
) -> Result<(Quantity<StressPerLength>, Quantity<StressPerLength>), ConstitutiveError>
fn stiffnesses( &self, normal_separation: Quantity<Length>, tangential_separation: Quantity<Length>, ) -> Result<(Quantity<StressPerLength>, Quantity<StressPerLength>), ConstitutiveError>
Calculates and returns the normal and tangential stiffnesses.
Provided Methods§
fn traction( &self, separation: Separation, normal: Normal, ) -> Result<Traction, ConstitutiveError>
fn stiffness( &self, separation: Separation, normal: Normal, ) -> Result<TensorTuple<TensorRank2<3, Current, Current, StressPerLength>, TensorRank2<3, Current, Current, Stress>>, ConstitutiveError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".