「$DFTallField」:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要 |
|||
| 第10行: | 第10行: | ||
'''''f<sub>i</sub>''''': initial frequency or wavelength.<br> | '''''f<sub>i</sub>''''': initial frequency or wavelength.<br> | ||
'''''f<sub>f</sub>''''': final frequency or wavelength.<br> | '''''f<sub>f</sub>''''': final frequency or wavelength.<br> | ||
'''''N''''': the number of frequencies between ''f<sub>i</sub>'' and ''f<sub>f</sub>''. <br> | '''''N''''': the number of frequencies or wavelengths you want to calculate between ''f<sub>i</sub>'' and ''f<sub>f</sub>''. <br> | ||
</font> | </font> | ||
於 2019年4月30日 (二) 07:42 的最新修訂
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