/// Initialize a new pipeline for fluids simulation.
///
/// # Parameters
///
/// - `particle_radius`: the radius of every particle for the fluid simulation.
/// - `smoothing_factor`: the smoothing factor used to compute the SPH kernel radius.
///    The kernel radius will be computed as `particle_radius * smoothing_factor * 2.0.
Initialize a new pipeline for fluids simulation.
Initialize a new pipeline for fluids simulation .
pub fn new(particle_radius: f32, smoothing_factor: f32) -> Self {
        let dfsph: DFSPHSolver = DFSPHSolver::new();
        Self {
            liquid_world: LiquidWorld::new(dfsph, particle_radius, smoothing_factor),
            coupling: ColliderCouplingSet::new(),
        }
    }
pub fn new ( particle_radius : f32 , smoothing_factor : f32 ) -> Self { let dfsph : DFSPHSolver = DFSPHSolver :: new ( ) ; Self { liquid_world : LiquidWorld :: new ( dfsph , particle_radius , smoothing_factor ) , coupling : ColliderCouplingSet :: new ( ) , } }
Initialize a new pipeline for fluids simulation.
Initialize a new pipeline for fluids simulation .
particle_radius
f32
the radius of every particle for the fluid simulation.
the radius of every particle for the fluid simulation .
smoothing_factor
f32
the smoothing factor used to compute the SPH kernel radius.
The kernel radius will be computed as `particle_radius * smoothing_factor * 2.0.
the smoothing factor used to compute the SPH kernel radius . The kernel radius will be computed as ` particle_radius * smoothing_factor * 2 . 0 .