pub struct IterativeSystem { /* private fields */ }Expand description
The assembled, frequency-independent, matrix-free mesh system of a geometry and its ports. See the module documentation.
Implementations§
Source§impl IterativeSystem
impl IterativeSystem
Sourcepub fn assemble(
geometry: &Geometry,
ports: &[Port],
discretization: &Discretization,
params: &IterativeParams,
) -> Result<Self, SolveError>
pub fn assemble( geometry: &Geometry, ports: &[Port], discretization: &Discretization, params: &IterativeParams, ) -> Result<Self, SolveError>
Discretizes geometry, builds the loop basis for ports and the
pFFT operator of the filaments, and precomputes the port columns and
the preconditioner.
§Errors
As MeshSystem::assemble, plus
SolveError::Pfft if the operator cannot be built from
params.pfft.
Sourcepub fn mesh(&self) -> &MeshMatrix
pub fn mesh(&self) -> &MeshMatrix
The loop basis.
Sourcepub fn operator_stats(&self) -> PfftStats
pub fn operator_stats(&self) -> PfftStats
Sizes of the pFFT operator.
Sourcepub fn gmres_params(&self) -> GmresParams
pub fn gmres_params(&self) -> GmresParams
The GMRES parameters every solve uses.
Sourcepub fn impedance(
&self,
frequency: f64,
) -> Result<DMatrix<Complex<f64>>, SolveError>
pub fn impedance( &self, frequency: f64, ) -> Result<DMatrix<Complex<f64>>, SolveError>
The port impedance matrix Z(ω), in ohms, at frequency hertz; the
iterative counterpart of
MeshSystem::impedance.
§Errors
SolveError::InvalidFrequency for a negative or non-finite
frequency (reported with index 0), SolveError::NotConverged if a
GMRES solve misses its tolerance, SolveError::Singular if the
result is not finite.
Sourcepub fn solve(&self, frequency: f64) -> Result<IterativeSolution, SolveError>
pub fn solve(&self, frequency: f64) -> Result<IterativeSolution, SolveError>
Sourcepub fn sweep(&self, frequencies: &[f64]) -> Result<SweepResult, SolveError>
pub fn sweep(&self, frequencies: &[f64]) -> Result<SweepResult, SolveError>
Z(ω) at every one of frequencies (hertz), with provenance; the
iterative counterpart of MeshSystem::sweep.
Frequencies are solved concurrently, as many at a time as fit a
fixed memory budget; each is an independent deterministic
computation, so the result does not depend on the number of threads.
Provenance::timing.inductance_s reports the time spent building the
pFFT operator.
§Errors
As impedance; the first failing frequency in list
order is reported.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for IterativeSystem
impl !UnwindSafe for IterativeSystem
impl Freeze for IterativeSystem
impl Send for IterativeSystem
impl Sync for IterativeSystem
impl Unpin for IterativeSystem
impl UnsafeUnpin for IterativeSystem
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
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
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.