pub struct Uniform(pub f64);Expand description
The same value everywhere and always. Useful as an ambient condition, and as the thing a finite-difference test should return zero derivatives for.
Tuple Fields§
§0: f64Trait Implementations§
impl Copy for Uniform
Source§impl ScalarField for Uniform
impl ScalarField for Uniform
Source§fn at(&self, _p: LengthVec, _t: Time) -> f64
fn at(&self, _p: LengthVec, _t: Time) -> f64
The value at a place and time, in this field’s SI base unit.
Source§fn gradient(&self, p: LengthVec, t: Time, h: Length) -> DVec3
fn gradient(&self, p: LengthVec, t: Time, h: Length) -> DVec3
∇f, by central differences over
h. Units are the field’s per metre.impl StructuralPartialEq for Uniform
Auto Trait Implementations§
impl Freeze for Uniform
impl RefUnwindSafe for Uniform
impl Send for Uniform
impl Sync for Uniform
impl Unpin for Uniform
impl UnsafeUnpin for Uniform
impl UnwindSafe for Uniform
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