Brandon's Semiconductor Simulator

1 year ago (brandonli.net)

When spice simulation isn't deep enough... Very educational to show how circuit elements work "under the hood"...for example the LC example doesn't use an L element and a C element as building blocks, but rather it is the two metal plates in close contact which form the bulk of the circuit's capacitance and it is the loop of metal itself which form the inductance.

  • I wonder how they simulate EM in only 2 dimensions.

    I also wonder why the simulator only allows to show E and D fields, and not H and B.

    • I don't pretend to know what this simulation is doing, but for the record, electromagnetism works just fine in 2D. You might be thinking "but magnetic fields are intimately tied to cross products, which only work in three dimensions." But you can set up the equations of electromagnetism just fine either using differential forms or bivector magnetism (https://arxiv.org/abs/2309.02548), and it works in any dimension you'd like. (The cross product version is really a narrow and sometimes misleading special case.)

      Possibly related: there are options to "View B" and "View H" in the scalar dropdown, not in the vector one. That may be closely related to the fact that in two dimensions, the magnetic field has just a single component. Whether you describe is as a 2-form or a bivector, the magnetic field is an antisymmetric rank-2 tensor: an antisymmetric matrix. In 3D, that means 3 independent components, and there's a one-to-one mapping to vectors (more or less). But in 2D, an antisymmetric matrix has just one independent component. (And in 4D, it's got six: this is precisely the relativistic electromagnetic field tensor, that in 3D splits into an electric part and a magnetic part. My paper has more details.)

      4 replies →

Fun. I am reminded of the long forgotten Zachtronics semiconductor game “KOHCTPYKTOP: Engineer of the People” [1]

[1] https://www.zachtronics.com/kohctpyktop-engineer-of-the-peop...

Amazing work feels very similar to Paul Falstad page https://www.falstad.com/emstatic/index.html.

This really needs a WebGPU port. Multigrid on a GPU is moderately easy.

  • The similarity is likely not a coincidence!

    > (c) Brandon Li, 2025. Ported to Javascript with the help of Paul Falstad.

Which other simulators show electron charge density and heat dissipation?

Can this simulate this?:

"Synaptic and neural behaviours in a standard silicon transistor" (2025) https://news.ycombinator.com/item?id=43506198

What about (graphene) superconductors though?

This looks exciting, but the images make it look like maybe it's two-dimensional?

im super into stuff like this, takes me back to messing with circuit sims for hours