pub struct MacCell {
pub pressure: f64,
pub u_x: f64,
pub u_y: f64,
pub is_fluid: bool,
}Expand description
A single cell in a Marker-and-Cell (MAC) grid.
Pressure is stored at the cell centre; u_x is the velocity on the east
face and u_y is the velocity on the north face.
Fields§
§pressure: f64Pressure at cell centre (Pa).
u_x: f64Velocity on the east face (x-direction, m/s).
u_y: f64Velocity on the north face (y-direction, m/s).
is_fluid: booltrue if the cell contains fluid (not a solid obstacle).
Trait Implementations§
impl Copy for MacCell
Auto Trait Implementations§
impl Freeze for MacCell
impl RefUnwindSafe for MacCell
impl Send for MacCell
impl Sync for MacCell
impl Unpin for MacCell
impl UnsafeUnpin for MacCell
impl UnwindSafe for MacCell
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