On Nov 8, 2008, at 5:37 AM, Zheng Li wrote:
>> ; define a new class medium
>> (define-class medium material-type
>>                  (define-property epsilon no-default 'number)
>>                  (define-property mu no-default 'number)
>>                  (define-property mu-tensor (matrix3x3 (vector3 1 0  
>> 0) (vector3 0 1 0)
>>                   (vector3 0 0 1)) 'matrix3x3)

You can't simply define a new class -- this is only the interface to  
the underlying solver.  You also would need to modify the underlying  
simulation code to process the mu-tensor data and to use it in the  
simulation.

(Actually, support for anisotropic mu is already in the time-stepping  
code, but you would still need to add code to use the mu-tensor to set  
the underlying anisotropic mu in the C++ class).

Steven

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

Reply via email to