pub struct Dimensioned {
pub dims: [f64; 7],
pub value: Vec<FoamValue>,
}Expand description
A dimensioned quantity: seven SI dimension exponents plus zero or more numeric components.
OpenFOAM writes these as [mass length time temperature moles current luminous] optionally followed by a value, e.g. dimensions [0 2 -2 0 0 0 0]; (no value) or nu [0 2 -1 0 0 0 0] 1e-05; (scalar value). The value
components are stored as raw FoamValues to support scalar and vector
forms.
Fields§
§dims: [f64; 7]The seven SI dimension exponents, OpenFOAM order:
[kg, m, s, K, mol, A, cd].
value: Vec<FoamValue>Trailing value component(s); empty for a bare dimensions […] entry,
one element for a dimensioned scalar, three for a dimensioned vector.
Trait Implementations§
Source§impl Clone for Dimensioned
impl Clone for Dimensioned
Source§impl Debug for Dimensioned
impl Debug for Dimensioned
Source§impl PartialEq for Dimensioned
impl PartialEq for Dimensioned
impl StructuralPartialEq for Dimensioned
Auto Trait Implementations§
impl Freeze for Dimensioned
impl RefUnwindSafe for Dimensioned
impl Send for Dimensioned
impl Sync for Dimensioned
impl Unpin for Dimensioned
impl UnsafeUnpin for Dimensioned
impl UnwindSafe for Dimensioned
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