2023-10-10 23:11:56 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<!-- <link rel="stylesheet" type="text/css" href="style.css"> -->
|
|
|
|
<script src="p5.min.js"></script>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
</head>
|
|
|
|
<body>
|
2023-10-11 15:05:35 -04:00
|
|
|
<script src="scattering.js"></script>
|
|
|
|
<p>Plane wave scattering simulation by Peter McGoron</p>
|
|
|
|
<p>This page and the associated code is GNU GPL v3.0 or later. This page is
|
2023-10-10 23:11:56 -04:00
|
|
|
distributed <b>WITHOUT ANY WARRANTY; without even the implied warranty
|
|
|
|
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</b> See the GNU
|
2023-10-11 15:05:35 -04:00
|
|
|
GPL for more details. <a href="https://software.mcgoron.com/peter/scattering.js">Code</a></p>
|
|
|
|
<p>Things to try:
|
|
|
|
<ul>
|
|
|
|
<li>Send a wave at an angle to the lattice.</li>
|
|
|
|
<li>Send a bunch of waves to the lattice at once.</li>
|
|
|
|
<li>Send a bunch of waves to the lattice, but slowly. </li>
|
|
|
|
</ul>
|
|
|
|
For each case, what do the wavefronts look like?
|
|
|
|
</p>
|
2023-10-11 15:11:57 -04:00
|
|
|
<p>CTRL+Click to add an atom. Hold left click to add a plane wave, and release left
|
|
|
|
click to launch the plane wave. Press ENTER to pause.</p>
|
2023-10-11 15:05:35 -04:00
|
|
|
<button id="clear_waves">Clear waves</button>
|
|
|
|
<button id="clear_atoms">Clear atoms</button>
|
2023-10-10 23:11:56 -04:00
|
|
|
</body>
|
|
|
|
</html>
|