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
documentation:script [2014/10/07 23:31] mackedocumentation:script [2014/10/08 17:16] (current) 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 83: Line 92:
 | getdensity(i)     | get density of layer i                 | Function | | getdensity(i)     | get density of layer i                 | Function |
 | setdensity(i, x)     | set density of layer i                 | Function | | setdensity(i, x)     | set density of layer i                 | Function |
-| setf(energy)     | set f1, f2, f1m and f2m to tabulated values at a specific energy | Function |+| setf(energy)     | set f1, f2 to tabulated values at a specific energy | Function |
  
 The index i is the layer index according to the layer input table. ([0] := substrate, [1] := first layer after substrate)  The index i is the layer index according to the layer input table. ([0] := substrate, [1] := first layer after substrate) 
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              ^
Line 105: Line 114:
 | solution_energy[i]        | energy-values after calculation        | Array of Decimals | | solution_energy[i]        | energy-values after calculation        | Array of Decimals |
 | nlayers  ???              | Number of layers                       | Integer           | | nlayers  ???              | Number of layers                       | Integer           |
- 
- 
  
  
documentation/script.1412724692.txt.gz · Last modified: 2014/10/07 23:31 by macke

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki