Hi,

I am a very beginner to FDTD simulations. I already gave a function to
calculate the refractive index in a cell. Now I have to make some
fluctuations at some point say (-49.9, -49.9,0). I have provided my code
below, but it doesn't seem to be giving me the required change.  Am I doing
something wrong?












*def indexret(p):      #####function to define ref.index      if
p==mp.Vector3(-49.9,-49.9,0):
n=1.78-0.43*(np.exp(-((p.y)+50)/71))+0.5        #change at
(-49.9,-49.9,0)     else:
n=1.78-0.43*(np.exp(-((p.y)+50)/71))       return mp.Medium(index=n)cell =
mp.Vector3(140,100,0)resolution=10geometry =
[mp.Block(center=mp.Vector3(),
 size=mp.Vector3(140,100,0),                     material=indexret)] *

Please help.
Thank you
*.                *

-- 
Krishna Nivedita G,
Int.BS-MS,
School of Physics,
IISER Thiruvananthapuram.
_______________________________________________
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