pub struct ElectronPlasma {
pub electron_number_density: f64,
pub electron_temperature_kelvin: f64,
}Expand description
A simple electron-plasma state.
Fields§
§electron_number_density: f64Electron number density in particles per cubic meter.
electron_temperature_kelvin: f64Electron temperature in kelvin.
Implementations§
Source§impl ElectronPlasma
impl ElectronPlasma
Sourcepub fn new(
electron_number_density: f64,
electron_temperature_kelvin: f64,
) -> Option<ElectronPlasma>
pub fn new( electron_number_density: f64, electron_temperature_kelvin: f64, ) -> Option<ElectronPlasma>
Creates an electron-plasma state when both values are finite and non-negative.
Sourcepub fn plasma_angular_frequency(&self) -> Option<f64>
pub fn plasma_angular_frequency(&self) -> Option<f64>
Computes the electron plasma angular frequency.
Sourcepub fn plasma_frequency(&self) -> Option<f64>
pub fn plasma_frequency(&self) -> Option<f64>
Computes the electron plasma frequency.
Sourcepub fn debye_length(&self) -> Option<f64>
pub fn debye_length(&self) -> Option<f64>
Computes the Debye length for this plasma state.
§Examples
use use_plasma::ElectronPlasma;
let plasma = ElectronPlasma::new(1.0e18, 10_000.0);
assert!(plasma.and_then(|value| value.debye_length()).is_some_and(|value| value > 0.0));Sourcepub fn debye_number(&self) -> Option<f64>
pub fn debye_number(&self) -> Option<f64>
Computes the Debye number for this plasma state.
Sourcepub fn thermal_speed(&self) -> Option<f64>
pub fn thermal_speed(&self) -> Option<f64>
Computes the electron thermal speed.
Trait Implementations§
Source§impl Clone for ElectronPlasma
impl Clone for ElectronPlasma
Source§fn clone(&self) -> ElectronPlasma
fn clone(&self) -> ElectronPlasma
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 ElectronPlasma
impl Debug for ElectronPlasma
Source§impl PartialEq for ElectronPlasma
impl PartialEq for ElectronPlasma
Source§fn eq(&self, other: &ElectronPlasma) -> bool
fn eq(&self, other: &ElectronPlasma) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ElectronPlasma
impl StructuralPartialEq for ElectronPlasma
Auto Trait Implementations§
impl Freeze for ElectronPlasma
impl RefUnwindSafe for ElectronPlasma
impl Send for ElectronPlasma
impl Sync for ElectronPlasma
impl Unpin for ElectronPlasma
impl UnsafeUnpin for ElectronPlasma
impl UnwindSafe for ElectronPlasma
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