Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Field Lines: Charge Bench

Drag point charges and watch Coulomb field lines, voltage contours and a test charge's force recompute live.

範例

Field Lines interactive electric field bench
在新分頁開啟

Field Lines interactive electric field bench

此範例會在沙箱框架中執行,無法存取此頁面。

線上執行

在 SandBase sandbox 中執行,並在 Lab 中查看結果。

在 Lab 中開啟 ↗

您可獲得什麼

Bring charge layouts, the lesson or challenges and an optional palette. The Skill returns a downloadable Skill, an interactive demo and an example video.

運作方式

  1. 01

    Fill the charge bench

    Field Lines fills its prompt with node scripts/fill-prompt.mjs --slots assets/prompts/examples/charge-bench.json --out prompt.md, then sets up a project with node scripts/new-project.mjs --out my-field and npm ci. Charges, layouts, voltage levels, palette, challenge text and the cover sequence live in src/lab.json. The physics sits in src/field.mjs, shared by the page and its tests.

  2. 02

    Drag charges and test

    Drag a charge with mouse or touch, or focus it and use the arrow keys, + and - to resize and Delete to remove. Coulomb field lines run from positive to negative at 8 lines per unit of charge and never cross; dashed equipotentials meet them at right angles. A test charge shows its force and, once released, the path it takes. Five layouts and three challenges ship.

  3. 03

    Build and check the physics

    npm run build:single writes one offline HTML file with English and Simplified Chinese, and npm run shoot -- --file dist-single/index.html runs the checks in references/verification.md. The release verified line counts, zero crossings, orthogonal contours, symmetry, determinism and a 345 by 345 embed. Node 22.4 builds it and Chrome verifies it. Invalid lab data fails with a stable lab_ error code.

常見問題

Is Field Lines an animation?

No. Field Lines computes lines, contours, forces and paths in the browser from the charges you place. Moving a charge redraws the whole field. Because the same module drives the page and its tests, the checks on line count, crossings and right-angle contours test the code the page actually runs.

Why does the Field Lines test charge leave the field line?

Field Lines moves a released test charge by its actual motion, and a particle keeps its momentum. Where the lines curve, the path drifts outside them instead of tracing a line exactly.

Is Field Lines accessible?

Field Lines is designed toward WCAG 2.2 AA, with labelled controls, visible focus, keyboard movement and a live text description of the field. Full conformance still needs testing with assistive technologies and expert review, so treat it as a design goal rather than a certified result.

Does Field Lines need a key or model?

No. Field Lines needs no key, model call, external asset or storage, so building, embedding or playing it is not billed. The maintainer publisher builds first-party source in an isolated copy with no credentials.

What are the Field Lines challenges?

Field Lines ships three guided challenges in the Charge Bench example, each with predict, try and explain steps and a live checklist. The four field-line rules are drawn on the field itself.

Lab Skill · Video

Science MV

Explain science through visible causes, transformations and results.

Lab Skill · Video

Loop Story

Explain a cycle: build each stage, close the loop, then reveal the takeaway.

Lab Skill · Interactive scenes

Flux Rotor: Cobalt Drive

Inspect an original motor with real winding groups, alternating magnet sectors and a keyed shaft. Balanced phase currents drive prescribed synchronous rotation, material colors and spatial harmonic markers. Open the actual cutaway and separate six components offline. This display does not solve torque, efficiency or magnetic finite elements.

Lab Skill · Interactive scenes

Voxel Paddock: Mint Apex

Inspect an original open-wheel vehicle built from procedural cubes. Spin actual wheels on a stationary display, turn nominal geometric steering and separate twelve component groups. Edit bounded dimensions, voxel density and three palettes offline. This is not a driving or aerodynamics simulation.

Lab Skill · Interactive scenes

River Era: Valley Years

Scrub an authored river settlement timeline from camp and farms to town, workshops and speculative towers. Actual seeded geometry changes reversibly; boats and vehicles follow the same river and bank equations. This is an illustrative sequence rather than predictive history.

Lab Skill · Interactive scenes

3D Mechanical Watch Explorer

Inspect a kinematic mechanical watch with actual meshed tooth ratios, 54 components, axial explosion, material cutaway and bilingual mouse/touch controls. One offline HTML with optional synthesized tones.