pub struct MagnetosphereProfile {
pub body_name: String,
pub mag_type: MagnetosphereType,
pub surface_field_t: f64,
pub dipole_tilt_deg: f64,
pub magnetopause_m: f64,
}Expand description
A magnetospheric profile for a celestial body (OCS §2.4).
Fields§
§body_name: String§mag_type: MagnetosphereType§surface_field_t: f64Surface equatorial field strength in Tesla
dipole_tilt_deg: f64Dipole tilt angle in degrees
magnetopause_m: f64Magnetopause stand-off distance in meters (subsolar point)
Implementations§
Source§impl MagnetosphereProfile
impl MagnetosphereProfile
Sourcepub fn field_at_distance(&self, r_m: f64, body_radius_m: f64) -> f64
pub fn field_at_distance(&self, r_m: f64, body_radius_m: f64) -> f64
Compute the magnetic field strength at a distance r from the center (OCS §2.4). Uses dipole approximation: B(r) = B₀ * (R / r)³
Trait Implementations§
Source§impl Clone for MagnetosphereProfile
impl Clone for MagnetosphereProfile
Source§impl Debug for MagnetosphereProfile
impl Debug for MagnetosphereProfile
Source§impl PartialEq for MagnetosphereProfile
impl PartialEq for MagnetosphereProfile
impl StructuralPartialEq for MagnetosphereProfile
Auto Trait Implementations§
impl Freeze for MagnetosphereProfile
impl RefUnwindSafe for MagnetosphereProfile
impl Send for MagnetosphereProfile
impl Sync for MagnetosphereProfile
impl Unpin for MagnetosphereProfile
impl UnsafeUnpin for MagnetosphereProfile
impl UnwindSafe for MagnetosphereProfile
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