[−][src]Struct salva3d::solver::Becker2009Elasticity
Elasticity based on the method from Becker et al. 2009.
Methods
impl<N: RealField, KernelDensity: Kernel, KernelGradient: Kernel> Becker2009Elasticity<N, KernelDensity, KernelGradient>
[src]
pub fn new(young_modulus: N, poisson_ratio: N, nonlinear_strain: bool) -> Self
[src]
Initialize elasticity from its young modulus and poisson ration.
If nonlinear_strain
is true
, the nonlinear version of the strain tensor is used.
This allows a more realistic simulation of large deformation. However this is slightly more
computationally intensive.
Trait Implementations
impl<N: RealField, KernelDensity: Kernel, KernelGradient: Kernel> NonPressureForce<N> for Becker2009Elasticity<N, KernelDensity, KernelGradient>
[src]
fn solve(
&mut self,
_timestep: &TimestepManager<N>,
kernel_radius: N,
_fluid_fluid_contacts: &ParticlesContacts<N>,
_fluid_boundaries_contacts: &ParticlesContacts<N>,
fluid: &mut Fluid<N>,
_boundaries: &[Boundary<N>],
_densities: &[N]
)
[src]
&mut self,
_timestep: &TimestepManager<N>,
kernel_radius: N,
_fluid_fluid_contacts: &ParticlesContacts<N>,
_fluid_boundaries_contacts: &ParticlesContacts<N>,
fluid: &mut Fluid<N>,
_boundaries: &[Boundary<N>],
_densities: &[N]
)
fn apply_permutation(&mut self, permutation: &[usize])
[src]
Auto Trait Implementations
impl<N, KernelDensity, KernelGradient> RefUnwindSafe for Becker2009Elasticity<N, KernelDensity, KernelGradient> where
KernelDensity: RefUnwindSafe,
KernelGradient: RefUnwindSafe,
N: RefUnwindSafe + Scalar,
KernelDensity: RefUnwindSafe,
KernelGradient: RefUnwindSafe,
N: RefUnwindSafe + Scalar,
impl<N, KernelDensity, KernelGradient> Send for Becker2009Elasticity<N, KernelDensity, KernelGradient> where
N: Scalar,
N: Scalar,
impl<N, KernelDensity, KernelGradient> Sync for Becker2009Elasticity<N, KernelDensity, KernelGradient> where
N: Scalar,
N: Scalar,
impl<N, KernelDensity, KernelGradient> Unpin for Becker2009Elasticity<N, KernelDensity, KernelGradient> where
KernelDensity: Unpin,
KernelGradient: Unpin,
N: Scalar + Unpin,
KernelDensity: Unpin,
KernelGradient: Unpin,
N: Scalar + Unpin,
impl<N, KernelDensity, KernelGradient> UnwindSafe for Becker2009Elasticity<N, KernelDensity, KernelGradient> where
KernelDensity: UnwindSafe,
KernelGradient: UnwindSafe,
N: Scalar + UnwindSafe,
KernelDensity: UnwindSafe,
KernelGradient: UnwindSafe,
N: Scalar + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,