C++ implementations of classic algorithms in computational physics Python implementation of result plot
Simulation of electromagnetic wave propogation in a waveguide using FDTD(Finite-difference time-domain method) approach
- FDTD is a numetical analysis technique used for modeling computational electrodynamics https://en.wikipedia.org/wiki/Finite-difference_time-domain_method
- Use current system as seed for random number generator
- Generate a random number between 0 and 1 with Schrage algorithm
- Odd-th iteration as coordinate x, and even-th iteration as coordinate y. Each (x, y) pair forms a point in 2D plane and is written into a file
- Calculate correlation using formula:
- Verify the multi-dimensional independence following formula: