Class KronigPenney
java.lang.Object
|
+--KronigPenney
- Direct Known Subclasses:
- FreeElectron
- class KronigPenney
- extends java.lang.Object
- implements Solvable
Implementation of the Kronig-Penney model.
|
Field Summary |
protected double |
p
The potential strength |
|
Constructor Summary |
KronigPenney(double p)
Creates a new model with the specified potential strength. |
|
Method Summary |
protected double |
deriv(double x,
double cos_ka)
Evaluates the derivative of the difference between the two sides of
the KP equation. |
protected double |
eval(double x,
double cos_ka)
Evaluates the difference between the two sides of the KP equation. |
protected double |
solve(double ka)
Uses the Newton-Raphson method to solve the KP equation, with the
specified wavenumber. |
void |
solve(double x0,
double step,
double[] vals)
Requests that the supplied array be filled with solution data. |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
p
protected double p
- The potential strength
KronigPenney
public KronigPenney(double p)
- Creates a new model with the specified potential strength.
solve
public void solve(double x0,
double step,
double[] vals)
- Description copied from interface: Solvable
- Requests that the supplied array be filled with solution data. The
nth element of the array should be the solution at x =
x0 + step*n.
- Specified by:
- solve in interface Solvable
- Tags copied from interface: Solvable
- Parameters:
x0 - The initial x-valuestep - The increment to be applied to x0vals - The array which will hold the solution data
solve
protected double solve(double ka)
- Uses the Newton-Raphson method to solve the KP equation, with the
specified wavenumber.
eval
protected double eval(double x,
double cos_ka)
- Evaluates the difference between the two sides of the KP equation.
The energy which fits the KP equation is the energy for which this
equation is zero.
- Parameters:
x - The energy at which to evaluatecos_ka - The cosine of the wavenumber
deriv
protected double deriv(double x,
double cos_ka)
- Evaluates the derivative of the difference between the two sides of
the KP equation.
- Parameters:
x - The energy at which to evaluatecos_ka - The cosine of the wavenumber