Hi all meep users,I have some questions about the calculation of reflection,
transmission and flux of metal-air scheme in the C++ interface. I would like to
know why the results of my code was error and if the define of susceptibility
of metal is error. Though many examples in ctl can be found in the main page,I
failed to rewrite them in C++,such as the following code:;Source definition(set!
 sources (list               (make source                 (src (make gaussian-
src (frequency fcen) (fwidth df)))                 (component Ez)              
(center (* sx -0.125) 0 0)             (size 0 sy))));Reflected flux monitor(
define refl ; reflected flux      (add-flux fcen df nfreq                 (make
flux-region                   (center (* sx -0.25) 0)(size 0 sy))));Transmitted
flux monitor(define trans ; reflected flux      (add-flux fcen df nfreq        
        (make flux-region                   (center (* sx 0.25) 0 0)(size 0 sy
0) (direction X))))I will be thankful if anybody help me.May



Attachment: main.cpp
Description: auto

_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to