The finite element solvers solves the wave equation in the form:

$\nabla c^2 \nabla A + b \cdot \omega A + \omega^2 A = f$

Where $c^2$ is a matrix, corresponds to the propagation speed of the wave in the media, and b is the loss-gain coefficient. The in-homogeneity term $f$ corresponds to the sources in the media.