sparkl2d_core/dynamics/models/
plastic_model.rs

1use crate::dynamics::models::{
2    DruckerPragerPlasticity, NaccPlasticity, RankinePlasticity, SnowPlasticity,
3};
4
5#[cfg_attr(feature = "cuda", derive(cust_core::DeviceCopy))]
6#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
7#[derive(Copy, Clone, Debug)]
8#[repr(C)]
9pub enum CorePlasticModel {
10    DruckerPrager(DruckerPragerPlasticity),
11    Nacc(NaccPlasticity),
12    Rankine(RankinePlasticity),
13    Snow(SnowPlasticity),
14    Custom(u32),
15}