pub struct FluxGrid3D {
pub nx: usize,
pub ny: usize,
pub nz: usize,
pub dx: f64,
pub values: Vec<f64>,
}Expand description
A 3-D scalar field stored in row-major order on a uniform Cartesian grid.
Index layout: values[i*(ny*nz) + j*nz + k] for cell (i, j, k).
Fields§
§nx: usizeCells in the x-direction.
ny: usizeCells in the y-direction.
nz: usizeCells in the z-direction.
dx: f64Uniform cell spacing.
values: Vec<f64>Scalar field values.
Implementations§
Trait Implementations§
Source§impl Clone for FluxGrid3D
impl Clone for FluxGrid3D
Source§fn clone(&self) -> FluxGrid3D
fn clone(&self) -> FluxGrid3D
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 moreAuto Trait Implementations§
impl Freeze for FluxGrid3D
impl RefUnwindSafe for FluxGrid3D
impl Send for FluxGrid3D
impl Sync for FluxGrid3D
impl Unpin for FluxGrid3D
impl UnsafeUnpin for FluxGrid3D
impl UnwindSafe for FluxGrid3D
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