AcousticWaveProblem#
Formulation of the acoustic wave problem.
- class AcousticWaveProblem(c=2.0)[source]#
Bases:
TimeDependentProblem,SpatialProblemImplementation of the acoustic wave problem in the spatial interval \([0, 1]\) and temporal interval \([0, 1]\).
See also
Original reference: Wang, Sifan, Xinling Yu, and Paris Perdikaris. When and why PINNs fail to train: A neural tangent kernel perspective. Journal of Computational Physics 449 (2022): 110768. DOI: 10.1016.
- Example:
>>> problem = AcousticWaveProblem(c=2.0)
Initialization of the
AcousticWaveProblemclass.- solution(pts)[source]#
Implementation of the analytical solution of the acoustic wave problem.
- Parameters:
pts (LabelTensor) – Points where the solution is evaluated.
- Returns:
The analytical solution of the acoustic wave problem.
- Return type: