Struct sparkl2d_core::dynamics::ParticleVolume
source · #[repr(C)]pub struct ParticleVolume {
pub mass: Real,
pub volume0: Real,
pub radius0: Real,
pub deformation_gradient: Matrix<Real>,
pub plastic_deformation_gradient_det: Real,
}
Fields§
§mass: Real
§volume0: Real
§radius0: Real
§deformation_gradient: Matrix<Real>
§plastic_deformation_gradient_det: Real
Implementations§
source§impl ParticleVolume
impl ParticleVolume
pub fn density0(&self) -> Real
pub fn fluid_deformation_gradient_det(&self) -> Real
pub fn volume_fluid(&self) -> Real
pub fn volume_def_grad(&self) -> Real
pub fn density_fluid(&self) -> Real
pub fn density_def_grad(&self) -> Real
Trait Implementations§
source§impl Clone for ParticleVolume
impl Clone for ParticleVolume
source§fn clone(&self) -> ParticleVolume
fn clone(&self) -> ParticleVolume
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 ParticleVolume
impl Debug for ParticleVolume
source§impl Default for ParticleVolume
impl Default for ParticleVolume
source§impl PartialEq<ParticleVolume> for ParticleVolume
impl PartialEq<ParticleVolume> for ParticleVolume
source§fn eq(&self, other: &ParticleVolume) -> bool
fn eq(&self, other: &ParticleVolume) -> bool
source§impl RealStruct for ParticleVolume
impl RealStruct for ParticleVolume
impl Copy for ParticleVolume
impl Pod for ParticleVolume
impl StructuralPartialEq for ParticleVolume
Auto Trait Implementations§
impl RefUnwindSafe for ParticleVolume
impl Send for ParticleVolume
impl Sync for ParticleVolume
impl Unpin for ParticleVolume
impl UnwindSafe for ParticleVolume
Blanket Implementations§
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
. Read more§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.