Skip to content

Question about non-uniform permittivities #2838

Answered by stevengj
pwflanigan asked this question in Q&A
Discussion options

You must be logged in to vote

What Meep actually stores is $\varepsilon^{-1}$, not $\varepsilon$, and if I remember correctly, what it plots is $\frac{3}{\text{trace}[\varepsilon^{-1}]}$, i.e. the harmonic mean of the eigenvalues of $\varepsilon$.

Computed here:

meep/src/array_slice.cpp

Lines 385 to 408 in bba8d5b

else if (cS[i] == Dielectric) {
complex<double> tr(0.0, 0.0);
for (int k = 0; k < data->ninveps; ++k) {
tr += (fc->s->get_chi1inv_at_pt(iecs[k], ieds[k], idx, frequency) +
fc->s->get_chi1inv_at_pt(iecs[k], ieds[k], idx + ieos[2 * k], frequency) +
fc->s->get_chi1inv_at_pt(iecs[k], ieds[k], idx + ieos[1 + 2 * k], frequency) +
fc->s->get_chi1inv_at_pt(iecs[k], ieds[k], …

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pwflanigan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants