-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello Eric,

In Meep 1.2 you have to patch the norm2() function in CG method to let the 
solve-cw work.

Chuanren




Eric Smoll <ericsm...@gmail.com> schrieb:

>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
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.8

iQJGBAEBCAAwBQJRsW8UKRxDaHVhbnJlbiBXdSAoNCC6KSA8d3VjaHVhbnJlbkBn
bWFpbC5jb20+AAoJEPts43KzMQgHgBIP/2/Yo816PHeXP8wzb4HhX2ohLmKiMQ39
ADsyRu0TA9yohh6FNPcP28nVGhxVS7RTG8p28YhsUwTmrcquJTXXoyBrLqS/KI21
GgYXAQP2peUsbLhUkbAhYDldsLXNMJ/YxtXWo9eMyyZ5N5v8WHnnjUO3OcuDLOC6
DPREXfEJyi8VDB1m5hgoF7eZc/gySxHhq3q7M+qH/Cu9qL/xZAXG6s+e1AKzDJKm
mb4taApRDDrGuqypH8QLO/HD+K3KW3y4ue9vXQx74QtqJjRRPBLfJG5GtzRaENd+
02K13yMrzpQHNEmLdzDTiaXYBH0Oh+Wz5CCfIw//z+sZszf2SvgBLS9oSgoXyhpy
CmSAESPt4P6rmxKSaRo/FrrVEhBnM/xYUhb3tW7WLsEAw0uSRCQyco3Yififc84E
lxf0FgxOmLGCIAHbhU7RyvD+OP4395eFighJgtJLo/DTK0zY0gD3Olynnu9TxwWJ
82rf2oK0lTOUW5iSzKZSxIB3IdfEgM9eMxnzpSS4WURX9YSbE4DOvzGkKF5aYzZB
ns/M8pBtMSnbHCXhJFs0wl8P+31chWlxiSHxiEf61uerjvk1NQ/i574JM/FdJzZE
PbD1NBD4OZSXLAROmeDnYy3PqaRZbfarR8c6J8T/fbuMbtmH7ULdMIS3ci+VZtU7
uUZIFb21zEIW
=e0MF
-----END PGP SIGNATURE-----


_______________________________________________
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