documentation:script
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:script [2014/10/07 23:43] – macke | documentation:script [2014/10/08 17:16] (current) – macke | ||
---|---|---|---|
Line 53: | Line 53: | ||
| write(...) | | write(...) | ||
| print(...) | | print(...) | ||
- | | SetDeltaBeta(i, | + | | SetDeltaBeta(i, |
+ | | FillTensors() | ||
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 " | ||
+ | |||
==Currently defined element specific variables== | ==Currently defined element specific variables== | ||
Line 83: | Line 92: | ||
| getdensity(i) | | getdensity(i) | ||
| setdensity(i, | | setdensity(i, | ||
- | | setf(energy) | + | | setf(energy) |
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 " | + | Following commands are not officially supported. Use these commands in the register " |
^ Variable | ^ Variable | ||
- | | FillTensors | ||
| ShowMatrixEigenvalues | | ShowMatrixEigenvalues | ||
| ShowEScanEigenvalues(i) | | ShowEScanEigenvalues(i) | ||
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 " | ||
documentation/script.1412725415.txt.gz · Last modified: 2014/10/07 23:43 by macke