Dear all, i would like to set up a partially coherent illumination scheme using the C++ interface. For this i need to equip dipole- (or volume) sources with phase factors that varies randomly with time. My problem with this is that the field function add_volume_source does not allow to specify a time dependence of the source:
add_volume_source<http://www.glenstark.net/meeppp/docu/classmeep_1_1_fields.html#9d04653a2743857a74dab5236c49c5fc>( component<http://www.glenstark.net/meeppp/docu/namespacemeep.html#3aed0bbb643e793f3225025c33357119>c, const Src_Time<http://www.glenstark.net/meeppp/docu/classmeep_1_1_src___time.html>&src, const Geometric_Volume<http://www.glenstark.net/meeppp/docu/classmeep_1_1_geometric___volume.html>&, complex< double > A(const vec <http://www.glenstark.net/meeppp/docu/classmeep_1_1vec.html> &), complex< double > amp=1.0) Any ideas on how to solve this (changing a phase factor of A in time) would be very appreciated. (The only workaround that i can think of is to add a ridicules amount of sources uncorrelated sources, but i don t think this is very practical) Thanks, M
_______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

