pub trait ExactSolution<F: IntegrateFloat> {
// Required methods
fn evaluate(&self, coordinates: &[F]) -> F;
fn derivative(&self, coordinates: &[F], variable: usize) -> F;
fn second_derivative(&self, coordinates: &[F], variable: usize) -> F;
fn dimension(&self) -> usize;
// Provided method
fn mixed_derivative(&self, coordinates: &[F], var1: usize, var2: usize) -> F { ... }
}Expand description
Trait for exact solutions in MMS problems
Required Methods§
Sourcefn derivative(&self, coordinates: &[F], variable: usize) -> F
fn derivative(&self, coordinates: &[F], variable: usize) -> F
Evaluate the first derivative with respect to specified variable
Sourcefn second_derivative(&self, coordinates: &[F], variable: usize) -> F
fn second_derivative(&self, coordinates: &[F], variable: usize) -> F
Evaluate the second derivative with respect to specified variable
Provided Methods§
Sourcefn mixed_derivative(&self, coordinates: &[F], var1: usize, var2: usize) -> F
fn mixed_derivative(&self, coordinates: &[F], var1: usize, var2: usize) -> F
Evaluate mixed partial derivatives (for PDEs)