Repository navigation
feat: add Kirchhoff's Circuit Laws simulation - #389
Conversation
Interactive DC circuit simulation (single loop, series, parallel, two-loop network) with draggable voltmeter and ammeter, plus its config, catalogue entry, overview, companion article, thumbnail and regenerated sitemap/routes.
|
@niyexdroid is attempting to deploy a commit to the PhysicsHub's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
hey @niyexdroid thank you for this simulation! Can you please send a video that shows how that works? Like a video demo where you try the sim thank you! |
|
@niyexdroid hey are you still working at this? |
Sorry, just the video left to do, i haven't been close to my pc. i will do it tomorrow by 2pm GWT |
|
alright no problem |
|
sorry it took this long i was trying to add a text to the video. The video is 18.3 MB, it too long to add here, so i did a google drive link: |
Its done now you can check my previous comment and the video link is there |
|
Thank you so much for this simulation (and the video)! |
📘 Pull Request Template – PhysicsHub
🔍 Description
Adds a new Kirchhoff's Circuit Laws simulation built on the engine.
Build and solve DC circuits: single loop, series, parallel and a two-loop network with two cells. Charge flow is animated, a voltmeter and an ammeter can be dragged onto the circuit, and the readout shows Kirchhoff's current and voltage laws balancing to zero in real time.
Files:
simulations/KirchhoffCircuit.jsx— the simulationapp/(core)/data/configs/KirchhoffCircuit.js— inputs and sim-info readoutapp/(core)/data/chapters.js— catalogue entry (upperSecondary, alsolowerSecondary,extended)app/(core)/data/simulationOverviews.js— page overviewapp/(core)/data/articles/kirchhoffs-circuit-laws-explained.js+articles/index.js— companion articlepublic/thumbnails/kirchhoff-circuit.webp— catalogue thumbnailroutes.js,public/sitemap.xml— regenerated for the two new pages✅ Checklist
npm run dev)eslint+prettier --checkpass on the changed files)🎨 Visual Changes (if UI-related)
Clip of the simulation to follow in a comment.
📂 Type of Change
🧩 Additional Notes for Reviewers
No engine changes — the simulation only uses the existing
createSimulationAPI.Tested in a headless browser against
next dev:<circle> attribute cx: Expected length, "undefined"error also appears on untouched pages (e.g./simulations/SimplePendulum), so it predates this PR.🤖 Generated with Claude Code