Skip to content

blitzarx1/distsim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

distsim

The goal of the project is to demonstrate waves propagation using Huygens–Fresnel principle. It can be used to demonstrate propagetion of light or any surface wave.

features

  • arbitrary disturbance seed;
  • arbitrary obstacles;
  • interference and reflections simulations;
  • simulation cycles detection;

how it works

in the computing heart of the project lies a graph; on every step:

  • leaf nodes try to produce descendents. they can't produce them if the place is taken by obstacle or other node;
  • we search for cycles and remove them (interference simulation);

Screen Shot 2022-05-30 at 16 01 06

roadmap

  • add interface for setting disturbance seed (gocui);
  • add interface for settings arbitrary obstacles (gocui);
  • wrap drawer into gocui;