-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CCCS doesn't always works as expected #140
Comments
Thanks for letting me know about this. I think the result using a voltage source for the controlling current is correct as per the SPICE definition of a CCCS where the control current is considered to flow from the positive node through the voltage source to the negative node. I will have to think about the case where the control current flows through a resistor. I agree Lcapy gives the wrong result. The simplest option would be to only allow the control current to be defined for a voltage source, as per SPICE. |
I have pushed a trivial fix for this. However, it has raised a much greater problem where the positive and negative nodes of current sources are swapped compared to SPICE! The source I used had the arrow the wrong way and I didn't check carefully enough. I'm not sure of the best strategy to correct this anomaly. |
Hi, I've been trying to generate equations for circuits were I need to use CCCS.
In the attached test bench I've tried to use as control source either V1 or R1.
The current flowing V1 or R1 is always the same, but I do get different results. The V1 case is the correct one (apart from the fact that the sign is not what I would expect). In the case of R1 the answer is instead wrong.
replacing this line
F1 8 7 R1 F1; down
A further example where I see issue is when I try to reproduce the "CapMultiplier" scheme. The use of CCCS serve the purpouse of increasing the capacitance. The issue here is that the equations are not generated.
NonInvertibleMatrixError: Matrix det == 0; not invertible.
Any help is very much appreciated.
The text was updated successfully, but these errors were encountered: