pub struct ChargedParticle {
pub charge_c: f64,
pub mass_kg: f64,
}Fields§
§charge_c: f64§mass_kg: f64Implementations§
Source§impl ChargedParticle
impl ChargedParticle
pub fn new(charge_c: f64, mass_kg: f64) -> Self
pub fn electron() -> Self
pub fn proton() -> Self
pub fn cyclotron_frequency_rad_per_s(&self, b_t: f64) -> f64
pub fn cyclotron_frequency_hz(&self, b_t: f64) -> f64
pub fn larmor_radius_m(&self, v_perp_m_s: f64, b_t: f64) -> f64
pub fn lorentz_force_n( &self, velocity_m_s: [f64; 3], e_v_per_m: [f64; 3], b_t: [f64; 3], ) -> [f64; 3]
pub fn larmor_radiation_power_w(&self, acceleration_m_s2: f64) -> f64
pub fn electric_field_v_per_m(&self, position_m: [f64; 3]) -> [f64; 3]
pub fn electric_potential_v(&self, distance_m: f64) -> f64
Trait Implementations§
Source§impl Clone for ChargedParticle
impl Clone for ChargedParticle
Source§fn clone(&self) -> ChargedParticle
fn clone(&self) -> ChargedParticle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChargedParticle
impl Debug for ChargedParticle
impl Copy for ChargedParticle
Auto Trait Implementations§
impl Freeze for ChargedParticle
impl RefUnwindSafe for ChargedParticle
impl Send for ChargedParticle
impl Sync for ChargedParticle
impl Unpin for ChargedParticle
impl UnsafeUnpin for ChargedParticle
impl UnwindSafe for ChargedParticle
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