Skip to content

Finite-difference time-domain (FDTD) method for modeling computational electrodynamics

License

Notifications You must be signed in to change notification settings

Amazingkivas/FDTD_Method

Repository files navigation

Build|Test|Run Platforms

FDTD Method

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

0. Download all submodules

git submodule update --init --recursive

1. Build Kokkos

cd 3rdparty/kokkos
mkdir build
cd build
cmake .. -DKokkos_ENABLE_OPENMP=ON
cd ../../..

2. Build the project

cmake .
cmake --build . --config RELEASE

Run and visualize

1. Setting up a virtual environment

cd PlotScript
python3 -m venv venv
source venv/bin/activate

2. Install packages

pip install pandas
pip install matplotlib

3. Get information about running the application and visualising the results

python3 visualization.py --help