No specific error message for algebraic loop with C-script

I want to model a varistor using the functional description given by the manufacturer Littelfuse for PSPICE. The characteristic of the Varistor is modeled as a power function combined with a linear behavior around current zero. I use a variable voltage source which is controlled by the current through itself. It is clear that that is an algebraic loop, but the error message that I get don’t show me where the problem is in detail.

Varistor2.plecs (14.1 KB)

Hello,

The problem stems from exactly what you said- the voltage is directly affected by the current through the voltage source, which is not allowed mathematically. Have you tried using the Variable Resistor component included in the PLECS component library?

Kris