pub struct Face {
pub axis: usize,
pub coord: [usize; 3],
pub center: [f64; 3],
pub lo: Option<usize>,
pub hi: Option<usize>,
pub kind: FaceKind,
pub area: f64,
pub distance: f64,
}Expand description
One staggered face. The face normal is axis; lo and hi are the fluid
cells below and above it along that axis.
Fields§
§axis: usizeNormal axis: 0 (x), 1 (y) or 2 (z).
coord: [usize; 3]Integer position in this axis’s face array, of dimensions
Grid::face_dims[axis]. It is the lower face of the cell with the
same coordinates; the last face of a nonperiodic axis is the upper face
of the last cell.
center: [f64; 3]Face center in meters.
lo: Option<usize>Fluid cell below the face along axis; None for a solid cell or
outside the domain. Across a periodic boundary it is the wrapped cell.
hi: Option<usize>Fluid cell above the face along axis; None for a solid cell or
outside the domain.
kind: FaceKindRole of the face.
area: f64Face area in m2.
distance: f64Distance in meters over which the face gradient is taken: the cell width for interior faces, half of it (cell center to face) otherwise.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Face
impl Freeze for Face
impl Move for Face
impl RefUnwindSafe for Face
impl Send for Face
impl Sync for Face
impl Unpin for Face
impl UnsafeUnpin for Face
impl UnwindSafe for Face
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
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> ⓘ
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> ⓘ
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