where w0 is the beam radius,
p0 is the focal plane on the
z-axis,
Ebg0 is the background electric field amplitude and the spot radius for different positions along the propagation axis is given by
Note that the time-harmonic ansatz in COMSOL is
ejωt and with this convention, the beam above propagates in the +
z-direction. The equations are modified accordingly for beams propagating along the other coordinate axes.