$DFTallField
跳至導覽
跳至搜尋
Format
$DFTallField ifoutput Intype fi ff N // ifoutput, Intype, and N are integers, the others are floating points.
This function allows the program to calculate the field of certain frequencies by discrete Fourier transform (DFT).
ifoutput: 1 means the program outputs the DFT results at output-step. 0 means it outputs results only after time-step.
Intype: 1 means fi and ff are frequencies; on the other hand, 2 means they are wavelengths.
fi: initial frequency or wavelength.
ff: final frequency or wavelength.
N: the number of frequencies or wavelengths you want to calculate between fi and ff.
Example
$DFTallField 1 2 400e-9 400e-9 1