Class DepletionWidth

java.lang.Object
  |
  +--DepletionWidth

class DepletionWidth
extends java.lang.Object
implements PhysicsConstants

Class to calculate depletion width, and display a diagram.


Field Summary
protected  double maxX
          The maximum depletion value that will be visible on this diagram
protected  double minV
          The minimum voltage for which this diagram may be displayed
protected  double minX
          The minimum depletion value that will be visible on this diagram
protected  double Na
          The acceptor density
protected  double Nd
          The donor density
protected  double nMultiplier
          The precalculated electron depletion multiplier
protected  double pMultiplier
          The precalculated hole depletion multiplier
protected  double v0
          The value of v0
protected  double wMultiplier
          The precalculated total depletion multiplier
 
Fields inherited from interface PhysicsConstants
e, e_over_k, epsilon, epsilon0, h, h_bar, k, m, q, si_rel_perm
 
Constructor Summary
DepletionWidth(double Na, double Nd, double minV)
          Creates a new DepletionWidth object.
 
Method Summary
 double getNa()
          Returns the acceptor density
 double getNd()
          Returns the donor density
 double getV0()
          Returns the value of v0
 double getW(double v)
          Returns W = xn + xn, the sum of the depletion widths.
 double getXn(double v)
          Returns xn, the electron depletion width
 double getXp(double v)
          Returns xp, the hole depletion width
 void paint(java.awt.Graphics g, double v, int w, int h)
          Draws a depletion diagram.
protected  void recalcMultipliers()
          All the constants are combined into a multiplier, for tidiness and efficiency.
 void setMinV(double minV)
          Used to indicate that the minimum voltage has changed.
 void setN(double Na, double Nd)
          Sets the acceptor and donor densities to the specified values.
 void setNa(double d)
          Sets the acceptor density
 void setNd(double d)
          Sets the donor density
 void setV0(double d)
          Sets the value of v0
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

Na

protected double Na
The acceptor density

Nd

protected double Nd
The donor density

nMultiplier

protected double nMultiplier
The precalculated electron depletion multiplier

pMultiplier

protected double pMultiplier
The precalculated hole depletion multiplier

wMultiplier

protected double wMultiplier
The precalculated total depletion multiplier

minX

protected double minX
The minimum depletion value that will be visible on this diagram

maxX

protected double maxX
The maximum depletion value that will be visible on this diagram

v0

protected double v0
The value of v0

minV

protected double minV
The minimum voltage for which this diagram may be displayed
Constructor Detail

DepletionWidth

public DepletionWidth(double Na,
                      double Nd,
                      double minV)
Creates a new DepletionWidth object. The minimum voltage must be known in order for the possible range of the depletion width to be calculated.
Parameters:
Na - The acceptor density
Nd - The donor density
minV - The minimum voltage
Method Detail

getXn

public double getXn(double v)
Returns xn, the electron depletion width

getXp

public double getXp(double v)
Returns xp, the hole depletion width

getW

public double getW(double v)
Returns W = xn + xn, the sum of the depletion widths.

recalcMultipliers

protected void recalcMultipliers()
All the constants are combined into a multiplier, for tidiness and efficiency. This method will be automatically invoked when any of the constants involved changes, and will recalculate the multipliers.

getNa

public double getNa()
Returns the acceptor density

getNd

public double getNd()
Returns the donor density

setNa

public void setNa(double d)
Sets the acceptor density

setNd

public void setNd(double d)
Sets the donor density

setN

public void setN(double Na,
                 double Nd)
Sets the acceptor and donor densities to the specified values.

paint

public void paint(java.awt.Graphics g,
                  double v,
                  int w,
                  int h)
Draws a depletion diagram.
Parameters:
g - The Graphics surface on which to paint
v - The voltage for which the diagram should be drawn
w - The width (in pixels) availabe for the diagram
h - The height (in pixels) available for the diagram

setMinV

public void setMinV(double minV)
Used to indicate that the minimum voltage has changed.

getV0

public double getV0()
Returns the value of v0

setV0

public void setV0(double d)
Sets the value of v0