BSLAMODE

Relevant files

bslamode.h, bslamode.c

Class overview

BSlabMode
BSlabWaveguide bend

Polarization pol

double beta
double alpha
double k0
Complex gamma
Complex neff

complex < double > normalization_factor
double norm

int set_field_coefficients_flag

complex < double > C_s
complex < double > C_f
complex < double > D_f
complex < double > D_c

int Nr
double hr
Interval rinterval
Cvector d_field_ER
Cvector d_field_EY
Cvector d_field_EP
Cvector d_field_HR
Cvector d_field_HY
Cvector d_field_HP
bool set_d_field_flag
BSlabMode()
BSlabMode( BSlabWaveguide BS)
BSlabMode( BSlabWaveguide BS, Polarization bpol)
BSlabMode( BSlabWaveguide BS, Polarization bpol, Complex bgamma)

void set_field_coefficients()

Complex field(Fcomp cp, double r)
Complex field(Fcomp cp, double r, double p)
Cvector fieldvec(Fcomp cp, int num, double r0, double r1)
double field(Fcomp cp, Afo foa, double r)
Complex field_cart(Fcomp cp, double x, double z)

double totpower(Interval xinterval, double z, int xnodes)
double totpower(Interval xinterval)
double totpower(double theta)

void normalize(double nrm)

void profiledata(Fcomp cp, int num, double r0, double r1, char ext0, char ext1)
void writeprofile(Fcomp cp, Afo foa, double fac, Interval disp, char ext0, char ext1, int num)
void write_def(char ext0, char ext1)
void read_def(Polarization p, char ext0, char ext1)
void write(FILE *dat)
void read(FILE *dat)

void mfile(Fcomp cp, Afo foa, double fac, Interval disp, int np, char ext0, char ext1, char pltype)
void mfile(Fcomp cp, double fac, Interval disp, int np, char ext0, char ext1, char pltype)

complex < double > dispersion_eq(complex < double > z)
int secant(complex < double > guess1, complex < double > guess2, double tol, int max_iter, complex < double > *root, int *iter_counter, int *exit_status)

bool set_d_field(Interval rinterval_, int Nr_, int message)

Description of class members

Example