EM wave through accelerated charge
by Chantal Roth
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>EM Wave Simulation</title>
<style>
html, body {
margin: 0;
height: 100%;
overflow: hidden;
background: #000;
}
#container {
width: 100%;
height: 100%;
}
#formula {
position: absolute;
top: 10px;
left: 10px;
max-width: 360px;
background: rgba(0,0,0,0.6);
color: #fff;
padding: 8px 12px;
border-radius: 4px;
font-size: 16px;
line-height: 1.2;
}
#legend {
margin-top: 6px;
font-size: 13px;
color: #ddd;
}
#legend .e { color:#55ccff; }
#legend .b { color:#66ff88; }
</style>
<!-- MathJax -->
<script id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<!-- Three.js + OrbitControls -->
<script src="https://cdn.jsdelivr.net/npm/three@0.124.0/build/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.124.0/examples/js/controls/OrbitControls.js"></script>
<!-- dat.GUI + mathjs -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.7.7/dat.gui.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/10.0.0/math.min.js"></script>
</head>
<body>
<div id="formula">
$$\displaystyle
\mathbf E_{\rm rad}(\mathbf r,t)
= -\frac{q}{4\pi\varepsilon_0\,c^2}\;
\frac{1}{\|\mathbf r\|}\;
\bigl[\mathbf a_{\perp}\bigl(t - \tfrac{\|\mathbf r\|}{c}\bigr)\bigr],
\qquad
\mathbf a_{\perp} = \mathbf a - (\mathbf a\cdot\hat{\mathbf r})\,\hat{\mathbf r}
$$
<hr/>
$$\displaystyle
\textbf{ESU dictionary:}\quad
\mathbf A = \dot{\mathbf u},\qquad
\mathbf B = \nabla\times\mathbf A,\qquad
\mathbf E = -\nabla\phi - \dot{\mathbf A}
$$
$$\displaystyle
\text{(Here we set }\phi=0\Rightarrow \mathbf...