Re: [Meep-discuss] Monitor one point to control the running time?

2008-07-29 Thread Yiling Qi
Dear Steven, Thanks so much for your help. I have read meep.scm and found texts shown as follows: ; condition function, designed to be used in conjunction with run-sources+, ; that returns true when |field|^2 at a given point has decayed more than ; a certain amount, always running for at least

Re: [Meep-discuss] Monitor one point to control the running time?

2008-07-29 Thread Steven G. Johnson
On Jul 29, 2008, at 7:32 AM, Yiling Qi wrote: I am sorry but since I am still a green hand, could you please do me a favor to explain a little more of what I should base my function according to above? No, I'm afraid not. I (and other people on the mailing list) may occasionally have

Re: [Meep-discuss] The fastest way to calculate the total energy

2008-07-29 Thread Steven G. Johnson
On Jul 29, 2008, at 3:50 AM, Jefferson Thomas wrote: Thank you for your reply. What suggestion do you mean ? I dont see any suggestion in Steven's mail. Sure I can calculate Q using longer intervals and it is exactly what I am doing now. Computing the energy in the entire cell and

Re: [Meep-discuss] The fastest way to calculate the total energy

2008-07-29 Thread Steven G. Johnson
On Jul 28, 2008, at 11:06 PM, Jefferson Thomas wrote: My application requires it because I am computing the Q factor based on depencance of total energy on time. I have been trying to do in with the meep::do_harminv and the methods explained on

Re: [Meep-discuss] Field divergence in meep after many steps for a photonic crystal

2008-07-29 Thread Steven G. Johnson
Your problem seems to stem from the fact that neither your structure nor your sources obey the symmetry you specified. On Jul 22, 2008, at 9:40 PM, Jefferson Thomas wrote: meep::symmetry S=meep::identity(); S = S+ meep::mirror(meep::X, v)*(-1); /// Introducing symmetries on X and Y