Hmm, good question.  This is also not clear to me, and it doesn't seem 
to be documented very well.  I tried to backtrack to see how the libctl 
interface does it, but I didn't get very far.




On Tue, 5 Aug 2008, Jefferson Thomas wrote:

> Thank you for your answer matt. I dont understand however how the
> structure::add_polarizability function works.
> I mean, it sets the polarizabiliy everywhere in the calculation volume
> or just in some specifc region ?
> Is the sigma function responsible for it ?
> Lets say I want to have entire space filled with some normal material
> and then just a circle inside
> with a dispersive one. Can I do it with the add_polarizability function ?
>
> Thomas Jefferson
>
> 2008/8/5 matt <[EMAIL PROTECTED]>:
>>
>>
>>
>>
>> You can use this method, defined in polarization.cpp:
>>
>> structure::add_polarizability(double sigma(const vec &), double omega,
>> double gamma, double delta_epsilon, double energy_saturation);
>>
>> There are some examples available in tests/known_results.cpp and
>> tests/symmetry.cpp.
>>
>>
>>
>>
>>
>> On Tue, 5 Aug 2008, Jefferson Thomas wrote:
>>
>>> Thank you all. It works.
>>> Could I also ask how to implement in C++ interface the dispersive
>>> materials
>>> like those described in
>>> http://ab-initio.mit.edu/wiki/index.php/Meep_Tutorial/Material_dispersion
>>> ?
>>>
>>> Thomas Jefferson
>>>
>>> 2008/8/5 Steven G. Johnson <[EMAIL PROTECTED]>:
>>>>
>>>> On Aug 4, 2008, at 4:42 PM, matt wrote:
>>>>>
>>>>> Return a value from your eps function which is large and negative.
>>>>> -1e20 should work.
>>>>
>>>> Or better yet, -HUGE_VAL (which is defined in math.h, and should give -
>>>> Inf).
>>>>
>>>> Steven
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>
>
> _______________________________________________
> 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