HI, Being new to meep I am in a little trouble in understanding the amp_func given in the example-> https://github.com/NanoComp/meep/blob/master/python/examples/pw-source.py
The amp_func, in the example is a pw_amp(k,x0) function where the pw_amp is defined as *def pw_amp(k, x0):* * def _pw_amp(x):* * return cmath.exp(1j * k.dot(x + x0))* * return _pw_amp* The definition of source is as follows *sources = [* *mp.Source(* *mp.ContinuousSource(fcen, fwidth=df),* *component=mp.Ez,* *center=mp.Vector3(-0.5 * s, 0),* *size=mp.Vector3(0, s),* *amp_func=pw_amp(k, mp.Vector3(x=-0.5 * s))* * ),* *mp.Source(* *mp.ContinuousSource(fcen, fwidth=df),* *component=mp.Ez,* *center=mp.Vector3(0, -0.5 * s),* *size=mp.Vector3(s, 0),* *amp_func=pw_amp(k, mp.Vector3(y=-0.5 * s))* * )* *]* I can't understand what is the reference for 'x' in the _pw_amp(x) and how its being updated? With regard Dr. Susovan Mandal Assistant Professor ECE Dept. Heritage Institute of Technology, Kolkata -- *Disclaimer:* This e-mail contains confidential information belonging to Heritage Institute of Technology & is intended solely for the Addressee. The unauthorized disclosure, use dissemination or copying (either whole or partial of this e-mail, or any information it contains), is prohibited. E-mail is susceptible to alteration and their integrity cannot be guaranteed. Heritage Institute of Technology shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system & notify the sender of the wrong delivery and the mail deletion.
_______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss