Skip to content

Instantly share code, notes, and snippets.

@GCBallesteros
Last active March 2, 2018 08:38
Show Gist options
  • Save GCBallesteros/9b79ddedd4e2fa85c21a5368710f7998 to your computer and use it in GitHub Desktop.
Save GCBallesteros/9b79ddedd4e2fa85c21a5368710f7998 to your computer and use it in GitHub Desktop.
Gaussian Source Definition
(set! sources
(list
(make source
(src (make continuous-src (frequency fcen) (fwidth df)))
(component Ez)
(center x-pos y-pos)
(size 0 sy-source)
(amp-func (gaussian-beam zR k z)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment