Re: [Python-meep] [python-eep] Conductivity in python meep

2011-08-02 Thread Nizamov Shawkat
2011/8/2 Yu Zhang : > Dear Shavkat, > > Here is partial code from known_results.py. > > class sigma(Callback): >    def __init__(self, sig): >        Callback.__init__(self) >        self.sig=sig > >    def double_vec(self,r): >        return self.sig > > s= structure(v, eps) > pol1 = sigma(7.63) >

Re: [Python-meep] [python-eep] Conductivity in python meep

2011-08-01 Thread Nizamov Shawkat
2011/7/28 Yu Zhang : > Dear all, > > I'm trying to simulate a 2D waveguide with a metallic obstacle > in the center, and have trouble setting up the conductivity. Here > is my partial code. It is the last line yielding problem. I appreciate > if anyone can help with it. > > class material_sigma(Cal