Re: [Meep-discuss] help

2009-09-11 Thread G. O. Nikiforov
This is the way you write mathematical operations in the scheme programming language which MEEP uses. Basically (/ sy -2) means - sy/2. Check out this website for more information on the syntax in scheme: http://www.math.grin.edu/~stone/scheme-web/table-of-contents.html Hope this helps, George

Re: [Meep-discuss] Use of custom_src_time function

2009-09-11 Thread Nizamov Shawkat
Probably, you would better look at generic src_time class. AFAIK, you just have to override its dipole(time) function to whatever function you need. I don't have a working c++ example and would be glad if anyone provides it. wbr Shawkat 2009/9/11, Chintha Handapangoda h_chin...@yahoo.com: Dear

[Meep-discuss] Spectral width

2009-09-11 Thread Bernd Schmid
Hello, I am simulating a continuous source which I switch off after time T=100. Over this time I am using the add-flux fluntion to obtain the spectrum. Theoretically, the spectrum should show equidistant nodes, the distance between them being df=1/(2T). However, looking at the output, the

[Meep-discuss] Transmittance curves simulation.

2009-09-11 Thread 加祥 张
Dear Mr.steven and all users:   I want to caculate the transmittance curves of a photonic crystals slab, which is made of nonlinear medium. i knew how to caculate transmittance curves for linear medium like as the example in the meep tutorial (holey-wvg-cavity.ctl ). In pervious