pub struct FluidState {
pub velocity: Vec<Array2<f64>>,
pub pressure: Array2<f64>,
pub temperature: Option<Array2<f64>>,
pub time: f64,
pub dx: f64,
pub dy: f64,
}Expand description
Fluid state for 2D visualization
Fields§
§velocity: Vec<Array2<f64>>Velocity components [u, v] as 2D arrays
pressure: Array2<f64>Pressure field
temperature: Option<Array2<f64>>Temperature field (optional)
time: f64Current time
dx: f64Grid spacing in x-direction
dy: f64Grid spacing in y-direction
Trait Implementations§
Source§impl Clone for FluidState
impl Clone for FluidState
Source§fn clone(&self) -> FluidState
fn clone(&self) -> FluidState
Returns a duplicate of the value. Read more
1.0.0 · 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 FluidState
impl RefUnwindSafe for FluidState
impl Send for FluidState
impl Sync for FluidState
impl Unpin for FluidState
impl UnwindSafe for FluidState
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