Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

OpenPhysics/RadioWaves

Repository files navigation

Radio Waves & Electromagnetic Fields

A SceneryStack port of the PhET Radio Waves & Electromagnetic Fields simulation. Wiggle the electron in the transmitting antenna and watch the radiated electric field propagate outward and drive the electron in the distant receiving antenna.

Features

  • Manual drag or sinusoidal oscillation of the transmitting electron
  • Field display modes: curve with vectors, curve, full field grid, or none
  • Toggle between force-on-electron and electric-field sense
  • Radiated (dynamic) or static field visualization
  • Oscilloscope plots of transmitter and receiver electron motion
  • Play / pause / step, projector mode, English and French UI, and PWA support

Quick Start

npm install
npm run icons # generate PNG icons from public/icons/icon.svg
npm start # dev server → http://localhost:5173

Scripts

Command Description
npm start / npm run dev Start Vite dev server
npm run build Type-check + production build → dist/
npm run preview Preview the production build locally
npm run check TypeScript type check
npm run lint Biome lint check
npm run format Auto-format all files
npm run fix Lint + auto-fix
npm run icons Regenerate PNG icons from public/icons/icon.svg
npm run clean Remove dist/

Tech Stack

Tool Version Purpose
SceneryStack ^3.0.0 Simulation framework
Vite ^8 Build tool + dev server
TypeScript ^6 Type-safe JavaScript
Biome ^2.5 Linting + formatting
vite-plugin-pwa ^1 PWA + service worker

License

GNU Affero General Public License v3.0 — see OpenPhysics org license. The original simulation is Copyright © Rice University, distributed under the GNU AGPL; this is an independent reimplementation.

Contributing

See OpenPhysics contributing guidelines. Report bugs via GitHub Issues; use org issue templates.

About

SceneryStack port of the PhET 'Radio Waves & Electromagnetic Fields' simulation, rebuilt from the legacy PIXI.js + Backbone version. Wiggle an electron and watch EM radiation propagate.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /