add_volume_source http://www.glenstark.net/meeppp/docu/classmeep_1_1_fields.html#9d04653a2743857a74dab5236c49c5fc
Example: complex<double> one(const vec &p) { return 1.0; } gaussian_src_time src(freq_cen, fwidth) volume src_plane(vec(0,0),vec(0,10)); f.add_volume_source(c,src,src_plane,one,1.0); ------------------ Sincerely yours, Xing Sheng 2011-01-19 ------------------------------------------------------------- From:Stefan Kapser Sent:2011-01-19 08:02:51 To:meep-discuss Cc: Subject:[Meep-discuss] plane waves Hi meep-users, I would like to create pulsed plane waves along the x-direction with meep, using the c++ package. Unfortunately in the tutorial I only found information on point sources. Did I maybe not see the relevant part or could you give me a tip, how to create this kind of waves? Thanks a lot in advance! Stefan _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss