-
Notifications
You must be signed in to change notification settings - Fork 22
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
singular matrix with voltage contribution #135
Comments
v_contrib.zip |
I'm still new at Rust, but I am curious about the function below, where 3 of the 5 cases have "cursor.ins()". Case 1, we're adding 0 to something (I think "dst" is "destination"), and we don't need anything there. But in case 3, (F_ZERO, _) when negate is false, should there be a cursor.ins()? Without it, the variable that's used for KCL in the matrix stamp is dropped (it does not seem to be marked as being used, and thus is not in the "live_params" in sim_unknown_reads that are considered when building the jacobian.
|
Hello, I also faced with this issue, and the only solution is to add explicit ground reference everywhere. |
The commit I made solves the issue. |
I will check it out, thank you. |
When I have a voltage branch contribution that connects implicitly to ground:
V(a) <+ dc;
OpenVAF does not properly construct the circuit matrix, such that I get a singular matrix error from ngspice.
If I change this to
V(a,b) <+ dc;
and connect 'b' to ground in the netlist, it works fine.
The text was updated successfully, but these errors were encountered: