Hi,
The idea behind the second script YIG2 is more correct. When adding high-alpha bumpers, you want to have it gradually increasing, so it can absorb incoming spinwaves. If you have an abrupt change in alpha from low to high, you can end up with reflections from the boundary. However, note that in mumax, 0 is defined at the center of the simulation. So instead of DefRegion(10+i, XRange((1848+i)*cx, (1849+i)*cx)) you probably want something more like: DefRegion(10+i, XRange((848+i)*cx, (849+i)*cx)). Your simulation box extends from -10e-6 to +10e-6, not 0 to 20e-6.
A few other small notes:
The scaling on your alpha is a bit extreme. It starts out reasonable at 0.005, but towards the end of the loop, it grows to as large as ~1e16 (=0.005*1.25^199). This is excessive. Gradually increasing up to say 0.5 or 1 should be sufficient. So something like: alpha0 = 0.5-(200-i)/400 .
Before you relax, it is a good idea to initialize your magnetization. Otherwise it will start from random. This will not effect the end result in your case, but it will take longer for no gain. Something like m= uniform(0.001,1,0) will do.
For setting the excitation, the vectormask method will work. A simpler way to accomplish this would be to simply define a region just like you did with alpha, and do something like:
defregion(1, xrange(-10e-6 ,-9e-6) )
B_ext.setregion(1, vector(0.001*sinc(2*pi*fc*(t-t_0))),0.05,0 )
Either way is equivalent, however. The vectormask method is more intended if you have spatial variation (and also a bit slower to initialize).
Cheers,
Josh L.