Hi
I am trying to implement a tophat function as a custom source, I have used
the custom-src to implement a sinc function with respect to time but I am
running into trouble creating the code to account for the t=0 step to
prevent division by zero.
Could anyone help me out with this function, I have pasted the ctl snippet
below?
(set! sources (list
(make source
(src (make custom-src (src-func
( lambda(t)
(if (= t 0) ((=(/ sin(t) t) 1)) (/ sin(t) (t)) )
)
)
(end-time 300)
)
)
(component Ez)
(center -6 0)
)
)
)
Thanks
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss