Free-surface boundary conditions
Learning objectives
- State the free-surface BC as Dirichlet u = 0 (acoustic pressure release at z = 0)
- Apply the §1.5 / §2.4 hard-constraint reparameterisation u = z·NN(x, z, t) to the free surface
- Compare soft, hard-FS, and hard-both enforcement on a 1D wave problem
- Recognise that hard constraints eliminate the BC term from the PINN loss entirely
The acoustic free-surface boundary condition models the air-rock interface where the pressure perturbation must vanish: . (The elastic version requires zero traction, , which is more involved.) For the acoustic case it is a clean Dirichlet BC.
This section combines two threads we have already met:
- The §3.2 loss-balance crisis: BC penalty terms with naive get drowned out by the PDE-residual gradient.
- The §1.5 / §2.4 hard-constraint trick: reparameterise the network output so the BC is identically satisfied, eliminating the BC term from the loss entirely.
The reparameterisation
For the free-surface BC , write
At the wrap factor is zero, so identically — the free-surface BC is satisfied by construction. The PDE residual involves derivatives of ; the chain rule gives
For both BCs at AND we use . The wrap satisfies both Dirichlet BCs identically; the BC term drops out of the loss entirely.
Try it: 1D depth-only problem
For a clean comparison we use a 1D depth problem:
- Domain .
- IC: .
- BC: (free surface), (closed bottom).
- Analytic: .
Three modes race: SOFT (both BCs in loss); HARD-FS (only free surface hard, bottom soft); HARD-BOTH (both hard).
What you should observe
- SOFT often gets the IC and PDE right but leaves a small residual at the BC. The relative-L² is typically a few percent.
- HARD-FS shows mild improvement — one less BC term to balance.
- HARD-BOTH eliminates both BC terms from the loss entirely. The optimiser only sees PDE + IC, and the BC is satisfied by construction. Convergence is faster and final accuracy higher.
For 2D and 3D wave problems
The same idea extends. In 2D, the reparam enforces the free surface along the entire line. The other three boundaries (left, right, bottom) typically need ABC or PML (§4.6, §4.7), which are NOT Dirichlet and so cannot be hard-enforced. The hybrid — hard free surface, soft/PML elsewhere — is the de-facto standard in modern seismic-PINN papers.
References
- Lu, L., Pestourie, R., Yao, W., Wang, Z., Verdugo, F., Johnson, S.G. (2021). Physics-informed neural networks with hard constraints for inverse design. SIAM J. Sci. Comput. 43(6).
- Sukumar, N., Srivastava, A. (2022). Exact imposition of boundary conditions with distance functions in physics-informed deep neural networks. CMAME.