#[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: Real
Implementations§
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 duplicate 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 for MonaghanSphEos
impl PartialEq for MonaghanSphEos
impl Copy for MonaghanSphEos
impl StructuralPartialEq for MonaghanSphEos
Auto Trait Implementations§
impl Freeze for MonaghanSphEos
impl RefUnwindSafe for MonaghanSphEos
impl Send for MonaghanSphEos
impl Sync for MonaghanSphEos
impl Unpin for MonaghanSphEos
impl UnwindSafe for MonaghanSphEos
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.