Hi, Thanks for your reply again.
You got me right. 1) Now I am having a hard time trying to figure out how the Scheme objects are linked to C++ classes. Which files do I need to add the definition for ActiveRegion class? 2) After that, I need to figure out where to add the additional solver into the existing C++ code. I am going to define an active region between the cavities and solve the additional equations in this paper together with the Maxwell Equations: Active materials embedded in photonic crystals and coupled to electromagnetic radiation (Pater Bermel et al). I would be really grateful if the original meep developers can enlighten me a little bit on this. -- Bin Huang (Bryan) MIT Graduate Student '10 Computation for Design and Optimization (+65)98947649 ________________________________________ From: Nizamov Shawkat [[email protected]] Sent: Monday, September 13, 2010 2:41 AM To: Bin Huang Cc: [email protected] Subject: Re: [Meep-discuss] MEEP development Hi! If I correctly understand you, you want to extend the simulation and perform custom specific fields calculations, made on specified regions, along the FDTD calculations. In this case you have several choices, all of them are undocumented, but may be figured out looking through sources. If you deliberately want to use Scheme for this, I think you have to figure the correct sequence of timestepping code, implement it in Scheme and perform your code when appropriate. You may also locate the timestepping code in the C++ library and insert the callback for external procedure in Scheme, but it is quite challenging. All C++ implementation would be much easier. Maybe meep developers can suggest better approaches ? Hope it helps, Shavkat Nizamov _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

