|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--Transmission
Uses a matrix method to calculate transmission for a finite number of wells. Despite the name, this class not only calculates transmission, but also reflection.
| Field Summary | |
protected boolean |
abort
Flag used internally to indicate that solve() should abort at the next
available opportunity. |
protected ComplexMatrix[] |
cache
A cache of the solution data |
protected MultipleWells |
eqn
The potential function |
boolean |
wantTransmission
Set this to true if solve() should return transmission coefficients, false
for reflection. |
| Constructor Summary | |
Transmission(MultipleWells eqn)
Create a new transmission calculator |
|
| Method Summary | |
void |
abortSolve()
Aborts a call to solve()
currently in progress; that method will return at the next convenient
opportunity, without supplying any solution data, and discarding any
partial results. |
void |
flush()
Emptys the cache of solutions. |
protected ComplexMatrix |
getInterfaceMatrix(double v1,
double v2,
double energy,
double x)
Constructs a matrix to represent the change in boundary conditions at an interface (discontinuous change in potential). |
protected ComplexMatrix |
getMatrix(double energy)
Computes the matrix to represent the change in boundary conditions for all the wells in the potential function. |
protected static double |
getReflection(ComplexMatrix m)
Extracts the reflection coefficient from a matrix |
double |
getReflection(double energy)
Returns the reflection coefficient for the specified energy |
protected static double |
getTransmission(ComplexMatrix m)
Extracts the transmission coefficient from a matrix |
double |
getTransmission(double energy)
Returns the transmission coefficient for the specified energy |
void |
solve(double x0,
double step,
double[] solns)
Requests that the supplied array be filled with solution data. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected ComplexMatrix[] cache
public boolean wantTransmission
true if solve() should return transmission coefficients, false
for reflection.protected boolean abort
solve() should abort at the next
available opportunity.protected MultipleWells eqn
| Constructor Detail |
public Transmission(MultipleWells eqn)
eqn - The potential function| Method Detail |
protected ComplexMatrix getInterfaceMatrix(double v1,
double v2,
double energy,
double x)
v1 - The potential before the interfacev2 - The potential after the interfaceenergy - The energyx - The x coordinate of the interfaceprotected ComplexMatrix getMatrix(double energy)
energy - The energy to usepublic double getTransmission(double energy)
public double getReflection(double energy)
public void solve(double x0,
double step,
double[] solns)
x0 - The initial x-valuestep - The increment to be applied to x0vals - The array which will hold the solution datapublic void flush()
public void abortSolve()
solve()
currently in progress; that method will return at the next convenient
opportunity, without supplying any solution data, and discarding any
partial results.protected static double getTransmission(ComplexMatrix m)
protected static double getReflection(ComplexMatrix m)
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||