GratingLayer1D: Most important functions


Most important functions

 GratingLayer1D::GratingLayer (int, int)
 constructor initialises essential local variables
 GratingLayer1D::~GratingLayer ()
 destructor deletes all allocated memory
void GratingLayer1D::setParameters (double, double, complex< double >, double, double, Vector< double >, Vector< complex< double > >, string)
 set various parameters needed for the calculations
void GratingLayer1D::solve (string)
 solve layer with S- or T-Matrix approach
void GratingLayer1D::writeIndex (int, string)
 write the refractive index to a file (calculated from the Fourier coefficients)

Detailed Description


Function Documentation

GratingLayer1D::GratingLayer ( int  truncate,
int  segments 
) [inherited]

void GratingLayer1D::setParameters ( double  wavelength,
double  angle,
complex< double >  ind0,
double  period,
double  height,
Vector< double >  points,
Vector< complex< double > >  indices,
string  pol 
) [inherited]

set various parameters needed for the calculations

Set the necessary parameters in bulk (no other parameters need to be set before solving the layer)

Parameters:
wavelength the incident wavelength [LU]
angle the angle of incidence [degree]
ind0 the refractive index of region 1 (incident side)
period the size of the grating [LU]
height the thickness of the layer [LU]
points the transition points [frac]
indices the refractive indices of the pixels
pol the polarisation mode (TE or TM)

Definition at line 127 of file GratingLayer1D.cpp.

References GratingLayer1D::setAngle(), GratingLayer1D::setLambda(), GratingLayer1D::setN0(), GratingLayer1D::setPeriod(), GratingLayer1D::setPolMode(), GratingLayer1D::setRefInd(), GratingLayer1D::setThickness(), and GratingLayer1D::setTransPt().

void GratingLayer1D::solve ( string  method = "T"  )  [inherited]

solve layer with S- or T-Matrix approach

Calls the necessary functions to solve the layer after setting all parameters:

additional, if the system is solved with the S-Matrix approach:

Parameters:
method solving method ("S" or "T")

Definition at line 148 of file GratingLayer1D.cpp.

References GratingLayer1D::calcSMatrix(), GratingLayer1D::CalculatePermitivity(), GratingLayer1D::createEigMat(), and GratingLayer1D::solveEigMat().

void GratingLayer1D::writeIndex ( int  orders = -1,
string  filename = "index.dat" 
) [inherited]

write the refractive index to a file (calculated from the Fourier coefficients)

Definition at line 300 of file GratingLayer1D.cpp.

References GratingLayer1D::getPermCoeff(), GratingLayer1D::I, and GratingLayer1D::nOrds.

GratingLayer1D::~GratingLayer (  )  [inherited]

destructor deletes all allocated memory

Definition at line 47 of file GratingLayer1D.cpp.


Generated on Thu May 7 16:28:03 2009 for FMM by  doxygen 1.5.5