pub struct SpectralElementResult {
pub u: Array1<f64>,
pub nodes: Vec<(f64, f64)>,
pub elements: Vec<QuadElement>,
pub residual_norm: f64,
pub num_iterations: usize,
pub computation_time: f64,
pub convergence_history: Option<Vec<f64>>,
}Expand description
Result from spectral element method solution
Fields§
§u: Array1<f64>Solution values at each node
nodes: Vec<(f64, f64)>Node coordinates (x, y)
elements: Vec<QuadElement>Element connectivity
residual_norm: f64Residual norm
num_iterations: usizeNumber of iterations performed
computation_time: f64Computation time
convergence_history: Option<Vec<f64>>Convergence history
Trait Implementations§
Source§impl Clone for SpectralElementResult
impl Clone for SpectralElementResult
Source§fn clone(&self) -> SpectralElementResult
fn clone(&self) -> SpectralElementResult
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 moreSource§impl Debug for SpectralElementResult
impl Debug for SpectralElementResult
Source§impl From<SpectralElementResult> for PDESolution<f64>
impl From<SpectralElementResult> for PDESolution<f64>
Source§fn from(result: SpectralElementResult) -> Self
fn from(result: SpectralElementResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SpectralElementResult
impl RefUnwindSafe for SpectralElementResult
impl Send for SpectralElementResult
impl Sync for SpectralElementResult
impl Unpin for SpectralElementResult
impl UnwindSafe for SpectralElementResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 more