Thank you Sir: I ran your example. It worked. I still have some ways to go in understanding the details of relating it to my problem but a having a working example is a big step toward understanding.
Again, Thank you for your help, Steve On Tue, 2017-06-13 at 22:00 -0700, Ardavan Oskooi wrote: > On 06/09/2017 12:39 PM, Steve wrote: > > > > I am probably not changing sources correctly. This is what I am > > trying > > to make work. Note: Over 600 lines of Scheme set-up code removed. > See this example of how to set up a moving point charge using > change-sources!: > > https://www.mail-archive.com/meep-discuss@ab-initio.mit.edu/msg > 04235.html > > Note how the run function which invokes change-sources! is called at > every time step. In your case, the call to change-sources! is not > part > of a run function since it is placed outside of the run routine. > > The change-sources! routine is defined in ~/meep/libctl/meep.scm.in. > Only the source is being reset, not the fields. One possibility why > the > field data in your HDF5 file is being reset is because it is being > overwritten by the two lines: > > (at-end output-efield) > (at-end output-hfield) > > In case you haven't already done so, you can check the size of the > dataset using the "h5ls" command of h5utils. The appended time- > series > data should create an extra dimension in the dataset. This is > demonstrated in the following tutorial: > > http://ab-initio.mit.edu/wiki/index.php/Meep_Tutorial#A_90.C2.B > 0_bend > > _______________________________________________ > 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