Skip to content

Commit b9e017b

Browse files
committed
Add Phase 2 content: High-Order Methods and Elastic Wave Equations
New chapter: - Chapter 8: High-Order Methods - Dispersion Analysis (numerical dispersion, phase/group velocity) - Fornberg Algorithm (computing FD weights for arbitrary order) - Dispersion-Relation-Preserving (DRP) Schemes (Tam-Webb optimization) - Custom weights in Devito: u.dx2(weights=weights) New section in Chapter 7: - 7.3 Elastic Wave Equations - Velocity-stress formulation - VectorTimeFunction and TensorTimeFunction - Vector operators: div, grad, diag - Staggered grid discretization - Varying Lame parameters for heterogeneous media Key Devito patterns introduced: - Custom FD weights for optimized dispersion - VectorTimeFunction for velocity fields - TensorTimeFunction for stress tensors (symmetric=True) - Vector calculus operators (div, grad, diag) - Staggered grid handling for first-order systems New solvers: dispersion.py, drp_devito.py, elastic_devito.py New tests: 73 tests (39 highorder, 34 elastic) Added references for Fornberg, Tam-Webb DRP schemes
1 parent ab9b38c commit b9e017b

13 files changed

Lines changed: 4488 additions & 11 deletions

File tree

.typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ strang = "strang"
88
Strang = "Strang"
99
# Variable name for "p at iteration n" in Jacobi iteration
1010
pn = "pn"
11+
# NumPy function for creating array ranges
12+
arange = "arange"

_quarto.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ book:
2121
- chapters/nonlin/index.qmd
2222
- chapters/elliptic/index.qmd
2323
- chapters/systems/index.qmd
24+
- chapters/highorder/index.qmd
2425
- part: "Appendices"
2526
chapters:
2627
- chapters/appendices/formulas/index.qmd
@@ -173,6 +174,7 @@ src_trunc: "https://github.com/devitocodes/devito_book/tree/devito/src/trunc"
173174
src_advec: "https://github.com/devitocodes/devito_book/tree/devito/src/advec"
174175
src_elliptic: "https://github.com/devitocodes/devito_book/tree/devito/src/elliptic"
175176
src_systems: "https://github.com/devitocodes/devito_book/tree/devito/src/systems"
177+
src_highorder: "https://github.com/devitocodes/devito_book/tree/devito/src/highorder"
176178
src_formulas: "https://github.com/devitocodes/devito_book/tree/devito/src/formulas"
177179
src_softeng2: "https://github.com/devitocodes/devito_book/tree/devito/src/softeng2"
178180

0 commit comments

Comments
 (0)