Hi, I just wasted a lot of time understanding why this simple feedback loop gave nonsensical results in AC analysis. I have two behavioural sources in that loop with trivial expressions ; DC and transient analysis show expected function.
In an AC analysis (I'm trying to get gain-phase plots out of this), the feedback appears to be broken. If I bypass one of the sources (B3) by combining its expression into B2 , thus only a single behavioural source in the loop, then I get sane results.
In the attached file, this is simply done by swapping places of B1 and B2 (note that one refers to V(ctl), bypassing B3, while the other uses a current through B1 which itself refers to V(ctl)).
Is there some numerical reason for this not to work ? or a bug ? If the former, is there a way for ltspice to warn me of whatever I'm doing wrong ?
The docs have " However, it is assumed that the circuit element current is varying quasi-statically, that is, there is no instantaneous feedback between the current through the referenced device and the behavioral source output." but I'm not sure that concerns my use case ?
