Hi Steven,

From web: 
http://ab-initio.mit.edu/wiki/index.php/Meep_C-plus-plus_Tutorial#Calculating_the_flux_through_a_close_packed_opal_monolayer

We can see that,
/////////////////////////////////////////////////////////////////////
double dfreq = (freq_max-freq_min) / nfreq;
 master_printf("tranmission:, freq, T[i]\n");
 for (int i=0; i<nfreq; ++i)
  master_printf("transmission:, %f, %f\n",freq_min+i*dfreq,T[i]);
/////////////////////////////////////////////////////////////////////

However, I found anthor tutorial using CTL interface.
http://ab-initio.mit.edu/wiki/index.php/Meep_Tutorial#Transmission_spectrum_around_a_waveguide_bend

The frequency you defined as
(add-flux fcen df nfreq
.......................

fcen is 0.15, df is 0.1, and nfreq is 100.
The results you gave are below.
flux1:, 0.1, .....
flux2:, 0.1010101010101,.....
flux3:, 0.1020202020202,.....
.....

I think the dfreq = (freq_max - freq_min) / (nfreq - 1), here.

There is something difference between the c++ interface and CTL interface.

Many thanks!
BR

Jun

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to