Node Voltage Method Example 11 - (Trick: How to avoid supernode with good choice of ground)

preview_player
Показать описание
This video shows how a good choice of a ground node can sometimes avoid having to deal with a supernode when applying node voltage method to a circuit containing a dependent voltage source. The circuit equations are solved using Mathematica. It also shows how to verify the solution using PSPICE and LTSPICE. The PySpice (Python) code to simulate the circuit is given in the comments section below.

The video has the following chapters:
(00:00) [1] Setting up the problem
(01:27) [2] Good choice of ground
(05:40) [3] Mathematica solution
(06:59) [5] PSPICE solution
(07:20) [6] LTSPICE solution
Рекомендации по теме
Комментарии
Автор

# Pyspice (Python) code to simulate the circuit in the video is below.


import PySpice.Logging.Logging as Logging
logger = Logging.setup_logging()

from PySpice.Spice.Netlist import Circuit
from PySpice.Unit import *

circuit = Circuit('Node Voltage Method Example 11')

circuit.H(1, 3, 4, 'Vtest', 6)

simulator = circuit.simulator(temperature=25, nominal_temperature=25)
analysis = simulator.operating_point()

for node in analysis.nodes.values():
print('Node {}: {:4.1f} V'.format(str(node), float(node)))

for node in analysis.branches.values():
print('Node {}: {:5.2f} A'.format(str(node), float(node)))


electriccircuits