Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Thermionic electron cloud (3D)

A full 3D N-body simulation of electrons thermally emitted from the wall of a finite hollow cylinder.

Each electron is emitted from the hot wall at a random azimuth with an inward half-Maxwellian velocity, repels every other electron through a softened 3D Coulomb force, feels the charged wall (adjustable bias), dies at a random time drawn from an exponential distribution, and is absorbed on contact with the wall or lost out the open ends. A steady state emerges from the balance of emission, decay and losses.

Running locally

No build step and no dependencies. Serve the folder over HTTP (ES modules need a real origin):

npm run serve      # -> http://localhost:8002

or any static server, e.g. python3 -m http.server.

What you can do

  • Wall bias Qw — negative confines electrons, positive attracts them to the wall; the field is the exact axisymmetric field of a charged cylindrical shell (complete elliptic integrals + Gauss-Legendre quadrature).
  • Emission rate, thermal speed, decay rate λ, e⁻e⁻ repulsion, length L and time speed sliders.
  • Wall force arrows (meridional slice), density on bottom cap (the electron (x, y) distribution projected onto the flat end surface), and a top-down density inset; the density averaging time constant τ is adjustable.
  • Drag to orbit the camera, scroll to zoom, auto-rotate toggle.

Layout

  • index.html — page and controls
  • src/main.js — 3D canvas renderer, camera and UI wiring
  • src/electroncloud.js — 3D N-body particles: emission, forces, decay, absorption
  • src/wallfield.js — charged-shell field (elliptic integrals) and grid sampler
  • src/elliptic.js — complete elliptic integrals K(m), E(m)

Physics units

Electron charge q_e = -1, mass m_e = 1, Coulomb constant k = 1. The wall acceleration is a_w = Qw * geom, with geom the geometry field of a unit-strength shell.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages