[][src]Struct salva2d::solver::DFSPHViscosity

pub struct DFSPHViscosity {
    pub min_viscosity_iter: usize,
    pub max_viscosity_iter: usize,
    pub max_viscosity_error: Real,
    pub viscosity_coefficient: Real,
    // some fields omitted
}

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]

pub fn new(viscosity_coefficient: Real) -> Self[src]

Initialize a new DFSPH visocisity solver.

Trait Implementations

impl NonPressureForce for DFSPHViscosity[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,