Hi Ben,
The answer you're looking for is in this thread:
http://www.mail-archive.com/[email protected]/msg00891.html
also, for reference, check these threads:
http://www.mail-archive.com/[email protected]/msg00601.html
http://www.mail-archive.com/[email protected]/msg00635.html
http://www.mail-archive.com/[email protected]/msg00902.html
I found these by searching for "material-function sigma" on the mailing
list, though I think you would also find the same hits if you searched
for "Johnson".
Best Regards,
Matt
On Thu, 11 Oct 2007, Benjamin M. Schwartz wrote:
> Dear Meepers,
> I am trying to define a polarizability with spatially varying sigma. My code
> reads, in part:
>
> (make polarizability
> (omega omega_in)
> (gamma omega_in)
> (delta-epsilon (/ 1 omega_in))
> (sigma sigma_func)
> )
>
> sigma_func is a function of a single variable that returns a number.
> When I run this code, I get an error:
> ERROR: wrong type for property sigma type number
>
> The Meep Reference says sigma is a number, consistent with the error. The
> page
> on Dielectric Materials in Meep says sigma is a user-specified function of
> position. *Does anyone have an example .ctl file in which they successfully
> used a spatially varying sigma?*
>
> I attach my .ctl file, for the curious.
>
> - --Ben
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss