Class FEMSolver

java.lang.Object
org.episteme.core.mathematics.analysis.fem.FEMSolver

public class FEMSolver extends Object
A simple Finite Element Method solver.

Currently supports solving the Poisson equation: -div(grad u) = f. Delegates to FEMProvider.

*

Reference:
Press, W. H., Teukolsky, S. A., Vetterling, W. T., invalid input: '&' Flannery, B. P. (2007). Numerical Recipes: The Art of Scientific Computing (3rd ed.). Cambridge University Press.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • FEMSolver

      public FEMSolver()
  • Method Details

    • setProvider

      public void setProvider(FEMProvider provider)
    • solvePoisson

      public Vector<Real> solvePoisson(Mesh mesh, Function<Vector<Real>, Real> sourceTerm)
      Solves the Poisson equation on the given mesh.
      Parameters:
      mesh - the finite element mesh
      sourceTerm - the source term function f(x)
      Returns:
      the solution vector u at the nodes