EM Fields in Jello wave
by Chantal Roth
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Elastic Universe – OAM Wave Simulator</title>
<style>
body {
margin: 0;
overflow: hidden;
background-color: #050505;
font-family: sans-serif;
}
#container {
width: 100%;
height: 100vh;
}
.label {
position: absolute;
top: 20px;
width: 100%;
text-align: center;
color: #888;
pointer-events: none;
font-size: 14px;
letter-spacing: 1px;
}
</style>
</head>
<body>
<div id="container"></div>
<div class="label">WAVE PROPAGATION SIMULATOR (OAM FIXED)</div>
<script src="https://cdn.jsdelivr.net/npm/three@0.147.0/build/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/controls/OrbitControls.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.7.7/dat.gui.min.js"></script>
<script>
(() => {
let container, camera, scene, renderer, controls;
let jelloMesh, gridMesh;
let jelloOriginalPos, gridOriginalPos;
const clock = new THREE.Clock();
// -----------------------------
// Simulation Parameters
// -----------------------------
const params = {
color: 0x00ddee,
gridColor: 0x000000,
opacity: 0.8,
shininess: 80,
showGrid: true,
waveType: 'Transverse',
pulseMode: false,
speed: 1.0, // temporal frequency ω
frequency: 1.0, // spatial frequency k
amplitude: 0.5,
oamCharge: 1,
pulseWidth: 2.0,
};
// -----------------------------
// ESU Field Visualization Parameters
// -----------------------------
const field = {
enabled: true,
showA: false,
showB: false,
showE: true,
arrowOpacity: 0.70,
arrowsRenderOrder: 999,
includeLieBracket: false,
eMode: 'Full: E = -grad(phi) - dA/dt',
forceNoBInLongitudinal: true,
minFieldForDisplay: 1e-4,
sampleCount: 35,
// ---...