On Tue, 9 May 2006, paul wrote:
Could you give a breif corresponsding part to c++ interface if possible? How can I use self defiend source amplitude function in c++ interface?

I want to compute a ATR prism with Gaussian beam in 2D.

In C++ you would use:

        void fields::add_volume_source(component c, const src_time &src,
                         const geometric_volume &,
                         complex<double> A(const vec &),
                         complex<double> amp = 1.0);

and pass the function you want for the A parameter in order to specify the amplitude function.

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to