I'm trying to simulate a circuit for a design I'm making. In a few parts of what I'm interfacing with uses relays that when closed will short a few power supplies to the chassis ground and in LTSpice and Circuit lab there is no "chassis ground" or "earth ground" just one ground. It doesn't short the rest of the circuits with power supplies tied to their own grounds just a few spots these relays are used. I've been trying to find the answer on here and elsewhere and found Need help modelling the circuit with parasitic capacitance of a power supply in this scenario in SPICE where he just hand drew it but is there a way to make it with subskt or is there a proper way to simulate this that won't skew my sim in weird ways?
1 Answers
Due to the nature of the SPICE (ever since 40+ years), the ground (0, GND) node is global, but just a net, like all nets. And all nets can be renamed to whatever name/label/etc is needed. In this case, that chassis you're looking for, in whichever SPICE software, is just a cosmetic appearance for a net/node, labeled chassis, or earth, or whatever. In LTspice there is only one cosmetic like that, called COM, but which has the same functionality of a common node (like chassis, earth, etc, unless mentioned otherwise). It, too, needs to be referenced to ground, so some connection is needed, if you so choose to use it. This is true for whichever SPICE program that uses those nodes as floating nodes. Here's a minor example of usage:
Note the R2 that connects the triangular shape ground (the ground, 0, GND) to the cosmetic COM. Its value is 1g to simulate a separate, floating ground, but really it's there with the sole purpose of providing a reference to ground without which the solver cannot calculate. Also, the plot shows V(2,COM), which is just a local reference for probing; can be anything, really.
- 21,445
- 1
- 23
- 40
-
So, just to confirm, in this model the COM is chassis ground, correct? – BrownKuma Oct 26 '18 at 15:07
-
@BrownKuma If that's what you want it to be, sure. It really doesn't matter even if you're using an unnamed net, all that matters is that you keep the reference to that node (if that's your purpose). For visibility purposes, you can name that net as
CHASSIS, and reference everything you need to be referenced to it. – a concerned citizen Oct 26 '18 at 16:58 -
I'm trying to conceptualize it correctly. I did it the other way and the simulation didn't seem right so after some research I realized there shouldn't be hardly any current going to the chassis so that should be shunted with the 1g resistor, am I correct? – BrownKuma Oct 28 '18 at 16:24
-
@BrownKuma You have to separate the real life case to the SPICE world. In SPICE, everything needs to be calculated with a reference. That ref. is the ground, or the
0(GND) node. And while in real life you can have a separate, floating ground, in SPICE you can't, because that separate ground needs to be referenced to0. The solution is to add a large enough resistor so that the currents are small to not influence the schematic, while allowing referencing to0. Still, even in real life, you have the finite impedance of air, various parasitics, etc. – a concerned citizen Oct 28 '18 at 17:01

This is for a senior design project for school aimed at making a device for an aircraft so there is no true "earth ground." the closest we can plan for is "chassis ground"
– BrownKuma Oct 19 '18 at 21:41