Using an equation to define the spatial field profile of a source in FDTD