{
  "schemaVersion": 1,
  "author": "Daniel Hashemi",
  "lab": "charge-fields-light",
  "date": "2026-11-19",
  "model": [
    "lab/physics/coulomb.js",
    "lab/physics/fields.js",
    "lab/physics/retarded.js",
    "lab/physics/charging.js",
    "lab/physics/conductor.js",
    "lab/physics/dielectric.js",
    "lab/physics/semiconductor.js",
    "lab/physics/single.js",
    "lab/physics/line.js",
    "lab/physics/magnetism.js",
    "lab/physics/dipole.js"
  ],
  "status": "All twelve experiments validated against the checks below (40 model tests).",
  "constants": {
    "epsilon0_F_per_m": 8.8541878188e-12,
    "source": "CODATA 2022 recommended values",
    "k_N_m2_per_C2": 8987551786.2,
    "c_m_per_s": 299792458
  },
  "checks": [
    {
      "id": "coulomb-default",
      "claim": "Two 10 nC point charges 10 cm apart: 89.9 µN; 22.5 µN at 20 cm; 9.99 µN at 30 cm.",
      "method": "direct evaluation",
      "result": "pass"
    },
    {
      "id": "inverse-square",
      "claim": "Doubling the distance divides the force by 4, tripling by 9, to rounding error (relative 1e-14).",
      "method": "ratio test",
      "result": "pass"
    },
    {
      "id": "singularity",
      "claim": "r = 0 and r < 0 return no value. The page keeps r between 5 and 32 cm.",
      "method": "boundary test",
      "result": "pass"
    },
    {
      "id": "gauss",
      "claim": "Field times area of a centred sphere equals Q/epsilon0 from 1 cm to 1 km (relative 1e-13).",
      "method": "direct evaluation",
      "result": "pass"
    },
    {
      "id": "power-law",
      "claim": "F(2 r0)/F0 = 0.2679433656340733 (p = 1.9), 0.25 (p = 2), 0.23325824788420185 (p = 2.1); matches the project manifest to 1e-15.",
      "method": "comparison with independently recorded values",
      "result": "pass"
    },
    {
      "id": "shell-theorem",
      "claim": "p = 2: field inside a uniform shell is zero to 1e-12 of the reference at 8 positions; outside it equals the point-charge field.",
      "method": "closed form",
      "result": "pass"
    },
    {
      "id": "shell-quadrature",
      "claim": "Closed-form shell field agrees with Simpson quadrature (20000 intervals) for six exponents and seven positions (1e-8).",
      "method": "independent numerical integration",
      "result": "pass"
    },
    {
      "id": "shell-sign",
      "claim": "p > 2 pushes a positive probe toward the centre, p < 2 toward the nearer wall; the field is linear in (p - 2) for small shifts.",
      "method": "sign and linearity test",
      "result": "pass"
    },
    {
      "id": "spheres-far",
      "claim": "Two conducting spheres far apart reproduce Coulomb's law (relative 1e-5 at 100 radii).",
      "method": "limit",
      "result": "pass"
    },
    {
      "id": "spheres-polarization",
      "claim": "Equal spheres: first correction is -4 a^3/d^3 for like charges and +4 a^3/d^3 for opposite charges (within 15 % of the correction at d = 20 to 50 radii).",
      "method": "comparison with the induced-dipole expansion",
      "result": "pass"
    },
    {
      "id": "spheres-neutral",
      "claim": "A neutral conducting sphere is attracted to a charged one.",
      "method": "sign test",
      "result": "pass"
    },
    {
      "id": "fit",
      "claim": "Noise-free synthetic readings return the exponent to 1e-12; over 2000 seeds the scatter of the fitted exponent matches the stated standard error within 8 %.",
      "method": "Monte Carlo",
      "result": "pass"
    },
    {
      "id": "field-single",
      "claim": "One 10 nC source: field 8.99 kV/m at 10 cm, radial; force on a 1 nC probe equals Coulomb's law; a negative probe is pulled inward.",
      "method": "direct evaluation",
      "result": "pass"
    },
    {
      "id": "probe-passive",
      "claim": "Field and potential do not depend on the probe; force scales with the probe charge; sources are not modified.",
      "method": "invariance test",
      "result": "pass"
    },
    {
      "id": "superposition",
      "claim": "Total field equals the vector sum of single-source fields and scales linearly with the charges.",
      "method": "comparison with single-source evaluations",
      "result": "pass"
    },
    {
      "id": "midpoint-dipole",
      "claim": "Zero field midway between equal charges (potential not zero); dipole midpoint 17.98 kV/m toward the negative charge; 6.36 kV/m on the bisector 10 cm out; bisector at zero potential.",
      "method": "analytic values",
      "result": "pass"
    },
    {
      "id": "dipole-far",
      "claim": "Far from a dipole the field falls as 1/r^3 and matches 2kp/r^3 on the axis and kp/r^3 on the bisector (0.2 %).",
      "method": "limit",
      "result": "pass"
    },
    {
      "id": "gradient",
      "claim": "E = -grad V at four points (central differences, 1e-5).",
      "method": "independent numerical derivative",
      "result": "pass"
    },
    {
      "id": "field-lines",
      "claim": "A traced line from the positive charge of a dipole ends on the negative charge and is tangent to the field along its length; a single charge gives straight lines; points inside the exclusion radius return no value.",
      "method": "geometric test",
      "result": "pass"
    },
    {
      "id": "equipotentials",
      "claim": "Contours of one charge are circles of radius kq/V (0.2 %).",
      "method": "marching squares against the analytic radius",
      "result": "pass"
    },
    {
      "id": "lw-static",
      "claim": "A charge that has not moved gives Coulomb's field with zero acceleration part and zero magnetic field.",
      "method": "limit",
      "result": "pass"
    },
    {
      "id": "lw-retarded-time",
      "claim": "c (t - tr) = distance at tr, to 1e-12 m, for 18 time and position combinations with peak speed 0.63 c.",
      "method": "residual",
      "result": "pass"
    },
    {
      "id": "lw-uniform",
      "claim": "Constant velocity at 0.05, 0.3, 0.6 and 0.9 c: the computed field equals the closed form (1e-9) and points from the present position; Coulomb from the retarded position differs by more than 5 % for 0.3 c and above.",
      "method": "closed form (Griffiths 4th ed., sec. 10.3.2)",
      "result": "pass"
    },
    {
      "id": "lw-causality",
      "claim": "At 30, 60 and 90 cm the field is exactly the old Coulomb field until R/c (1.0007, 2.0014, 3.0021 ns), changes afterwards, and equals Coulomb from the new position once the news of the stop has passed.",
      "method": "before/after comparison",
      "result": "pass"
    },
    {
      "id": "lw-radiation",
      "claim": "For slow motion the acceleration part equals -q a/(4 pi eps0 c^2 R) (2 %), is transverse, and falls as 1/R; the velocity part falls as 1/R^2.",
      "method": "limit and scaling",
      "result": "pass"
    },
    {
      "id": "lw-gauss",
      "claim": "Flux of the computed field through a 25 cm sphere equals q/eps0 (1e-6) at three times during a move with peak speed 0.63 c.",
      "method": "Gauss-Legendre quadrature over the sphere",
      "result": "pass"
    },
    {
      "id": "lw-b",
      "claim": "B is perpendicular to E and no larger than |E|/c.",
      "method": "vector identities",
      "result": "pass"
    },
    {
      "id": "charge-conservation",
      "claim": "05: every operation (transfer, wire between spheres, ground wire, moving the spheres) conserves q_A + q_B + q_Earth; linked spheres share one potential; a grounded sphere is at zero potential.",
      "method": "invariants on every step",
      "result": "pass"
    },
    {
      "id": "charge-sharing",
      "claim": "05: equal spheres far apart share equally; unequal spheres share in proportion to radius (0.5 %); closing a wire never raises the field energy.",
      "method": "limits",
      "result": "pass"
    },
    {
      "id": "induction",
      "claim": "05: a grounded sphere near a charged one keeps charge of the opposite sign; for a small distant source it equals the image charge -q a/d (0.2 %).",
      "method": "comparison with the image solution",
      "result": "pass"
    },
    {
      "id": "bem-sphere",
      "claim": "06: charged sphere: uniform density (1 %), potential kQ/a (0.3 %). Grounded sphere near a point charge: total -q a/d (0.5 %) and the exact image-charge distribution (2 %). Neutral isolated sphere: potential kq/d.",
      "method": "analytic solutions",
      "result": "pass"
    },
    {
      "id": "bem-inside",
      "claim": "06: field at four interior points below 0.5 % of the largest surface field; interior potential equals the body potential (0.2 %).",
      "method": "computed from the solved surface charge",
      "result": "pass"
    },
    {
      "id": "bem-spheroid",
      "claim": "06: prolate spheroid 10 cm x 4 cm: exact capacitance (0.5 %) and exact surface distribution (3 %), end-to-waist ratio a/b; a sharper end holds more.",
      "method": "analytic solution",
      "result": "pass"
    },
    {
      "id": "dielectric-force",
      "claim": "07: force on a point charge near a dielectric half-space: zero for permittivity 1, the metal-plate value for very large permittivity, 33.7 mN for the default; equals the direct sum of the pull of the bound surface charge (1e-4); attracts either sign.",
      "method": "limits and independent integration",
      "result": "pass"
    },
    {
      "id": "bound-charge",
      "claim": "07: integrated bound surface charge equals -q (er-1)/(er+1) (1e-4).",
      "method": "numerical integration",
      "result": "pass"
    },
    {
      "id": "molecule",
      "claim": "07: induced-dipole force equals minus the gradient of -alpha E^2/2, falls as 1/r^5, attracts either sign.",
      "method": "numerical derivative and scaling",
      "result": "pass"
    },
    {
      "id": "silicon-ni",
      "claim": "08: intrinsic density at 300 K between 0.9e10 and 1.2e10 per cm3 (1.07e10); band gap 1.124 eV.",
      "method": "comparison with published values",
      "result": "pass"
    },
    {
      "id": "mass-action-neutrality",
      "claim": "08: n p = ni^2 and zero net charge for six temperature and doping cases; intrinsic, n-type, p-type and hot limits; Fermi level kT ln(n/ni) above mid-gap.",
      "method": "identities and limits",
      "result": "pass"
    },
    {
      "id": "mos-depletion",
      "claim": "08: ideal MOS on 1e16 p-type: Fermi potential 0.357 V, greatest depletion depth 0.30 um; gate voltage = surface potential + oxide drop; depletion charge = q Na W.",
      "method": "textbook example and identities",
      "result": "pass"
    },
    {
      "id": "free-electron",
      "claim": "09: acceleration 1.7588e14 m/s2 in 1000 V/m.",
      "method": "direct evaluation",
      "result": "pass"
    },
    {
      "id": "hydrogen",
      "claim": "09: radial probability normalized (1e-8), mean distance 1.5 Bohr radii, 32.3 % inside one Bohr radius; 40000 sampled positions reproduce the mean (2 %).",
      "method": "numerical integration and sampling",
      "result": "pass"
    },
    {
      "id": "single-electron-box",
      "claim": "09: charging energy 80.1 meV for 1 aF; whole-number occupation when cold, equal chances and variance 1/4 at a step, linear response when warm; probabilities sum to 1.",
      "method": "limits",
      "result": "pass"
    },
    {
      "id": "line",
      "claim": "10: no response before length/speed; matched load reaches its final value at once; first value V1 (1 + reflection); steady state Vs RL/(Rs+RL) for three loads; open and shorted ends; V = forward + backward and I = (forward - backward)/Z0 everywhere.",
      "method": "exact solution checked against limits",
      "result": "pass"
    },
    {
      "id": "drift",
      "claim": "10: drift speed 0.0734 mm/s for 1 A in 1 mm2 of copper; about a picometre per 15 ns.",
      "method": "direct evaluation",
      "result": "pass"
    },
    {
      "id": "lorentz",
      "claim": "11: B = 200 uT at 1 cm from 10 A; no magnetic force at rest; 3.2e-17 N at 1e6 m/s; direction reverses with charge sign and with velocity; magnetic power zero.",
      "method": "direct evaluation",
      "result": "pass"
    },
    {
      "id": "boris",
      "claim": "11: speed conserved to 1e-9 along a curved path in a purely magnetic field; an electric force does change it.",
      "method": "integrator invariant",
      "result": "pass"
    },
    {
      "id": "frame",
      "claim": "11: for motion along the wire the purely electric force in the charge's frame equals gamma times the laboratory force (1e-12), for speeds up to 0.67 c and for charged wires.",
      "method": "Lorentz transformation of charge and current",
      "result": "pass"
    },
    {
      "id": "dipole-vs-lw",
      "claim": "12: the dipole formula agrees with the exact Lienard-Wiechert field of the oscillating charge plus its fixed partner at near, middle and far distances (2 % of the field scale).",
      "method": "two independent models",
      "result": "pass"
    },
    {
      "id": "dipole-zones",
      "claim": "12: the three parts of the field are equal at wavelength / 2 pi; far part falls as 1/r, near part as 1/r^3; far away E = cB and the field is transverse.",
      "method": "scaling",
      "result": "pass"
    },
    {
      "id": "radiated-power",
      "claim": "12: outward energy flow averaged over a cycle equals (qA)^2 w^4/(12 pi eps0 c^3) through spheres of radius 2 cm, 30 cm and 5 m (1e-4); close in, the flow is inward at some moments; power scales as frequency^4 and amplitude^2; constant velocity gives no acceleration field.",
      "method": "Poynting flux integration",
      "result": "pass"
    }
  ],
  "labels": {
    "computed": "All readouts, arrows, lines and traces are computed in the browser from the models when a control changes or the clock advances. Nothing is prerecorded.",
    "hypothetical": "Exponents other than 2 (experiment 02) and the violet instant-force arrows (experiment 04) are comparison devices, not solutions of Maxwell's equations.",
    "synthetic": "Readings in experiment 02 'Take a measurement' and measured positions in experiment 09 are generated by the page from a seeded random generator. They are not experimental data.",
    "measured": "Only the table of published limits on delta reports measurements; those values are quoted from the cited sources.",
    "illustrative": "Experiments 04, 10 and 12 play slowed clocks and say so. In experiment 10 the electron-drift markers are exaggerated by a stated factor. In experiment 06 the longest charge spikes are cut and marked."
  },
  "notRun": [
    "Screen-reader pass with a real assistive technology",
    "Physical phones and tablets (checked in desktop Chrome at phone viewport sizes only)",
    "Safari and Firefox"
  ],
  "reproduce": "node --test lab/tests/*.test.mjs"
}
