I read the documentation of NGSpice, voltage source is mentioned in Chapter 4 with N+ N-, I tried LTspice, I only found voltage source with two terminals.
How would a single terminal voltage source get simulated in NGSpice?
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI read the documentation of NGSpice, voltage source is mentioned in Chapter 4 with N+ N-, I tried LTspice, I only found voltage source with two terminals.
How would a single terminal voltage source get simulated in NGSpice?
Single terminal voltages sources are a fiction invented by some simulation software, when you make a single terminal voltage source what you really get is a two terminal voltage source with the hidden terminal connected to ground
I'll add Jonk's comment here as it directly answers the logistics of the practical question, as opposed to the theoretical one.
Jonk wrote:
You can use "v99 vcc 0 15" as a spice card to set up the vcc label as +15 V
relative to ground, for example.Just drop a vcc label anywhere then and it looks like a single terminal voltage source.
It isn't. But it looks like one. –
__________________________________
Background:
Unlike a magnetic monopole, a single terminal voltage source not only does not exist but cannot exist.
This is because voltage IS "potential difference".
Voltage is the "electrical pressure" between two points.
Any and every time you see voltage mentioned it is relative to some reference point, even when this is not explicitly stated. If you have a 9V battery, a 5V USB charger, a 230 VAC mains supply, a 48V solar panel, a .... then the stated voltage is always a voltage relative to some other point. For DC voltages the voltage is usually (but certainly not always) expressed as a positive value relative to some assumed or stated negative value.
For a 9V battery it is +9V relative to the battery's negative terminal.
For a +5V USB supply it is +5V relative to the negative ir ground output.
For a 230 VAC supply it is the voltage relative to the Neutral (and also usually ground) connection.
For a 48V solar panel it is < ... fill in the gap ...>.
If you connect the negative terminal of a 9V battery to a 230 VAC phase wire then the voltage of tghe battery positive terminal is
9 VDC relative to mains phase, or
230 VAC + 9V DC offset relative to mains neutral.
About +500,000 VDC relative to the -500,000 VDC negative conductor in a 1 million volt (+/- 500,000 VDC) undersea power cable*.
About -500,000 VDC relative to the +500,000 VDC negative conductor in a 1 million volt (+/- 500,000 VDC) undersea power cable*.
*In the last two examples the 230 VAC and 9VDC can be safely ignored for most purposes. (A 9V battery with a +500,000 V output voltage is something to see!!! (but not to touch).Both the +500 kV and -500 kV do not change the fact that it is a 9VDC battery or an about 230 VAC source - but the changing point of reference does if you are in contact with the reference point !!! :-).
Without stating the reference point being specified I could claim to have a 9V or 500 kV or - 500 kV source. While this is "stupid" it is no more sensible to call it a 9V source without assuming a relevant reference point.