Commit 4a3641d
committed
Add Phase 6.2: Computational Electromagnetics (Maxwell FDTD)
Chapter 16 implementing FDTD Maxwell's equations solver:
Source code (src/maxwell/):
- maxwell_devito.py: 1D and 2D FDTD solvers using Devito
- pml.py: Convolutional PML (CPML) absorbing boundaries
- sources.py: Gaussian, sinusoidal, Ricker wavelet sources
- analytical.py: Plane wave, cavity modes for verification
Chapter content (chapters/maxwell/):
- Maxwell's equations and curl form
- Yee grid staggered field placement
- Leapfrog time stepping and CFL stability
- Devito implementation patterns
- PEC, PMC, and ABC boundary conditions
- PML theory and implementation
- Examples: plane wave, resonant cavity, waveguide
- 10 exercises
Tests (55 new tests):
- Source functions and PML coefficients
- 1D/2D FDTD solver verification
- Energy conservation and CFL stability
- Boundary condition enforcement
References: Yee1966, Taflove2005, Berenger1994, Roden2000, Mur19811 parent c9aec28 commit 4a3641d
10 files changed
Lines changed: 3754 additions & 0 deletions
File tree
- chapters/maxwell
- src/maxwell
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| 197 | + | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments