Skip to content

Commit 4a3641d

Browse files
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, Mur1981
1 parent c9aec28 commit 4a3641d

10 files changed

Lines changed: 3754 additions & 0 deletions

File tree

_quarto.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ book:
2929
- chapters/cfd/index.qmd
3030
- chapters/darcy/index.qmd
3131
- chapters/finance/index.qmd
32+
- chapters/maxwell/index.qmd
3233
- part: "Appendices"
3334
chapters:
3435
- chapters/appendices/formulas/index.qmd
@@ -193,6 +194,7 @@ src_formulas: "https://github.com/devitocodes/devito_book/tree/devito/src/formul
193194
src_softeng2: "https://github.com/devitocodes/devito_book/tree/devito/src/softeng2"
194195
src_finance: "https://github.com/devitocodes/devito_book/tree/devito/src/finance"
195196
src_theory: "https://github.com/devitocodes/devito_book/tree/devito/src/theory"
197+
src_maxwell: "https://github.com/devitocodes/devito_book/tree/devito/src/maxwell"
196198

197199
crossref:
198200
eq-prefix: ""

chapters/maxwell/index.qmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Computational Electromagnetics {#sec-ch-maxwell}
2+
3+
{{< include maxwell.qmd >}}

0 commit comments

Comments
 (0)