This repository provides a simple 2D Poisson equation solver using the Finite Element Method (FEM) and an Algebraic Multigrid (AMG) preconditioner via pyamg. The code demonstrates how to:
- Python 3.8+ (recommended)
- NumPy
- SciPy
- Matplotlib
- pyamg
Install all with:
pip install numpy scipy matplotlib pyamg
.
├── solver_fem_amg.py # Contains the core solver code
├── main.py # Example script to run the solver
└── README.md # This file
(Adjust file names / structure if your project layout differs.)
- Clone or download this repository.