Responding to my own question: The code below (posted on a forum somewhere)
works on MEEP version 1.1.1.

(reset-meep)
(set! dimensions 2)
(set! force-complex-fields? true)
(set! geometry-lattice (make lattice (size 12 12 no-size) )) ;
computational domain
(set! sources (list (make source (src (make continuous-src (frequency
1.0))) (center 0.0 0.0) (component Ez) ))) ; line current source along
z-direction located at the center of the computational domain
(set! pml-layers (list (make pml (thickness 2.0) ))) ; PML layers in all
direction
(set! resolution 40.0)
(init-fields)
(meep-fields-solve-cw fields 0.00000001 10000 10)
(use-output-directory)
(output-efield-x) ; x-comp of E-field
(output-efield-y) ; y-comp of E-field
(output-efield-z) ; z-comp of E-field
(output-hfield-x) ; x-comp of H-field
(output-hfield-y) ; y-comp of H-field
(output-hfield-z) ; z-comp of H-field

Is this a bug? It will not work on my version of MEEP 1.2.1.
"meep-fields-solve-cw" is quite useful.  Can this tool be repaired?

On Thu, Jun 6, 2013 at 6:27 PM, Eric Smoll <ericsm...@gmail.com> wrote:

> Does the meep-fields-solve-cw function simply not work?
>
> I have tried inserting it into tutorial examples (using init-fields and
> force-complex-fields, with and without arguments after "fields") with no
> success.  Is there a working example anywhere?
>
> -Eric
>


<ericsmoll2...@u.northwestern.edu>
_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to