[−][src]Struct salva3d::solver::DFSPHViscosity
Viscosity introduced with the Viscous DFSPH method.
This does not include any viscosity with boundaries so it can be useful to combine this with another viscosity model and include only its boundary part.
Fields
min_viscosity_iter: usize
Minimum number of iterations that must be executed for viscosity resolution.
max_viscosity_iter: usize
Maximum number of iterations that must be executed for viscosity resolution.
max_viscosity_error: N
Maximum acceptable strain error (in percents).
The viscosity solver will continue iterating until the strain error drops bellow this threshold, or until the maximum number of iterations is reached.
viscosity_coefficient: N
The viscosity coefficient.
Implementations
impl<N: RealField> DFSPHViscosity<N>
[src]
Trait Implementations
impl<N: RealField> NonPressureForce<N> for DFSPHViscosity<N>
[src]
fn solve(
&mut self,
timestep: &TimestepManager<N>,
_kernel_radius: N,
fluid_fluid_contacts: &ParticlesContacts<N>,
_fluid_boundaries_contacts: &ParticlesContacts<N>,
fluid: &mut Fluid<N>,
_boundaries: &[Boundary<N>],
densities: &[N]
)
[src]
&mut self,
timestep: &TimestepManager<N>,
_kernel_radius: N,
fluid_fluid_contacts: &ParticlesContacts<N>,
_fluid_boundaries_contacts: &ParticlesContacts<N>,
fluid: &mut Fluid<N>,
_boundaries: &[Boundary<N>],
densities: &[N]
)
fn apply_permutation(&mut self, _: &[usize])
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for DFSPHViscosity<N> where
N: RefUnwindSafe + Scalar,
N: RefUnwindSafe + Scalar,
impl<N> Send for DFSPHViscosity<N> where
N: Scalar,
N: Scalar,
impl<N> Sync for DFSPHViscosity<N> where
N: Scalar,
N: Scalar,
impl<N> Unpin for DFSPHViscosity<N> where
N: Scalar + Unpin,
N: Scalar + Unpin,
impl<N> UnwindSafe for DFSPHViscosity<N> where
N: Scalar + UnwindSafe,
N: Scalar + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,