Repository navigation
Add NetlistCircuit, importing circuit into SparseLinearDAE - #7
Merged
Merged
Conversation
NetlistCircuit leverage ElecSolver netlist parser and system building to formalise S2, S1 and B matrices compatible with SparseLinearDAE. Meanwhile, C and D are generated using imput parameters matching netlist style notation
This notebook demonstrates a pulse-driven LC low-pass filter simulation using the NetlistCircuit block, including setup instructions and simulation results.
`NetlistCircuit` can be used in any physics given a circuit equivalence can be used. This example feature coupled inductors and a second order thermal model.
Removed the ambient temperature definition from the thermal path simulation example.
Contributor
Author
|
The rest is up to the users, I am currently running simulations for a PMSM with speed control, anti-windup, field weakening, clarke and park transform and cable and filter simulation in pathsim under 5 minutes. I am very happy |
| "numpy>=1.15", | ||
| "scipy>=1.2", | ||
| "scikit-rf>=0.30", | ||
| "ElecSolver>=2.2.1", |
There was a problem hiding this comment.
@milanofthe ElecSolver>=2.2.1 is a python lightweight sparse linear system builder for electric systems (or anything that can be expressed in a similar circuit form), it only needs numpy and scipy (I removed networkx in the 2.2.0 release to make it minimal).
In case you were worried about adding deps to pathSim, this one does not add extra packages (except itself)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title
Adding NetlistCircuit, a class importing netlist into SparseLinearDAE format.
This ease the process of simulating electrical system, but also any kind of physics with equivalent circuit.
This PR needs pathsim version above commit pathsim/pathsim@e34add6 to work
Modifications
Tests
python -m unittest discover