Skip to content
2D Interference simulator
C++ Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
obj
src
.gitignore
README.md
makefile
parameters.json

README.md

wave-sim

A simple wave interference simulator.

You can configure everything from the parameters.json file

Each of the Wave Sources declared in the parameters.json file will have a phase shift of the "delta shift per iteration" times the current step with its next source.

screenshot

Install:

In order to build, install the dependencies and run make (Ex for Ubuntu/Debian)

sudo apt install libsfml-dev build-essential git
git clone https://github.com/belzebalex/wave-sim.git
cd wave-sim
make

Parameters:

{
    "wavelength": 25,                          ## Wavelength, in Pixels, of the waves
    "delta_shift_per_iteration": 0.1,          ## Phase shift per iteration
    "compute_quantum": 2,                      ## Simulation Node Size, the higher the faster, the lower the more beautiful
    "sources": [                               ## Wave Sources coordinates
        {"x": 500, "y": 500},
        {"x": 510, "y": 510},
        {"x": 520, "y": 520},
        {"x": 530, "y": 530},
        {"x": 540, "y": 540},
        {"x": 550, "y": 550},
        {"x": 560, "y": 560}
    ]
}


You can’t perform that action at this time.