pub struct DipoleSource {
pub position: Vec3,
pub moment: Vec3,
}Expand description
A point magnetic dipole in SI units. The dominant primitive — used for far-field approximations of permanent magnets, current loops at distance, and the linearised induced moment of ferrous objects.
Field at r (relative to dipole):
B = (μ₀ / 4π r³) · [3(m·r̂)r̂ − m] (Jackson 3e §5.6).
Fields§
§position: Vec3Position in metres.
moment: Vec3Magnetic moment in A·m².
Implementations§
Trait Implementations§
Source§impl Clone for DipoleSource
impl Clone for DipoleSource
Source§fn clone(&self) -> DipoleSource
fn clone(&self) -> DipoleSource
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 DipoleSource
impl Debug for DipoleSource
Source§impl<'de> Deserialize<'de> for DipoleSource
impl<'de> Deserialize<'de> for DipoleSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DipoleSource
impl PartialEq for DipoleSource
Source§impl Serialize for DipoleSource
impl Serialize for DipoleSource
impl StructuralPartialEq for DipoleSource
Auto Trait Implementations§
impl Freeze for DipoleSource
impl RefUnwindSafe for DipoleSource
impl Send for DipoleSource
impl Sync for DipoleSource
impl Unpin for DipoleSource
impl UnsafeUnpin for DipoleSource
impl UnwindSafe for DipoleSource
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