
266 Designing Scientific Applications on GPUs
11.4.4 Wave generation and absorption
To simulate waves using a numerical model, a general purpose technique
for both generating and absorbing waves inside the finite numerical domain is
needed. It is preferable that the technique is suitable for easy integration in
a software library component setup. One such technique is the line relaxation
method attributed to [29]. This is a simple ad hoc technique sufficiently ac-
curate for engineering purposes. It modifies the computed solution every time
step during simulation by a postprocessing step where the relaxed solution
becomes
g
∗
(x
i
, t) = Γ(x
i
)g(x
i
, t) + (1 −