pub enum Mandel {
General,
Symmetric,
Symmetric2D,
}Expand description
Specifies the Mandel representation
Variants§
General
General representation of a 3×3 Tensor2 as a 9D vector
┌ ┐
00 │ T00 │ 0
11 │ T11 │ 1
┌ ┐ 22 │ T22 │ 2
│ T00 T01 T02 │ 01 │ (T01+T10) / √2 │ 3
│ T10 T11 T12 │ => 12 │ (T12+T21) / √2 │ 4
│ T20 T21 T22 │ 02 │ (T02+T20) / √2 │ 5
└ ┘ 10 │ (T01-T10) / √2 │ 6
21 │ (T12-T21) / √2 │ 7
20 │ (T02-T20) / √2 │ 8
└ ┘Symmetric
Mandel representation of a symmetric 3×3 Tensor2 as a 6D vector
┌ ┐
┌ ┐ 00 │ T00 │ 0
│ T00 T01 T02 │ 11 │ T11 │ 1
│ T01 T11 T12 │ => 22 │ T22 │ 2
│ T02 T12 T22 │ 01 │ T01 * √2 │ 3
└ ┘ 12 │ T12 * √2 │ 4
02 │ T02 * √2 │ 5
└ ┘NOTE: For Tensor4, “symmetric” means minor-symmetric
Symmetric2D
Mandel representation of a symmetric 3×3 Tensor2 as a 4D vector (useful in 2D simulations)
┌ ┐ ┌ ┐
│ T00 T01 │ 00 │ T00 │ 0
│ T01 T11 │ => 11 │ T11 │ 1
│ T22 │ 22 │ T22 │ 2
└ ┘ 01 │ T01 * √2 │ 3
└ ┘
**NOTE:** For Tensor4, "symmetric" means **minor-symmetric**Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mandel
impl<'de> Deserialize<'de> for Mandel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Mandel
impl Eq for Mandel
impl StructuralPartialEq for Mandel
Auto Trait Implementations§
impl Freeze for Mandel
impl RefUnwindSafe for Mandel
impl Send for Mandel
impl Sync for Mandel
impl Unpin for Mandel
impl UnwindSafe for Mandel
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