Interface EquationSolver<E extends Equation>

Type Parameters:
E - the type of partial differential equation this solver handles
All Known Implementing Classes:
AbstractEquationSolver, HyperbolicEquationSolver, ParabolicEquationSolver

public interface EquationSolver<E extends Equation>
Interface for numerical solvers of partial differential equations. Defines the contract that all PDE solvers must implement to provide numerical solutions for different types of partial differential equations.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    solve(E eqn, double h, double tau)
    Solves a partial differential equation using numerical methods.
  • Method Details

    • solve

      Solution<E> solve(E eqn, double h, double tau)
      Solves a partial differential equation using numerical methods. The solution is found on a space-time grid defined by the spatial and temporal step sizes.
      Parameters:
      eqn - the partial differential equation to solve
      h - spatial step size (must be positive)
      tau - temporal step size (must be positive)
      Returns:
      Solution containing the numerical solution on the space-time grid
      Throws:
      IllegalArgumentException - if parameters h or tau are non-positive