User Tools

Site Tools


documentation:script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
documentation:script [2014/10/07 23:42] mackedocumentation:script [2014/10/07 23:49] macke
Line 53: Line 53:
 | write(...)       | writes to the debug window (see Lua documentation) | Function           | | write(...)       | writes to the debug window (see Lua documentation) | Function           |
 | print(...)       | writes to the debug window (see Lua documentation) | Function           | | print(...)       | writes to the debug window (see Lua documentation) | Function           |
-| SetDeltaBeta(i, energy)       | set delta and beta of layer i to tabulated values at a specific energy | Function           |+| SetDeltaBeta(i, energy)       | set delta and beta of layer i to tabulated values at a specific energy | Function          | 
 +| FillTensors()               | This applies only for the full matrix mode. see footnote (*1)                          | Function          | 
  
 Note: the index i is the layer index according to the layer input table. ([0] := substrate, [1] := first layer after substrate) Note: the index i is the layer index according to the layer input table. ([0] := substrate, [1] := first layer after substrate)
 +
 +(*1)Before the script is executed the optical 3x3 tensors are filled with default values given by the parameters in the layer list. 
 +That means in compound mode, that the tensor is filled with the contents of delta, beta, deltam and betam at the appropriate tensor entries. 
 +In element mode, the scattering tensor is filled with the contents of f1, f2, f1m and f2m. 
 +Any change to delta, beta, deltam, betam in compound mode or f1, f2, f1m, f2m in element mode in the script is therefore meaningless.
 +But if these parameters are changed, the tensor can be renewed by executing the "FillTensors()" function.
 +
  
 ==Currently defined element specific variables== ==Currently defined element specific variables==
Line 90: Line 99:
 ==Currently defined variables but unsupported== ==Currently defined variables but unsupported==
  
-Following commands are not officially supported. Use this commands in the register "Default".+Following commands are not officially supported. Use these commands in the register "Default".
  
 ^ Variable                  ^ Description                          ^ Type              ^ ^ Variable                  ^ Description                          ^ Type              ^
-| FillTensors               | This applies only for the full matrix mode. see footnote (*1)                          | Function          | 
 | ShowMatrixEigenvalues     | ???                                    | Function          | | ShowMatrixEigenvalues     | ???                                    | Function          |
 | ShowEScanEigenvalues(i)   | ???                                    | Function          | | ShowEScanEigenvalues(i)   | ???                                    | Function          |
Line 108: Line 116:
  
  
-(*1)Before the script is executed the matrices are filled with default values given by the parameters in the layer list.  
-That means in compound mode, that the tensor is filled with the contents of delta, beta, deltam and betam at the appropriate tensor entries.  
-In element mode, the scattering tensor is filled with the contents of f1, f2, f1m and f2m.  
-Any change to delta, beta, deltam, betam in compound mode or f1, f2, f1m, f2m in element mode in the script is therefore meaningless. 
-But if these parameters are changed the tensor can be renewed by executing the "FillTensors()" function. 
  
  
documentation/script.txt · Last modified: 2014/10/08 17:16 by macke

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki