KTable

Name

KTable -- Translation table for reaction coefficient indexes

Type and Attributes

Integer array with dimension NKReac

Description

KTable is a translation table to map the internal PLASMAKIN reaction indices to the corresponding reaction indices in the input file.

When the input file is read, the reactions are classified and sorted to speed up further operations. However, interpretation of several results depends on their relationship to the input file reaction order. The array KTable holds this information. A typical use of the array KTable is in write instructions as in the example below.

Example

Example E-1. KTable: Using KTable to control the order of variable printing.

  REAL(8), ALLOCATABLE :: KRate(:)
  ...
  ALLOCATE( KRate(NKReac) )
  ...
  CALL pkGetReacCoef( 'value', KRate(:), 1 )                              (1)
  print *, KRate(:)                                                       (2)
  print *, KRate( KTable(:) )                                             (3)
	
(1)
The array KRate holds the values of the reaction rate coefficients sorted by PLASMAKIN.
(2)
This instruction prints the reaction coefficient values in the order used in PLASMAKIN.
(3)
This instruction prints the reaction coefficient values in the same order as that of the corresponding reactions listed in the input file.