Skip to main content

oxiphysics_gpu/fluid_sim_gpu/
sphconfig_traits.rs

1//! # SphConfig - Trait Implementations
2//!
3//! This module contains trait implementations for `SphConfig`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11#[allow(unused_imports)]
12use super::functions::*;
13use super::types::SphConfig;
14
15impl Default for SphConfig {
16    fn default() -> Self {
17        Self {
18            h: 0.1,
19            rest_density: 1000.0,
20            pressure_k: 100.0,
21            viscosity: 0.1,
22            surface_tension: 0.0728,
23            gravity: [0.0, -9.81, 0.0],
24            dt: 0.001,
25        }
26    }
27}