Re: [Meep-discuss] Use of custom_src_time function

2009-09-22 Thread Steven G. Johnson
On Sep 11, 2009, at 1:09 AM, Chintha Handapangoda wrote: I am trying to simulate a two dimensional photonic crystal with a square lattice composed of cylinders, using the C++ interface to meep. My source is in the form of discrete values in both spatial and time domains (stored in an

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] Use of custom_src_time function

2009-09-10 Thread Chintha Handapangoda
Dear All, I am trying to simulate a two dimensional photonic crystal with a square lattice composed of cylinders, using the C++ interface to meep. My source is in the form of discrete values in both spatial and time domains (stored in an array). I tried to use the custom_src_time function