Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
obj
 
 
src
 
 
 
 
 
 
 
 

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}
    ]
}


About

2D Interference simulator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published