[−][src]Struct salva2d::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: Real
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: Real
The viscosity coefficient.
Implementations
impl DFSPHViscosity
[src]
Trait Implementations
impl NonPressureForce for DFSPHViscosity
[src]
fn solve(
&mut self,
timestep: &TimestepManager,
_kernel_radius: Real,
fluid_fluid_contacts: &ParticlesContacts,
_fluid_boundaries_contacts: &ParticlesContacts,
fluid: &mut Fluid,
_boundaries: &[Boundary],
densities: &[Real]
)
[src]
&mut self,
timestep: &TimestepManager,
_kernel_radius: Real,
fluid_fluid_contacts: &ParticlesContacts,
_fluid_boundaries_contacts: &ParticlesContacts,
fluid: &mut Fluid,
_boundaries: &[Boundary],
densities: &[Real]
)
fn apply_permutation(&mut self, _: &[usize])
[src]
Auto Trait Implementations
impl RefUnwindSafe for DFSPHViscosity
[src]
impl Send for DFSPHViscosity
[src]
impl Sync for DFSPHViscosity
[src]
impl Unpin for DFSPHViscosity
[src]
impl UnwindSafe for DFSPHViscosity
[src]
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,
pub 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>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub 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.
pub 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.
pub 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>,