[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Waveguide
A general waveguide. Serves a base class for e.g. Slab
or Circ
.
Member functions:
core()
: returns core material
eps(Coord)
: returns permittivity at a certain coordinate.
mu(Coord)
: return permeability at a certain coordinate.
n(Coord)
: return refractive index at a certain coordinate.
N()
: returns number of modes in this waveguide. Is the number set by
set_N()
.
mode(int i)
: returns Mode with index i
. Zero is the fundamental
mode.
calc()
: calculates the modes in this waveguide.
plot()
: interactively plots the modes in this waveguide.
plot_n(r_x))
: lower level routine to plot the refractive index.
r_x
is range objects (e.g arange(x0, x1, dx)
) specifying which
interval to plot and with which resolution. x
is the transverse
direction. An extra named argument filename='outputname.formatextension'
is supported. For pictures, a variety of formats are supported (gif, jpg, png, bmp, eps, ps, tiff, pdf, xbm, dib), where the suffix of the filename will determine the format to be used.
plot_field(component, r_x))
: lower level field plot routine.
component
is a function operating on a Field
object specifying
which field component to plot, e.g. lambda f : f.E2().real
.
r_x
is a range object (e.g arange(x0, x1, dx)
)
specifying which interval to plot and with which resolution. x
is the
transverse direction. Note that the function
also supports an additional named argument filename='outputname.formatextension'
. For pictures, a variety of formats are
supported (gif, jpg, png, bmp, eps, ps, tiff, pdf, xbm, dib), where the
suffix of the filename will determine the format to be used. Other arguments
are overlay_n
(defaults to true) which overlays the index profile
on the field plot, and contour
(defaults to true) which uses contours
to show the index profile rather than gray scale.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by root on August, 27 2008 using texi2html 1.76.