In the current version (v1), circuits are represented in circuit code commands. An simple series circuit is shown below:
R1 1000_O
R2 1000_O
LT S 0.01_A R1,R2,
PASS LT
These files are compiled line by line by a custom compiler to create a Component Tree structure. The Component Tree is then recursively solved to determine the voltages, currents, and resistances for any complex circuit.
The "R" command is used to define a resistor in a circuit and needs a name/label as the first parameter. The next three parameters are for voltage, current, and resistance and at least one of them must be provided. The parameters must be followed by their units, i.e. _V for voltage, _A for current, and _O for resistance.
The "L" command is used to define a leg, which acts as a container for resistors and other legs. A leg requires a type (Series or Parallel), a minimum of one subcomponent and additional parameters for voltage and resistance. The subcomponents are listed after the leg type and separated by commas.
The PASS statement signifies the root component of the circuit, which could be either a resistor or a leg. The PASS statement requires only one parameter, the name of the root component.