Struct sparkl3d_core::dynamics::models::MonaghanSphEos
source · #[repr(C)]pub struct MonaghanSphEos {
pub pressure0: Real,
pub gamma: u32,
pub viscosity: Real,
pub max_neg_pressure: Real,
}Fields§
§pressure0: Real§gamma: u32§viscosity: Real§max_neg_pressure: RealImplementations§
source§impl MonaghanSphEos
impl MonaghanSphEos
pub fn new(pressure0: Real, gamma: u32, viscosity: Real) -> Self
pub fn pressure(
&self,
particle_mass: Real,
particle_volume0: Real,
particle_density_fluid: Real
) -> Real
pub fn is_fluid(&self) -> bool
pub fn kirchhoff_stress(
&self,
particle_mass: Real,
particle_volume0: Real,
particle_density_fluid: Real,
particle_fluid_deformation_gradient_det: Real,
particle_velocity_gradient: &Matrix<Real>
) -> Matrix<Real>
pub fn active_timestep_bounds(&self) -> ActiveTimestepBounds
pub fn timestep_bound(
&self,
particle_fluid_deformation_gradient_det: Real,
particle_mass: Real,
particle_volume0: Real,
particle_density_fluid: Real,
particle_velocity: &Vector<Real>,
cell_width: Real
) -> Real
Trait Implementations§
source§impl Clone for MonaghanSphEos
impl Clone for MonaghanSphEos
source§fn clone(&self) -> MonaghanSphEos
fn clone(&self) -> MonaghanSphEos
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MonaghanSphEos
impl Debug for MonaghanSphEos
source§impl PartialEq<MonaghanSphEos> for MonaghanSphEos
impl PartialEq<MonaghanSphEos> for MonaghanSphEos
source§fn eq(&self, other: &MonaghanSphEos) -> bool
fn eq(&self, other: &MonaghanSphEos) -> bool
impl Copy for MonaghanSphEos
impl StructuralPartialEq for MonaghanSphEos
Auto Trait Implementations§
impl RefUnwindSafe for MonaghanSphEos
impl Send for MonaghanSphEos
impl Sync for MonaghanSphEos
impl Unpin for MonaghanSphEos
impl UnwindSafe for MonaghanSphEos
Blanket Implementations§
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.