pub struct SphForceKernel;Expand description
Kernel that computes SPH pressure and viscosity forces.
Inputs:
inputs[0]: positions[x, y, z, ...](3n)inputs[1]: velocities[vx, vy, vz, ...](3n)inputs[2]: densities[rho0, rho1, ...](n)inputs[3]: pressures[p0, p1, ...](n)inputs[4]: masses[m0, m1, ...](n)inputs[5]:[smoothing_length, viscosity_coeff](2 values)
Outputs:
outputs[0]: forces[fx, fy, fz, ...](3n)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SphForceKernel
impl RefUnwindSafe for SphForceKernel
impl Send for SphForceKernel
impl Sync for SphForceKernel
impl Unpin for SphForceKernel
impl UnsafeUnpin for SphForceKernel
impl UnwindSafe for SphForceKernel
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