[x]
Simulation details
The main way to interact with circuits is to change the strength of voltage sources and turn switches on and off. The quickest way to get started is to load one of the examples,
uncheck the pause button and click on one of the voltage sources. You can then adjust the voltage using a slider located on the right panel.
Tools
- Interact: Click on a voltage source to set its strength.
- Draw: Add material to the field.
- Voltage: Add a voltage probe.
- Current: Click and drag to add a current probe that measures current across a wire.
- Ground: Specifies the point relative to which probes measure voltage (optional).
- Delete probe: Click to delete a probe.
- Replace: Draw over other materials.
- Line: Click and drag to make a line.
- Fill: Fill a region.
- Erase: Erase.
- Select: Click and drag to make a rectangular selection or move it.
- Select region: Click to select a contiguous region.
- Text: Click to place a text cursor and type text on the screen.
Controls
- P/Space: Pause & unpause
- F: Advance frame
- Q: Change brush shape
- C: Toggle material color
- V: Toggle vectors
- S: Toggle scalar colors
- T: Toggle tooltip
- G: Toggle text background
- Mouse wheel: Change brush size
- Shift: Draw straight lines
- Ctrl: Fill area
- Alt/Option: Pick material
- Ctrl-X: Cut
- Ctrl-C: Copy
- Ctrl-V: Paste
- Left mouse: Draw material
- Right mouse: Erase material
- Middle mouse: Pick material
Materials
- Voltage source: Generates a voltage that can be used to power circuits.
- Switch: Conductivity can be switched on and off by the user.
- Metal: Material that conducts electricity very well.
- Conductive metal: More conductive than regular metal.
- Resistive metal: Less conductive than regular metal.
- High workfunction metal: Metal that forms an ohmic contact with p-type semiconductor.
- Low workfunction metal: Metal that forms an ohmic contact with n-type semiconductor.
- Intrinsic semiconductor: Undoped, with equal number of electrons and holes.
- P-type semiconductor: Represents a semiconductor doped with holes.
- N-type semiconductor: Represents a semiconductor doped with electrons.
- Heavily doped P-type semiconductor: Has a large concentration of holes.
- Heavily doped N-type semiconductor: Has a large concentration of electrons.
- Lightly doped P-type semiconductor: Has a small concentration of holes.
- Lightly doped N-type semiconductor: Has a small concentration of electrons.
- Dielectric: Material with a large permittivity/dielectric constant.
- Ferromagnet: Magnetic material with high relative permeability.
- Positive static charge: Positively charged insulating material.
- Negative static charge: Negatively charged insulating material.
- Decoration: Used for text or circuit symbols, has no effect otherwise.
- Vacuum: Empty space.
What do the colors mean?
In general, the color red is associated with either holes or a positive charge. Blue represents electrons or negative charge. White means both electrons and holes exist a location.
In the rest of the cases, yellow represents a positve quantity (eg. chemical potential or magnetic field), while cyan is negative. Finally, green is used for quantites that are always positive (eg. energy density).
Note: Each material also has its own color which is unrelated to the aforementioned color scheme.
What do voltmeters actually measure?
You might notice that the reading from a voltage probe doesn't match the electric potential Φ. In reality, voltmeters do not measure Φ but rather differences in electrochemical potential of charge carriers.
Things get a bit trickier when we ask what the voltage is in a piece of semiconductor, becuase now there are multiple charge carriers! In this case we can try to define voltage as the reading we get when we stick a small metallic
probe at a certain point. This can actually be performed in the simulation, and the result is that the electrochemical potential of the metal lies between that of electrons and holes, closer to whichever one has a larger density.
I approximate this with a simple weighted average, the result of which is displayed on the voltage probe.
Why does the magnetic field vanish outside of circuits?
Because the simulation is in 2D, circuits actually extend infinitely in the z-direction (out of the page), so current flowing through a closed circuit has the same effect as current flowing through a 3D solenoid.
If you recall from E&M class, the magnetic field within an infinitely long solenoid is entirely contained within it. This is certainly a point of departure from how we expect circuits to behave. It means that each current loop has its own inductance,
and trying to create "inductors" that behave like their 3d counterparts is quite tricky.
Copyright (c) 2025 Brandon Li
[email protected]