pub struct FluidSimGpu {
pub grid: MacGrid,
pub viscosity: f64,
pub density: f64,
}Expand description
High-level GPU-accelerated fluid simulation driver.
Wraps a MacGrid and orchestrates advection, force application, and
pressure projection each time-step.
Fields§
§grid: MacGridThe MAC grid holding all fluid state.
viscosity: f64Dynamic viscosity (Pa·s).
density: f64Fluid density (kg/m³).
Implementations§
Source§impl FluidSimGpu
impl FluidSimGpu
Auto Trait Implementations§
impl Freeze for FluidSimGpu
impl RefUnwindSafe for FluidSimGpu
impl Send for FluidSimGpu
impl Sync for FluidSimGpu
impl Unpin for FluidSimGpu
impl UnsafeUnpin for FluidSimGpu
impl UnwindSafe for FluidSimGpu
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> 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