Hi Emmanuel,

well my main intention is to launch the guided mode as a source. I am
investigating a Bragg grating and I keep getting a shift in the Bragg
wavelength, although period of the grating is all set to the chosen Bragg
wavelength 1550 nm. The shift is about 5 nm to 6 nm. I have not been able to
find where the shift is coming from. I have defined my grating as a
sinusoidal structure so that structural offset doesn't effect. If the point
source is the problem, I mean all the radiation from the point source could
interfere with the grating, so I want to launch the guided fundamental mode
as the source, where you wont have any radiating fields anymore. To launch
the guided mode, I need to get the location coordinates, which can then be
fed into a 1D mode solver, which can be incorporated in the c++ code. The
mode solver will deliver the field values of the guided mode for the
corresponding location, in turn this can be set as the source in meep, I
think!

So to achieve this, I think, you need to make the code output epsilon as a
function of location in Y.  That is the reason why h5totxt might not do the
job for me. I hope you are following me,,,,,any thoughts ??

cheers,
Geeth


On Thu, Mar 3, 2011 at 6:56 PM, Emmanuel Lambert <
[email protected]> wrote:

> Geeth,
>
> The h5totxt can output a matrix of the full slice of eps values. For
> example if you take a slice along the y-axis, you'll get a matrix of
> epsilon values for (x,z) positions. Since you know the dimensions of
> your simulation volume, and the resolution of your simulation, you can
> easily derive the (x,z) positions that correspond to these eps values...
>
> wbr
> Emmanuel
>
>
>
> On Thu, 2011-03-03 at 18:51 +1100, Geethaka Devendra wrote:
> > Hi Emmanuel,
> >
> >
> > Thanks for your reply. Do you mean using the eps.h5 file using the
> > h5totxt command to extract a slice? But this only has one data column,
> > which the value of the pixel. I need to output both position and its
> > epsilon value.
> >
> >
> > I am checking in the functions to see which gives me access to the
> > position. Do you know which would do the job?
> >
> >
> > thanks
> > regards
> > Geeth
>
>
>
>
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to