pub struct LinearFilamentVectorPotentialKernel<T: Scalar> { /* private fields */ }Expand description
Linear filament vector-potential Barnes-Hut kernel.
Tree construction still uses each finite source segment’s full AABB, so the
near/far plan is based on the full span of the included filaments. Once a
source cluster is accepted as far, the source term is represented as a point
current element with a current-element-weighted origin, unit direction, and
I*dL magnitude. A magnetic dipole term translated to the same origin is
also included so closed or locally cancelling current paths can still
contribute to the far vector potential.
Implementations§
Trait Implementations§
Source§impl<T: Clone + Scalar> Clone for LinearFilamentVectorPotentialKernel<T>
impl<T: Clone + Scalar> Clone for LinearFilamentVectorPotentialKernel<T>
Source§fn clone(&self) -> LinearFilamentVectorPotentialKernel<T>
fn clone(&self) -> LinearFilamentVectorPotentialKernel<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<T: Copy + Scalar> Copy for LinearFilamentVectorPotentialKernel<T>
Source§impl<T: Default + Scalar> Default for LinearFilamentVectorPotentialKernel<T>
impl<T: Default + Scalar> Default for LinearFilamentVectorPotentialKernel<T>
Source§fn default() -> LinearFilamentVectorPotentialKernel<T>
fn default() -> LinearFilamentVectorPotentialKernel<T>
Source§impl<T: Scalar> HierarchicalKernel for LinearFilamentVectorPotentialKernel<T>
impl<T: Scalar> HierarchicalKernel for LinearFilamentVectorPotentialKernel<T>
Source§fn summarize_leaf_sources<S, M>(
&self,
source_ids: &[u32],
sources: S,
currents: M,
out: &mut Self::SourceSummary,
) -> HierarchicalErrorwhere
S: SourceCollection<Self>,
M: SourceMomentCollection<Self>,
fn summarize_leaf_sources<S, M>(
&self,
source_ids: &[u32],
sources: S,
currents: M,
out: &mut Self::SourceSummary,
) -> HierarchicalErrorwhere
S: SourceCollection<Self>,
M: SourceMomentCollection<Self>,
Summarize a source leaf for this hierarchical kernel.
Source§fn combine_source_summaries(
&self,
children: &[Self::SourceSummary],
out: &mut Self::SourceSummary,
) -> HierarchicalError
fn combine_source_summaries( &self, children: &[Self::SourceSummary], out: &mut Self::SourceSummary, ) -> HierarchicalError
Combine child source summaries for this hierarchical kernel.
Source§fn summarize_leaf_targets(
&self,
target_ids: &[u32],
targets: &[Self::TargetGeometry],
out: &mut Self::TargetSummary,
) -> HierarchicalError
fn summarize_leaf_targets( &self, target_ids: &[u32], targets: &[Self::TargetGeometry], out: &mut Self::TargetSummary, ) -> HierarchicalError
Summarize a target leaf for this hierarchical kernel.
Source§fn eval_near(
&self,
target: &Self::TargetGeometry,
source: &Self::SourceGeometry,
current: &Self::SourceMoment,
out: &mut Self::Output,
)
fn eval_near( &self, target: &Self::TargetGeometry, source: &Self::SourceGeometry, current: &Self::SourceMoment, out: &mut Self::Output, )
Evaluate one near-field source-target interaction for this kernel.
Source§fn eval_far(
&self,
target: &Self::TargetSummary,
source: &Self::SourceSummary,
out: &mut Self::Output,
)
fn eval_far( &self, target: &Self::TargetSummary, source: &Self::SourceSummary, out: &mut Self::Output, )
Evaluate one far-field summary interaction for this kernel.
Source§fn accept_far(
&self,
target_aabb: Aabb<Self::Scalar>,
source_aabb: Aabb<Self::Scalar>,
source: &Self::SourceSummary,
theta: Self::Scalar,
) -> bool
fn accept_far( &self, target_aabb: Aabb<Self::Scalar>, source_aabb: Aabb<Self::Scalar>, source: &Self::SourceSummary, theta: Self::Scalar, ) -> bool
Return whether this source summary is acceptable for far-field evaluation.
Source§fn zero_output(&self, out: &mut Self::Output)
fn zero_output(&self, out: &mut Self::Output)
Reset an output accumulator for this kernel.
Source§fn accumulate(&self, out: &mut Self::Output, contribution: &Self::Output)
fn accumulate(&self, out: &mut Self::Output, contribution: &Self::Output)
Accumulate one kernel contribution into an output value.
type Scalar = T
type SourceGeometry = LinearFilamentSource<T>
type TargetGeometry = DipoleTarget<T>
type SourceMoment = T
type SourceSummary = LinearFilamentSummary<T>
type TargetSummary = DipoleTargetSummary<T>
type Output = [T; 3]
Auto Trait Implementations§
impl<T> Freeze for LinearFilamentVectorPotentialKernel<T>where
PhantomData<T>: Freeze,
impl<T> RefUnwindSafe for LinearFilamentVectorPotentialKernel<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Send for LinearFilamentVectorPotentialKernel<T>where
PhantomData<T>: Send,
impl<T> Sync for LinearFilamentVectorPotentialKernel<T>where
PhantomData<T>: Sync,
impl<T> Unpin for LinearFilamentVectorPotentialKernel<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for LinearFilamentVectorPotentialKernel<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for LinearFilamentVectorPotentialKernel<T>where
PhantomData<T>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.