Skip to content

Current through resistor issue#56

Closed
marcin-golebiowski wants to merge 3 commits intoSpiceSharp:developmentfrom
marcin-golebiowski:marcin-golebiowski/current_through_resistor
Closed

Current through resistor issue#56
marcin-golebiowski wants to merge 3 commits intoSpiceSharp:developmentfrom
marcin-golebiowski:marcin-golebiowski/current_through_resistor

Conversation

@marcin-golebiowski
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

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

@svenboulanger
Copy link
Copy Markdown
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
Copy Markdown
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