pub struct SphSolverStats { /* private fields */ }Expand description
Read-only diagnostics snapshot summarizing density convergence, energy, and total mass.
Implementations§
Source§impl SphSolverStats
Implements impl #impl_generics #name #ty_generics #where_clause.
impl SphSolverStats
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_particle_count(&self) -> usize
pub fn get_mut_particle_count(&mut self) -> &mut usize
pub fn set_particle_count(&mut self, val: usize) -> &mut Self
pub fn get_mean_density(&self) -> f32
pub fn get_mut_mean_density(&mut self) -> &mut f32
pub fn set_mean_density(&mut self, val: f32) -> &mut Self
pub fn get_max_density(&self) -> f32
pub fn get_mut_max_density(&mut self) -> &mut f32
pub fn set_max_density(&mut self, val: f32) -> &mut Self
pub fn get_mean_compression_error(&self) -> f32
pub fn get_mut_mean_compression_error(&mut self) -> &mut f32
pub fn set_mean_compression_error(&mut self, val: f32) -> &mut Self
pub fn get_kinetic_energy(&self) -> f32
pub fn get_mut_kinetic_energy(&mut self) -> &mut f32
pub fn set_kinetic_energy(&mut self, val: f32) -> &mut Self
pub fn get_total_mass(&self) -> f32
pub fn get_mut_total_mass(&mut self) -> &mut f32
pub fn set_total_mass(&mut self, val: f32) -> &mut Self
pub fn get_step_count(&self) -> u64
pub fn get_mut_step_count(&mut self) -> &mut u64
pub fn set_step_count(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for SphSolverStats
impl Clone for SphSolverStats
impl Copy for SphSolverStats
Source§impl Debug for SphSolverStats
impl Debug for SphSolverStats
Source§impl Default for SphSolverStats
impl Default for SphSolverStats
Source§impl PartialEq for SphSolverStats
impl PartialEq for SphSolverStats
impl StructuralPartialEq for SphSolverStats
Auto Trait Implementations§
impl Forget for SphSolverStats
impl Freeze for SphSolverStats
impl Move for SphSolverStats
impl RefUnwindSafe for SphSolverStats
impl Send for SphSolverStats
impl Sync for SphSolverStats
impl Unpin for SphSolverStats
impl UnsafeUnpin for SphSolverStats
impl UnwindSafe for SphSolverStats
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