On 15/01/18 10:22, Kapidani Bernard wrote: What is the correct procedure to output the the fields on a physical line with a given resolution at each time step?
I guess in Scheme it could be done via: (run-until RUNTIME (in-volume (volume (center 0 0.5 0.5) (size GRID_SIZE_X 0 0) ) (to-appended "ey" (at-every (/ 1 2 resolution) output-efield-y)) ) ) where “RUNTIME” and “GRID_SIZE_X” are just some variables you define. The chosen time interval is based on the standard Courant factor in MEEP. Probably it’s not the most efficient way as it may call the interpolation routine anyways. But it should work in principle. Best regards, Max From: Ian Sage<mailto:i...@sage.myzen.co.uk> Sent: Monday, January 15, 2018 12:34 To: meep-discuss@ab-initio.mit.edu<mailto:meep-discuss@ab-initio.mit.edu> Subject: Re: [Meep-discuss] Plot field on a line at every time step On 15/01/18 10:22, Kapidani Bernard wrote: What is the correct procedure to output the the fields on a physical line with a given resolution at each time step? I cannot say it's a "right" way - and I use the Python rather than Scheme interface, but in a homebrew step function, looping over the points with a call to sim.get_field_point seems fine. Ian
_______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss