FeatureBuilt · in the lab

Coupled physics

Three battery models, ray tracing, thin films, Gaussian beams, a junction in 1-D and 2-D, a piezo element, Joule heating in 3-D, micro-machined sensors, drive noise and vibration, waveguide modes and stray light, each checked against a formula.

Use this add-on:

Lab

Screenshots and a short video come with the listing (AL.3).

Overview

Coupled physics puts seven calculators in one tab for the physics that sits beside the electronics. A battery cell is discharged by an equivalent circuit or by a single-particle electrochemical model, giving the discharge curve and the heat. A lens system or a single reflector is traced ray by ray for its focal data, spot diagram and third-order aberrations. Thin-film stacks are solved by the transfer matrix method, and a Gaussian beam is carried through a lens.

A p-n junction is solved in one dimension by drift and diffusion for its band diagram and its current against voltage, and a piezo element is reduced to its equivalent circuit with the impedance curve. Where a textbook formula exists for your case, the result shows it beside the calculation with the difference. It is an aid for early design and for learning, not an approval.

Round two adds seven more. Joule heating in 3-D ties the electrical and thermal problems together for a bar, with a temperature-dependent resistivity, convection, clamped contacts and a neck that runs hot, steady or in time. A porous-electrode cell resolves a lithium-ion cell through its thickness with particles, salt transport and kinetics, and grows a surface film that takes lithium and adds resistance over cycles. Micro-machined sensors cover a cantilever beam, a capacitive accelerometer with its pull-in voltage and squeeze-film damping with its noise. A drive sheet lists the force waves of a motor against the stator ring modes and the sound a cylinder of that size radiates. A two-dimensional junction shows the field crowding at a window edge. A waveguide tool solves slabs exactly and rectangular cores by two approximate methods. A stray-light tool follows rays through diffuse walls and vanes.

Who it’s for

  • An electronics engineer who needs a first number for a cell, a coating, a beam or a resonator.
  • An optical or laser hobbyist checking a lens, a mirror or a beam path.
  • A student of batteries, optics or semiconductor devices who wants to see theory and numbers agree.
  • A teacher who wants a checked example to show.

What you can do

  • Discharge a cell by an equivalent circuit: your open-circuit curve, series resistance, one resistor-capacitor pair, heat and cell temperature. verified
  • Discharge a cell by a single-particle model: diffusion in each electrode's particle, reaction kinetics, heat rate, capacity lost at high current. verified
  • Trace a lens system typed surface by surface: focal length, back focal distance, focal ratio, spot diagram, Airy disk, Seidel sums. verified
  • Trace a spherical, parabolic or other conic reflector. verified
  • Solve a thin-film stack at any angle and polarization with absorbing layers: reflection, transmission, absorption, and the spectrum. verified
  • Carry a Gaussian beam through a thin lens: Rayleigh range, divergence, new waist. verified
  • Solve a p-n junction by drift and diffusion: band diagrams at zero and forward bias, peak field, current against voltage with the ideal law. verified
  • Reduce a piezo plate to its equivalent circuit, or start from circuit values: resonances, quality factor, coupling, impedance and phase curves. verified
  • Show each result beside a textbook formula where one exists, and save figures and curves as CSV.
  • Solve current and heat in a 3-D bar together: resistance, heat, hottest cell, a neck, convection, clamped ends, and the rise in time. verified
  • Discharge and cycle a porous-electrode cell with film growth: voltage against capacity, salt concentration, capacity lost, film thickness, lithium taken by the film. verified
  • Work a cantilever beam, a capacitive accelerometer and a squeeze-film plate: resonances, stiffness, pull-in voltage, quality factor and noise. verified
  • List the force waves of a motor, the ring modes of the stator and the sound a stator-sized cylinder radiates, against speed. verified
  • Solve a p-n junction in 2-D at reverse bias: potential, field and the crowding at the window edge. verified
  • Solve slab waveguide modes (TE and TM) and rectangular cores (effective index and a scalar finite-difference solver), with a picture of the mode. verified
  • Follow rays through a baffle tube with vanes or an integrating sphere: the share that reaches a detector and the stray part. verified

Methods and standards

Battery: exact stepping of a resistor-capacitor circuit; finite volumes on a sphere, implicit in time, with Butler-Volmer kinetics; the general energy balance for heat. Optics: paraxial trace, exact intersection and vector refraction at conic surfaces, Seidel sums with the conic term. Films: characteristic matrices with tilted admittances. Beams: the ABCD law for the complex beam parameter. Junction: Poisson and continuity equations with the Scharfetter-Gummel flux, solved by Gummel's iteration with bias stepping. Piezo: the one-dimensional thickness-mode impedance and the Butterworth-Van Dyke circuit. Every formula names its textbook or paper in the engine's code.

Round two: finite volumes on a regular grid with a coupling loop for the heat (conjugate gradients), the Doyle-Fuller-Newman equations with finite volumes in space and backward Euler in time and a dense Newton step for the reaction currents, beam closed forms with an independent finite-element beam, a ring model of the stator with a Bessel-function radiation efficiency, nonlinear Poisson by Newton with conjugate gradients, the slab dispersion equation by bisection and a scalar eigenvalue solver by shifted inverse iteration, and Monte Carlo rays with seeded random numbers.

Data and sources

The add-on ships no cell, glass, coating or material library. The example cell is an illustration with round numbers, not any maker's cell. Example indexes, silicon values and piezo ceramic values are typical textbook figures recalled for this release, not read from a data sheet, and the panel says so beside each calculator. Physical constants are the exact SI values. The piezo standard that defines the same circuit was not read. Everything else is what you type.

Verification

CaseResult
Battery cell against closed formsThe equivalent circuit matches the exact voltage of a resistor-capacitor circuit and the exact warming of one lump, the particle's surface concentration matches the exact series for a sphere under constant flux within 1 percent, lithium is conserved, and a very slow discharge follows the open-circui
Ray tracing against textbook opticsFocal lengths equal the lens maker's formula, a thin lens shows the textbook spherical aberration (1.17 and 4.5 times h squared over f for the two ways round a flat-convex lens of index 1.5), a sphere's edge ray crosses the axis at R over 2 cos theta exactly, a parabola focuses to a point, and exact
Thin films against closed formsBare glass reflects 4 percent, a quarter-wave layer and a quarter-wave mirror equal their formulas, a half-wave layer vanishes, p-polarized reflection is zero at the Brewster angle, a metal surface equals its formula, and reflection plus transmission is one without absorption (bin/test-coupled.mjs)
Gaussian beam through a lensThe new waist's size and distance equal the published closed form, and the radius at one Rayleigh range is the waist times the square root of two (bin/test-coupled.mjs)
Junction against the ideal diode lawThe built-in potential equals the formula, the peak field is within 3 percent of the depletion formula, the current at 0.55 to 0.6 V is within 2 percent of the ideal diode law with an ideality factor within 1 percent of one, and the current is the same all along the device (bin/test-coupled.mjs)
Piezo element against circuit theoryThe circuit's least and greatest impedance fall on the series and parallel resonance formulas, and the plate's coupling factor is recovered from its two resonances (bin/test-coupled.mjs)
Joule heating against closed formsThe resistance of a bar equals length over conductivity times area, the 1-D parabola of a bar with cooled ends is reproduced within 1 percent, the lumped quadratic for a resistivity that rises with temperature within 1 percent, heat lost equals heat released exactly and the lumped time constant with
Porous-electrode cell conservation and limitsLithium is conserved to 1e-9 over three cycles with a growing film, the charge passed equals Faraday's constant times the lithium that left the negative electrode, the cell sits at its open-circuit voltage at a tiny current, capacity falls with rate, and a particle under a constant flux shows the qu
Beam, accelerometer and noise against closed formsThe cantilever roots satisfy their equation, an independent finite-element beam agrees to 1e-5, pull-in sits at one third of the gap and the stated voltage, and the noise follows its formula (bin/test-coupled2.mjs)
Force waves, ring modes and radiationThe force waves equal the projected sampled field to 1e-6 with their direction, the Bessel functions satisfy the Wronskian to 1e-9, the radiation efficiency tends to one and the ring mode ratios follow the formula (bin/test-coupled2.mjs)
Junction in 2-D against the one-sided formulaThe depletion width from the charge is within 4 percent of the one-sided abrupt formula on the finer grid and grows as the square root of the voltage; with a smoothed edge the field crowding is the same on two grids within 6 percent (bin/test-coupled2.mjs)
Slab and scalar modesThe slab dispersion equation agrees with an independent finite-difference solution within 2e-4 and the symmetric slab guides the number of modes the cutoff rule gives; the scalar solver finds the degenerate pair of a square core exactly (bin/test-coupled2.mjs)
Stray light against view factor and sphere formulasA black tube reproduces the disc-to-disc view factor and an integrating sphere its closed-form share within 3.5 standard errors; the ray budget closes and reciprocity holds (bin/test-coupled2.mjs)
In a real browserIn PartCraft in the lab the add-on is switched on, each of the fourteen calculators is run, the figures and checks are read from the page and a CSV file is saved, with no console errors (tools/emfields/browser.mjs)

Limits

This is a design aid, not an engineering approval: it does not replace the judgement, the checks and the sign-off of the person responsible for the work, and nothing you build from its figures should rest on it alone.

- Battery: constant current only, one temperature for the cell, no electrolyte transport, no aging, ideal open-circuit curves in the single-particle model. - Lens and reflector: the stop is the first surface, the object is far away, one wavelength, surfaces on one axis. No color error, no tolerances, no optimization. - Thin films: flat, uniform, coherent layers; indexes fixed over the plotted range. - Gaussian beam: one thin lens, small angles. - Junction: one dimension, abrupt doping, constant mobilities, moderate forward voltage. No breakdown or tunneling. - Piezo: one resonance, no load, no side modes. - Runs in PartCraft in this release. It does not read or change the part. - Not compared with any other program. An aid, not an approval. - Joule heating: regular grid, stair-step voids, constant thermal properties, no radiation, no contact resistance. - Porous-electrode cell: generic open-circuit curves and parameters (not any real cell), isothermal, constant electrolyte properties, a simple surface film. - Micro-machined sensors: isotropic material, small deflection, no residual stress, no gas rarefaction; the squeeze-film formula was recalled from memory and must be checked. - Drive sheet: a thin ring for the stator, no frame, no axial modes, the force harmonics are what you give. - Junction in 2-D: reverse bias and equilibrium only; no breakdown; the corner field depends on the grid for an abrupt box. - Waveguide: the scalar solver has no polarization splitting and overstates high-contrast cores; the two rectangular methods can differ by several percent. - Stray light: diffuse surfaces only; no mirror reflection, scatter lobes or diffraction.

Files and formats

Saves a CSV file of the figures, the checks and the plotted curves of the calculator on screen. It reads no files and writes nothing into the part.

Get started

  1. Switch the add-on on in Settings, Add-ons, then open the Coupled physics tab.
  2. Pick a calculator, keep the example or type your own values, and press Calculate.
  3. Read the figures and the check against the textbook formula, then look at the pictures.
  4. Save as CSV to keep the result.

Languages

The text is available in:

  • English (en)

Works in

EditionWorksNote
Browser (/use) (yours) Added on demand Fetched the first time you use it, then kept for offline use.
Studio from getcadcraft.com Added on demand Fetched the first time you use it, then kept for offline use.
Microsoft Store Added on demand Fetched the first time you use it, then kept for offline use.
Google Play Added on demand Fetched the first time you use it, then kept for offline use.
iPad and iPhone (App Store) Included; switch it on Part of the reviewed app; your list switches it on.
Custom build Added on demand Fetched the first time you use it, then kept for offline use.

Comes with

Nothing else.

Versions

VersionChannelDateWhat changed
1.0.0labNovember 25, 2026First version in the Library.

Licence and maker

CadCraft (CadCraft, first-party). Licence: Apache-2.0. Dependencies carry their own licences, listed on their pages.