Enum NumericalError
pub enum NumericalError {
InvalidMedium(&'static str),
InvalidGrid(&'static str),
CourantViolation {
courant: f64,
max_admissible: f64,
},
BufferLengthMismatch {
buffer: &'static str,
expected: usize,
actual: usize,
},
NonCollocatedFieldProduct,
WireEncoding(&'static str),
InvalidRotation(&'static str),
SolverConvergence(&'static str),
DomainError(&'static str),
}Expand description
Errors raised by QAC numerical continuum and room/dispersion solvers.
Variants§
InvalidMedium(&'static str)
Physical medium parameter is non-positive or non-finite.
InvalidGrid(&'static str)
Grid dimensions or spacing are invalid.
CourantViolation
Timestep violates the 3D Courant stability bound or is non-positive.
Fields
BufferLengthMismatch
Caller-supplied state slice length does not match expected cell count.
Fields
NonCollocatedFieldProduct
Attempted to multiply non-collocated staggered pressure and velocity without interpolation.
WireEncoding(&'static str)
Binary record or restart payload has invalid length, reserved bytes, or non-finite values.
InvalidRotation(&'static str)
Quaternion or frame matrix violates C02-C04 admission tolerance.
SolverConvergence(&'static str)
Iterative linear solver failed to converge or encountered breakdown.
DomainError(&'static str)
Room acoustics or attenuation domain error (e.g., absorption >= 1.0 in Eyring).
Trait Implementations§
§impl Clone for NumericalError
impl Clone for NumericalError
§fn clone(&self) -> NumericalError
fn clone(&self) -> NumericalError
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 more§impl Debug for NumericalError
impl Debug for NumericalError
§impl PartialEq for NumericalError
impl PartialEq for NumericalError
impl StructuralPartialEq for NumericalError
Auto Trait Implementations§
impl Freeze for NumericalError
impl RefUnwindSafe for NumericalError
impl Send for NumericalError
impl Sync for NumericalError
impl Unpin for NumericalError
impl UnsafeUnpin for NumericalError
impl UnwindSafe for NumericalError
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