In a circuit with nets (made physically with conductive materials) there are always capacitors across them. These may be desired capacitors by the integrated circuit designer, or parasitic ones which have unwanted influence on the circuit performance. Whatever the case, our simulator returns a netlist with all capacitors in a SPICE like circuit description format:
The energy method is used to calculate the capacitance values, because high numerical accuracy is achieved. The energy in a system with conductors is
Therefore, we must apply different potential conditions and solve the resulting linear system to obtain all capacitor values. The electric potential for partial capacitance pairs is obtained by solving Laplace's equation:
where is the permittivity tensor, and with this potential contributions the unknown ones are calculated by superposition.