pub struct TextureEvolution {
pub orientations: Vec<CrystalOrientationMatrix>,
pub weights: Vec<f64>,
}Expand description
Polycrystalline texture: a collection of orientations with weights.
Fields§
§orientations: Vec<CrystalOrientationMatrix>Crystal orientations.
weights: Vec<f64>Volume fractions (should sum to 1).
Implementations§
Source§impl TextureEvolution
impl TextureEvolution
Sourcepub fn add_orientation(&mut self, ori: CrystalOrientationMatrix, weight: f64)
pub fn add_orientation(&mut self, ori: CrystalOrientationMatrix, weight: f64)
Add an orientation with a given volume weight.
Sourcepub fn average_taylor_factor(
&self,
slip_systems: &[SlipSystem],
strain: [f64; 6],
) -> f64
pub fn average_taylor_factor( &self, slip_systems: &[SlipSystem], strain: [f64; 6], ) -> f64
Volume-weighted average Taylor factor over all orientations.
§Arguments
slip_systems– slip systems used to evaluate each grain.strain– Voigt strain-rate vector.
Trait Implementations§
Source§impl Clone for TextureEvolution
impl Clone for TextureEvolution
Source§fn clone(&self) -> TextureEvolution
fn clone(&self) -> TextureEvolution
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 moreSource§impl Debug for TextureEvolution
impl Debug for TextureEvolution
Auto Trait Implementations§
impl Freeze for TextureEvolution
impl RefUnwindSafe for TextureEvolution
impl Send for TextureEvolution
impl Sync for TextureEvolution
impl Unpin for TextureEvolution
impl UnsafeUnpin for TextureEvolution
impl UnwindSafe for TextureEvolution
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