Class ParabolicEquationSolver

java.lang.Object
by.andd3dfx.math.pde.solver.AbstractEquationSolver<ParabolicEquation>
by.andd3dfx.math.pde.solver.ParabolicEquationSolver
All Implemented Interfaces:
EquationSolver<ParabolicEquation>

public class ParabolicEquationSolver extends AbstractEquationSolver<ParabolicEquation>
Solver for parabolic partial differential equations. Implements numerical method for solving parabolic equations using implicit finite difference scheme. The algorithm is based on the Thomas algorithm for solving tridiagonal systems of linear equations.
See Also:
  • Constructor Details

    • ParabolicEquationSolver

      public ParabolicEquationSolver()
  • Method Details

    • solve

      public Solution<ParabolicEquation> solve(ParabolicEquation eqn, double h, double tau)
      Solves parabolic partial differential equation using numerical method. Uses implicit finite difference scheme with weights for derivative approximation. Solution is found using the Thomas algorithm on each time step.
      Parameters:
      eqn - parabolic partial differential equation to solve
      h - spatial step size (must be positive)
      tau - time step size (must be positive)
      Returns:
      equation solution containing function values at all grid points
      Throws:
      IllegalArgumentException - if parameters h or tau are non-positive