Hi:

Instead of outputting fields or poynting vectors at every grid point inside
a volume, is there a way to output values every so many grid points?
I had to use a very fine grid to resolve near-field coupling but it is way
oversampled for post-processing.

I tried running a loop inside run-until by first defining a function which
executes the loop and outputs the field

(define (loop-output)
       (do ((XCut (+ SourceX 10) (+ XCut 10))) ((>= XCut (- (/ CellSizeX 2)
dPML)))                         ; Output every 10nm in X
               (in-volume (volume (center XCut SourceY) (size 0 (- CellSizeY
dPML dPML)))
                       (to-appended "EyXCut" output-efield-y) (to-appended
"HzXCut" output-hfield-z)
               )
       )
)

(run-until (/ 3 fcen)
       (synchronized-magnetic
                (at-every (/ 1 fcen 80) loop-output)
       )
)


The simulation output indicates the output files being created, but I cannot
find them.
Is there anything wrong with the syntax?

Thank you.


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

Reply via email to