Ste, nice work! It might be helpful to add two small series resistors (1 mOhm or so) into the model, to avoid zero resistance, which ngspice does not like. Best done by adding it directly:
{value*ratio + 0.001}
{value*(1-ratio) + 0.001}
Ste, nice work! It might be helpful to add two small series resistors (1 mOhm or so) into the model, to avoid zero resistance, which ngspice does not like. Best done by adding it directly:
{value*ratio + 0.001}
{value*(1-ratio) + 0.001}