Hi Steven, 

 

In "meep.hpp" file the inverse of the mu tensor is set as 
"invmu[NUM_FIELD_COMPONENTS][5]", where NUM_FIELD_COMPONENTS is equal to 20. 
But the inverse of the mu has 9 elements, so I want to know how the "set_mu" 
function restores the inverse of the mu with  "invmu[NUM_FIELD_COMPONENTS][5]", 
which is located in the line 198 of the "anisotropic_averaging.cpp" file.  
Could you give me some tips? Thanks ahead!

 

regards,

 

Cai

 


在2008-11-11,"Steven G. Johnson" <[EMAIL PROTECTED]> 写道:
>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




[广告] 金秋最关注楼盘-房不胜房
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to