Dear Nizamov,

Thank you so much for your reply. I guess you are talking about the two ways of 
interaction with MEEP.
1) low level C++ interface, i.e. the test programs.
2) high-level Scheme script.

My question now is how I can add a few more grammar rules to the Scheme script. 
I am going to define an active region between the cavities and solve the 
additional equations based on this paper:
Active materials embedded in photonic crystals and coupled to electromagnetic 
radiation (Pater Bermel et al)

If I would like to expand the Scheme scripting language, how would I approach 
this? I thought there is a parser to parse the script but apparently the Scheme 
script is interpreted directly and the structure objects are built from there. 
How can Scheme interpret my new class "activeRegion"? Where do I define the 
grammar rule? Do I simply define a class named "activeRegion.cpp" and scheme 
will recognize it and interpret and build the activeRegion object nicely? 

Thank you so much for your reply.
--
Bin Huang (Bryan)
MIT Graduate Student '10
Computation for Design and Optimization
(+65)98947649
________________________________________
From: Nizamov Shawkat [[email protected]]
Sent: Thursday, September 09, 2010 4:54 AM
To: Bin Huang
Cc: [email protected]
Subject: Re: [Meep-discuss] MEEP development

main() is supposed to be the part  of the user written program (meep
core is just a library). So you are supposed to implement main() on
your one, specifying all simulation details step by step. Look through
meep test programs to find usual sequence of simulation setup.

Hope it helps,
Shawkat Nizamov

2010/9/9, bin huang <[email protected]>:
> Bin Huang <b...@...> writes:
>
>>
>> Hi guys,
>>
>> I am wondering if there is any documentation or brief explanation of each
> class file in the program? A
>> overview of the structure is good enough for me to understand the flow of
>> the
> program.
>>
>> Sphere_quad.cpp seems to produce the grid point coordinates. I am
>> wondering
> how the program proceeds from
>> there. Basically if I can get some help on the flow of the program, it
>> would
> be great. Something like what
>> does the program do in the first step, the second step, then does it use
>> some
> external solver to solve the
>> fields etc etc.
>>
>> I guess this question is directed to the original developer of this
>> program.
> Thanks a lot for your help.
>> --
>> Bin Huang (Bryan)
>> MIT Graduate Student '10
>> Computation for Design and Optimization
>> (+65)98947649
>>
>
> It seems like Sphere_quad.cpp is only used to output the file Sphere_quad.h.
>
> I only found one main function in Sphere_quad.cpp, which is why I thought
> the
>
> program starts running from there.
>
> However, when i found out that it is not the case, I try to search some
>
> words in the output of MEEP, anything in the following file.
>
> -----------
> Initializing structure...
> Working in Cylindrical dimensions.
> Computational cell is 8 x 0 x 0 with resolution 10
>      block, center = (1.5,0,0)
>           size (1,1e+20,1e+20)
>           axes (1,0,0), (0,1,0), (0,0,1)
>           dielectric constant epsilon diagonal = (11.56,11.56,11.56)
> time for set_epsilon = 0.00140896 s
>
>
> However, I am not able to locate where MEEP prints out all these results....
>
> Can someone pls enlighten me?
>
> Rgds,
> Bin Huang
>
>
>
> _______________________________________________
> 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