CALL: AVALANCHE


option

  A string that can contain one or more of the following options:

  -----------------------------------------------------------------
  Option            Meaning                          Default
  -----------------------------------------------------------------
  ATTACHMENT        Include attachment               If present
  MONTE-CARLO       Monte Carlo drifting             Yes
  NOATTACHMENT      Don't include attachment         If not present
  NOPLOT-ELECTRON   Don't plot electron drift lines  Yes
  NOPLOT-ION        Don't plot ion drift lines       Yes
  NOTOWNSEND        Don't include multiplication     If not present
  PLOT-ELECTRON     Plot electron drift lines        No
  PLOT-ION          Plot ion drift lines             No
  RUNGE-KUTTA       Runge Kutta Fehlberg integration No
  TOWNSEND          Include multiplication           If present
  -----------------------------------------------------------------

  The TOWNSEND and ATTACHMENT options can only be selected if the
  corresponding data has been entered in the gas section.

  A plot frame (PLOT_DRIFT_AREA) has to be opened before the call
  to AVALANCHE if you wish to use PLOT-ELECTRON or PLOT-ION.

n_electron

  The number of electrons produced in the avalanche minus the
  number of electrons lost via attachment.

  This is an optional output parameter and should therefore be
  modifiable. The value assigned to this parameter on entry is
  not used.

n_ion

  The number of ions produced in the avalanche.

  This is an optional output parameter and should therefore be
  modifiable. The value assigned to this parameter on entry is
  not used.

formula

  A formula that states the quantity that should be entered in the
  histogram. Each formula can make use of the quantities from one
  (and only one !) of the following sets:

  * Information about the location where electron-ion pairs are
    produced: X_CREATED (or R_CREATED), Y_CREATED (or PHI_CREATED),
    Z_CREATED, T_CREATED.
  * Information about the location where electrons are lost through
    attachment: X_LOST (or R_LOST), Y_LOST (or PHI_LOST), Z_LOST,
    T_LOST.
  * Information about the point where electrons end up if they are
    not lost through attachment: X_E (or R_E), Y_E (or PHI_E), Z_E,
    T_E.
  * Information about the point where ions end up X_ION (or R_ION),
    Y_ION (or PHI_ION), Z_ION, T_ION.

  If you wish to have an histogram filled only under certain
  conditions, then use format: `value,condition` where "value"
  is the quantity to be entered in the histogram and "condition"
  the condition under which the quantity should be entered.
  "value" Should evaluate to a Number while "condition" should
  be a Logical.

  This argument should be provided in the form of a string.
  The string is not modified in the call.

histogram

  A reference to the histogram that receives the statistics
  on the avalanche process.

  If this argument is of a type other than Histogram, then
  any storage associated with it is liberated and a new
  histogram is created with 100 bins and an automatically
  adjusted range.

  You may also give an existing histogram as argument, in
  which case new entries will be added to it.

  This is an optional output parameter and should therefore be
  modifiable.

Keyword index. Formatted on 10/11/98.