[Meep-discuss] query on add-flux function

2009-03-06 Thread Ajayram S K S M
Dear Steven, I am working at a single frequency in optical range. i am interested in getting the reflectivity and transmitivity for a geometry. for this i am using the add-flux function as explained in the meep-tutorial. (define refl ;reflected flux (add-flux 1.53233 df nfreq

Re: [Meep-discuss] Complex field in meep

2009-03-06 Thread adrian
  Hi Zheng:     I finally figure out your approach after reading one website as below: http://www.martinos.org/~adunn/papers/dissertation/node36.html      I think that's what you mean.    However, I am thinking if anyway in meep to accumulate the field in one period without storing

Re: [Meep-discuss] Complex field in meep

2009-03-06 Thread adrian
   Hi Zheng:     I should make my question clearer.     If I'd like to calculate the equation:        sum Ex(r,t)*cos(w*t) over one period,     can it be done in meep or I have to do postprocess, say to save field in each time step?   Thanks Cheers Adrian --- 09/3/6 (五),Zheng Li

Re: [Meep-discuss] Error when meep run: Wrong type argument in position

2009-03-06 Thread Steven G. Johnson
On Feb 19, 2009, at 12:29 PM, ZichengQiu wrote: meep (run-until 200 ...(at-beginning output-epsilon) ...(to-appended ez (at-every 0.6 output-efield-z))) unnamed port: In procedure vector-ref in expression (make- structure (infer-dimensions k) s ...): unnamed port: Wrong

Re: [Meep-discuss] Complex field in meep

2009-03-06 Thread Steven G. Johnson
On Mar 6, 2009, at 4:31 PM, adrian wrote: Hi Zheng: I finally figure out your approach after reading one website as below: http://www.martinos.org/~adunn/papers/dissertation/node36.html I think that's what you mean. However, I am thinking if anyway in meep to