Total Power consumed by a circuit or subcircuit

Thread Starter

santlal

Joined Jan 14, 2020
22
I want to calculate the total power consumed by a circuit whose input and output ports are given. How do I go about it?
I attached a pdf file to make my question clear.

Thanking you.
 

Attachments

Thread Starter

santlal

Joined Jan 14, 2020
22
For example, below is a circuit netlist written in ltspice simulator. We need to know the total power consumed by the circuit when we perform transient analysis for 2m second.

*Energy
.model SW SW(Ron=1m Roff=100Meg)
.lib opamp.sub
v2 test 0 pulse(-5 5 0 1n 1n 10u 1.01m)
Sp x q test 0 SW
Sp1 y q test 0 SW
v3 y 0 2
v1 x 0 5
Xopamp1 q 0 op opamp Aol=100Meg GBW=1000Meg
Rf1 op q 100
.tran 2m
.end
 

Irving

Joined Jan 30, 2016
4,999
Question makes no sense, but logically power consumed by any circuit is:

\( P = \sum_{i=1}^{m} O_i - \sum_{j=1}^{n} I_j \)​

where \( I_j\) and \(O_i \) are the powers related to each input or output. Obviously for AC phase or power factor may need to be taken into account and the result may be frequency dependant.
 

Irving

Joined Jan 30, 2016
4,999
As to the Spice netlist - power consumption only applies to real-world components - your opamp has no power supply so the whole concept of power consumption is meaningless
 

crutschow

Joined Mar 14, 2008
38,324
As Irving noted, the op amp is an ideal model that consumes no power.
You need an op amp model that has power consumption from a power supply.
 
Top