Enhanced academic_example.jl to compute actual solution:
- Construct explicit 5×5 Laplacian system (tridiagonal stiffness matrix)
- Solve K * u = f directly to get solution vector
- Verify solution with residual check (||K*u - f|| < 1e-15)
- Display solution: u = [-2.5, -4.0, -4.5, -4.0, -2.5]
This fully demonstrates Issue #183 requirement (c): extract matrices
and get solution vector for use with external solvers.
Added imports: LinearAlgebra, SparseArrays
Changes: 211 lines → 256 lines (actual working solver)
Created new example demonstrating the three requirements from Issue #183:
- a) Discretize space (mesh generation shown)
- b) Assemble stiffness matrix (API demonstrated)
- c) Extract matrices for external solvers (working code)
New files:
- examples/academic_matrix_extraction/academic_example.jl (211 lines)
- examples/academic_matrix_extraction/README.md (123 lines)
This is a WORKING example using Dirichlet BC to demonstrate the matrix
extraction workflow. Shows integration with DifferentialEquations.jl,
LinearSolve.jl, Krylov.jl, and custom solvers.
Also updated gmsh_heat_equation.jl to be honest about demonstration status:
- Added clear NOTE that Heat problem is pending Phase 2
- Explains workflow structure vs actual functionality
- References architecture refactoring progress