pub struct ReynoldsStress<R>(/* private fields */)
where
R: RealField;Expand description
Reynolds stress tensor R_ij = ⟨u'_i u'_j⟩ (Pa, after multiplication by ρ
in caller; here a kinematic Reynolds stress in m²/s² is also acceptable).
Symmetric. Diagonal entries are non-negative (variances) — not enforced
by the newtype to keep the constructor cheap; callers passing a tensor
that violates the diagonal-positivity property are responsible for
downstream interpretation.
Implementations§
Source§impl<R> ReynoldsStress<R>where
R: RealField,
impl<R> ReynoldsStress<R>where
R: RealField,
pub fn new(raw: [[R; 3]; 3]) -> Result<ReynoldsStress<R>, PhysicsError>
pub fn new_unchecked(raw: [[R; 3]; 3]) -> ReynoldsStress<R>
pub fn value(&self) -> &[[R; 3]; 3]
pub fn into_inner(self) -> [[R; 3]; 3]
Trait Implementations§
Source§impl<R> Clone for ReynoldsStress<R>
impl<R> Clone for ReynoldsStress<R>
Source§fn clone(&self) -> ReynoldsStress<R>
fn clone(&self) -> ReynoldsStress<R>
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 moreimpl<R> Copy for ReynoldsStress<R>
Source§impl<R> Debug for ReynoldsStress<R>
impl<R> Debug for ReynoldsStress<R>
Source§impl<R> Default for ReynoldsStress<R>where
R: RealField,
impl<R> Default for ReynoldsStress<R>where
R: RealField,
Source§fn default() -> ReynoldsStress<R>
fn default() -> ReynoldsStress<R>
Returns the “default value” for a type. Read more
Source§impl<R> PartialEq for ReynoldsStress<R>
impl<R> PartialEq for ReynoldsStress<R>
impl<R> StructuralPartialEq for ReynoldsStress<R>
Auto Trait Implementations§
impl<R> Freeze for ReynoldsStress<R>
impl<R> RefUnwindSafe for ReynoldsStress<R>
impl<R> Send for ReynoldsStress<R>
impl<R> Sync for ReynoldsStress<R>
impl<R> Unpin for ReynoldsStress<R>
impl<R> UnsafeUnpin for ReynoldsStress<R>
impl<R> UnwindSafe for ReynoldsStress<R>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more