Replies: 2 comments
|
Hi, yes this would be valuable. Maybe should be part of the pathsim-rf repo though. There external dependencies are much more ok. |
0 replies
|
Just finished all my tests. Getting ready for integration soon. I changed the wrapper to be more in line with pathsim block: state_space = NetlistStateSpace(
"filter.net",
output_voltages=["n1"],
output_currents=["Rload"],
reduction_mode="fast",
) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello Milan,
Is integration of netlist still on the roadmap ?
I have been testing this new block, a way to convert netlist into statespace class.
It works a bit like your pathsim_rf.network as it automate a process of conversion, allowing for passive netlist to be imported (R L k and C)
Consider the following netlist: (a classic LC filter, with a load and feed by a simple PWM voltage source)
you can now import it like this:
The code detect voltage and current source as inputs for the statespace class. Therefore it is possible to replace the load resistance by a current source by editing the netlist:
now, the StateSpace instance has 2 inputs, one for input voltage and one for current (load current). If I wire statespace[0] (so n1) to an Amplifier(gain=1/Rload) and wire it back the statespace[1] (current source), I successfully replicate the behavior, but with a current load computed by another model.

This effectively allows to add netlists and chain them directly into pathsim.
This however, rely on sympy or/and python-mumps (for fast system inversion, in case of large netlist), two dependencies not present in pathsim.
If you are interested, I can prepare a pull request with the full example
All reactions