Struct ElectronPlasma
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§
§impl ElectronPlasma
impl ElectronPlasma
pub 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.
pub fn plasma_angular_frequency(&self) -> Option<f64>
pub fn plasma_angular_frequency(&self) -> Option<f64>
Computes the electron plasma angular frequency.
pub fn plasma_frequency(&self) -> Option<f64>
pub fn plasma_frequency(&self) -> Option<f64>
Computes the electron plasma frequency.
pub 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));pub fn debye_number(&self) -> Option<f64>
pub fn debye_number(&self) -> Option<f64>
Computes the Debye number for this plasma state.
pub fn thermal_speed(&self) -> Option<f64>
pub fn thermal_speed(&self) -> Option<f64>
Computes the electron thermal speed.
Trait Implementations§
§impl Clone for ElectronPlasma
impl Clone for ElectronPlasma
§fn clone(&self) -> ElectronPlasma
fn clone(&self) -> ElectronPlasma
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 more§impl Debug for ElectronPlasma
impl Debug for ElectronPlasma
§impl PartialEq for ElectronPlasma
impl PartialEq for ElectronPlasma
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