Finite-difference time-domain (FDTD) is a numerical analysis technique used for modeling computational electrodynamics.
This repository contains a C++ project with the main implementation of the method. The following python script is used for testing and visualization:
PlotScript/visualization.py
pip install pandas
pip install matplotlib
cd sln
cmake .
cmake --build . --config RELEASE
cd PlotScript
-
Linux (gcc):
python3 visualization.py --run_cpp --grid_size <grid size> --iters_num <iterations number> <component>
-
Windows (MSVC):
python visualization.py --run_cpp --grid_size <grid size> --iters_num <iterations number> <component>
-
Linux (gcc):
python3 visualization.py --function animation <component for analysis>
-
Windows (MSVC):
python visualization.py --function animation <component for analysis>
The result will be saved to a folder PlotScript/animations
-
Linux (gcc):
python3 visualization.py --function heatmap --iteration <iteration number> <component>
-
Windows (MSVC):
python visualization.py --function heatmap --iteration <iteration number> <component>
The result will be saved to a folder PlotScript/heatmap