Home | Theory| Screenshots| Download| Documentation| Todo list| Donate| Contact| LiveCD| Links


Documentations

emwave2d needs two input files: medium.bmp and refindex.dat. medium.bmp provides the types of the media and refindex.dat provides the refractive index of the media. medium.bmp must be  a 400x400 pixels image and have a format of uncompressed 24 bit bitmap file. medium.bmp must contain only five colours which represents five media. white colour (#ffffff) indicates a host medium, red colour (#ff0000) is medium 1, green colour (#00ff00) is medium 2, blue colour (#0000ff) is medium 3 and black (#000000) is for opaque/impeneratable/metalic objects. The bitmap file can be created and edited by using gimp (in linux) and paint (in Windows).

To run a program

$ ./emwave2d medium.bmp refindex.dat    (in Linux)

$ emwave2d.exe medium.bmp refindex.dat    (in Windows)

An example of screenshots of emwave2d is shown below. It has two parts: display and simulation control. 

emwave2d_screenshot.png

NOTES:
A. the length of the white line indicates the length of the wave.
B. simulation control 
C. a point source

<>