Streaming simulation results #5
pepijndevos
started this conversation in
Ideas
Replies: 1 comment
-
|
I did this using pause and resume command. I am open for e better approach. Lets discuss this. I guess ngspice developer will be open for collaboration too |
Beta Was this translation helpful? Give feedback.
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.
-
I thought I'd request some input before embarking on a large mission.
It seems valuable that if you're running a long and slow simulation that you could perform streaming analysis and terminate early if the circuit doesn't meet the requirements.
It seems that ngspice shared already exposes a send_data method that will receive streaming data, but this isn't hooked up anywhere in a nice high-level interface.
I think there are a few concerns to do this well:
Maybe you'd want to introduce an ngspice-streaming key to CircuitSimulator that activates a NgSpiceShared subclass with send_data implemented.
I'm still a bit lost in the plumbing between CircuitSimulator and NgSpiceShared to understand how a streaming API should be implemented. My feeling is the
.run(); .plot().to_analysis()path isn't really compatible with streaming.For reference, this is how it is implemented in my bespoke simserver api https://github.com/NyanCAD/Pyttoresque/blob/main/pyttoresque/simserver.py
Beta Was this translation helpful? Give feedback.
All reactions