/// Initialize a new DFSPH visocisity solver.
Initialize a new DFSPH visocisity solver.
Initialize a new DFSPH visocisity solver .
pub fn new(viscosity_coefficient: Real) -> Self {
        assert!(
            viscosity_coefficient >= na::zero::<Real>()
                && viscosity_coefficient <= na::one::<Real>(),
            "The viscosity coefficient must be between 0.0 and 1.0."
        );
        Self {
            min_viscosity_iter: 1,
            max_viscosity_iter: 50,
            max_viscosity_error: na::convert::<_, Real>(0.01),
            viscosity_coefficient,
            betas: Vec::new(),
            strain_rates: Vec::new(),
        }
    }
pub fn new ( viscosity_coefficient : Real ) -> Self { assert ! ( viscosity_coefficient na zero Real ( ) viscosity_coefficient na one Real ( ) " " ) ; Self { min_viscosity_iter : 1 , max_viscosity_iter : 50 , max_viscosity_error : na :: convert :: < _ , Real > ( 0.01 ) , viscosity_coefficient , betas : Vec :: new ( ) , strain_rates : Vec :: new ( ) , } }
Initialize a new DFSPH visocisity solver.
Initialize a new DFSPH visocisity solver .
viscosity_coefficient
Real