See the k-wave example here, which includes one-dimensional propagation as well.
Warning
As there is no one-dimensional simulation, the example does not fully recreate the k-wave example. It underable to show how a 1D wave is different from 2D and 3D waves.
The purpose of this example is to show that the dimensions of a system influence characteristics of the propagation. A point source in two-dimensions is represented by an infinite line source in three-dimensions.
In two-dimensions there is cylindrical spreading, This means the acoustic energy is inversely proportional to radius,
Photoacoustic waves in 3D have compact support. This means they decay to zero rapidly, whereas a waveform in 2D does not have this property. As an infinite line source in 3D, there will always be some signal arriving to the detector from some (increasingly distant) part of the line source.