# a-physics (adapter system)

Physics capability pack: 65 closed-form calculators (mechanics, thermodynamics, electromagnetism, fluid dynamics, optics, waves, quantum, nuclear, relativity) PLUS a relationship graph + a→b...


Physics **capability pack**. Ported from `leumas-middleware/lib/a.physics` — the pure core: 65
closed-form calculators across mechanics, thermodynamics, electromagnetism, fluid dynamics, optics,
waves, quantum, nuclear, and relativity. Stripped: express `server.js`/`router.js`, `public/`
frontend, CSV data fixtures.

Each source adapter's default export (with its `compute()` and `symbols`/`inputs`/`outputs`
metadata) is registered; the system exposes them as `adapters[<id>] = (args) => compute(args)`.

## Tools (`adapters`)

Keyed by physics-formula id. Examples:

| tool | args | result |
|------|------|--------|
| `newton-second-law` | `{ m, a }` | `{ F }` |
| `coulomb-law` | `{ q1, q2, r, k? }` | `{ F }` |
| `kinetic-energy` | `{ m, v }` | `{ KE }` |
| `ideal-gas-law` | `{ V, n, T, R? }` | `{ P }` |
| `snells-law` | `{ n1, n2, ... }` | `{ ... }` |

Full list (65): angular-momentum, bernoullis-principle, brewster-angle, buoyant-force, capacitance,
carnot-efficiency, center-of-mass-1d, centripetal-force, coefficient-performance-fridge/heatpump,
coefficient-restitution, continuity-equation, coulomb-law, de-broglie-wavelength, diffraction-grating,
doppler-effect, drag-power, efficiency-heat-engine, entropy-change-reversible, half-life, heat-capacity,
hydrostatic-pressure, ideal-gas-internal-energy, ideal-gas-law, ideal-transformer,
inverse-square-intensity, kinematics-* (5), kinetic-energy, kinetic-theory-pressure, latent-heat,
mach-number, mass-energy-equivalence, newton-second-law, orifice-flow-toricelli,
parallel/series-capacitance, parallel/series-inductance, pascal-principle, poiseuille-flow,
power-mechanics, pressure, radioactive-decay, rc-charging-voltage, rc-time-constant, refractive-index,
reynolds-number, rl-current-growth, sound-intensity-level, stefan-boltzmann, stokes-drag-sphere,
terminal-velocity-stokes, thermal-conduction, torque, universal-gravitation, wiens-displacement-law,
work, work-energy-theorem, work-from-force. Each tool's exact `inputs`/`outputs`/`symbols` are on its
`registry` entry (exported alongside `adapters`).

`compute()` throws on invalid input types/values — the same validation as the source adapters.


---
Source: shared/engines/adapters/domain/a-physics/README.md
Canonical: https://docs.leumas.tech/p/adapters/domain/a-physics
