Skip to content
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

Current through resistor issue #56

Conversation

marcin-golebiowski
Copy link
Member

@marcin-golebiowski marcin-golebiowski commented Apr 14, 2021

There is an issue with I(Resistor) in expressions.
Please find the unit test.

@marcin-golebiowski marcin-golebiowski changed the title Marcin golebiowski/current through resistor Current through resistor issue Apr 14, 2021
@svenboulanger
Copy link
Member

At the moment, this doesn't work by design. A resistor does not define a branch current, so the behavioral source cannot compute derivatives for it...

@marcin-golebiowski
Copy link
Member Author

Any plans to change that? I think that could be nice feature.

@svenboulanger
Copy link
Member

The thing is that I don't know how to go about this correctly. Maybe I could add a optional flag that you can override the 'fully correct' behavior. You will in a lot of cases still get agreeable results, however it is hard to predict what it does for more complex stuff.

I will also take a look how they do it in ngSpice for example.

@svenboulanger
Copy link
Member

It should be possible with v3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants