/QBoundStates [ module ]

[ Top ] [ module ]

NAME

QBoundStates

AUTHOR

W. Hergert

PACKAGE

QPack.m

USAGE

QBoundStates[tmat_,vl_,vr_,en_] sets up a function of energy. The roots of the function define the bound states of the problem

INPUT

OUTPUT

a function of energy to find the roots

ERROR MESSAGES

OPTIONS

QPotential : "constant" - piecewise constant potential

LITERATURE

SOURCE

33 QBoundStates[tmat_,vl_,vr_,en_,OptionsPattern[{QPotential->"constant"}]] := Module[{ml,mr,kl,kr,ma,lx,lpot} ,
34 lx=Length[x];lpot=Length[pot];
35 If[OptionValue[QPotential]=="constant",
36 kl:=Sqrt[2*(vl-en)] ; kr=Sqrt[2*(vr-en)];
37 ml:={{1,1}, {kl, -kl}} ; mr:={{1,1} , {kr,-kr}};
38 ma=Inverse[ml] . tmat . mr;
39 glg=ma[[2,2]];Return[glg],
40 Print["--> QBoundStates - Error : Option nicht implementiert"]]
41 ]