zer011b / fdtd3d

fdtd3d is an open source 1D, 2D, 3D FDTD electromagnetics solver with MPI, OpenMP and CUDA support for x64, ARM, ARM64, RISC-V, PowerPC architectures
GNU General Public License v2.0
115 stars 33 forks source link

Propagation spectrum #190

Open leSemaleon opened 5 months ago

leSemaleon commented 5 months ago

Hello! Does project have instruments for calculation of propagation spectrum? I mean, does it can calculate pointing vector in some space? and if I run simulation two times, then can get spectrum after division.

Привет! Имеет ли проект инструментарий для расчета спектра пропускания? Я имею ввиду, есть ли функция для расчета вектора пойнтинга в какой-нибудь области, чтобы я смог провести две симуляции и поделив одно значение на другое получить спектр?

zer011b commented 5 months ago

Propagation spectrum currently can't be calculated automatically by fdtd3d. Currently only Near-To-Far Field (NTFF) transformation can be used to calculate far fields, see --use-ntff, --ntff-filename, --ntff-size and other options in help. It uses Poynting vector internally to do transformations. Please note though that this mode is not tested much, it was implemented just for few experiments. Combining results of few simulations is also not supported. But for all cases you can do post-processing of EM fields manually, because all EM fields can be output as text files.