Torsional Waves (Spring lattice)

by Chantal Roth

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width,initial-scale=1" />
  <title>Elastic Waves - Linear, GR, and Torsion (Nearly Incompressible)</title>

  <!-- Optional (only used for formulas in the Info modal) -->
  <script>
    window.MathJax = {
      tex: { inlineMath: [['\\(','\\)'], ['$', '$']] },
      options: { skipHtmlTags: ['script','noscript','style','textarea','pre','code'] }
    };
  </script>
  <script id="MathJax-script" async
          src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>

  <!-- Import map (Three.js modules) -->
  <script type="importmap">
    {
      "imports": {
        "three": "https://unpkg.com/three@0.160.0/build/three.module.js",
        "three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/"
      }
    }
  </script>

  <style>
    html, body { margin: 0; height: 100%; overflow: hidden; background: #050510; }
    #container { width: 100vw; height: 100vh; }

    #titleLabel{
      position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
      color: rgba(215,233,255,0.92);
      font: 700 13px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      text-shadow: 0 0 18px rgba(120,190,255,0.25);
      pointer-events: none;
      z-index: 5;
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid rgba(120,190,255,0.16);
      background: rgba(12, 14, 20, 0.32);
      backdrop-filter: blur(6px);
    }

    #info-btn{
      position:absolute; top:14px; left:14px; z-index: 10;
      background: rgba(0, 255, 255, 0.10);
      border: 1px solid rgba(120,190,255,0.45);
      color: rgba(120,190,255,0.95);
      padding: 8px 14px;
      border-radius: 18px;
      cursor: pointer;
      font-weight: 800;
      font-size: 13px;
      backdrop-filter: blur(6px);
     ...