We are building a tool to simulate circuits, and using SpiceSharp as the implementation.

We need to detect when we end up with essentially floating islands in the circuit, where we have nodes that have switches either side of them which are open.

I need to find a way to detect that the nodes in this part of the circuit are not connected. I know this has been solved in other spice based circuit simulators, and I'm curious to find out how it has been done.

Currently, I'm using resistors to tie the nodes back to a -1000v rail so that when they are effectively floating, they register around -1000v (with a small margin either side). So far, this appears to be behaving as we need it to, however I would appreciate any insight on whether this is an acceptable way to achieve this.

Alex's user avatar

1

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.