PDEProblem

Trait PDEProblem 

Source
pub trait PDEProblem<F: 'static + Debug + Copy + PartialOrd> {
    // Required methods
    fn domain(&self) -> &Domain;
    fn boundary_conditions(&self) -> &[BoundaryCondition<F>];
    fn num_variables() -> usize;
    fn pde_terms() -> PDEResult<()>;
}
Expand description

Trait for PDE problems

Required Methods§

Source

fn domain(&self) -> &Domain

Get the domain of the PDE problem

Source

fn boundary_conditions(&self) -> &[BoundaryCondition<F>]

Get the boundary conditions of the PDE problem

Source

fn num_variables() -> usize

Get the number of dependent variables in the PDE

Source

fn pde_terms() -> PDEResult<()>

Get the PDE terms (implementation depends on the specific PDE type)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§