Electrical power is the rate at which energy crosses an element. A resistor converts electrical energy into modeled internal energy or heat, but a voltage source can supply or absorb energy depending on its operating point. The sign is meaningful only after voltage polarity and current reference direction are defined together.
p = vi from those same signed values, never from separately displayed magnitudes. Emit a per-element power table and a whole-network residual at every solved state. Integrate power over time with timestamps when a transient model needs energy rather than instantaneous transfer rate.The three resistor expressions are equivalent only for an ideal resistor with compatible values: P = VI = I²R = V²/R. Use each as a targeted check. With fixed resistance, doubling current must quadruple dissipation. With fixed voltage, doubling resistance halves dissipation. A negative result from I²R for positive R is not “a source mode”; it is an inconsistent input or bug. A negative VI can be valid under the passive convention and means the element is delivering power rather than absorbing it.
In a static circuit, the residual is the sum of every branch’s signed power. A resistor may absorb +12 W while a source reports −12 W; both signs are correct if their voltage/current references follow the same convention. In a transient circuit, add stored capacitor and inductor energy changes and boundary/source transfer over the same interval. Sampling at different timestamps or mixing one branch’s RMS quantity with another branch’s instantaneous quantity invalidates the ledger.
Numerical power balance is a debugging instrument, not a proof that every component law is physical. A solver can satisfy an algebraic balance while using the wrong resistance or an unrealistic source. Pair the residual with component-law checks, units, source metadata, and an analytic case. If a model intentionally includes an untracked loss term, name it; do not hide it in a residual.
Prediction: Doubling current quadruples ideal resistor power at fixed resistance, while a source and resistor have opposite signed roles in a passive-sign-convention ledger.
Choose a resistor current reference and voltage polarity. Calculate its power at I and 2I. Add an ideal source that supplies the same magnitude, assign its reference directions, and verify the two signed powers sum to zero. For a transient trace, integrate source and resistor power over one named interval and compare with the change in stored energy.Use signed power from the solver’s own voltage/current references, then maintain instantaneous and time-integrated energy ledgers. Balance residuals expose sign, topology, timestamp, and transfer-accounting bugs, but must be paired with component-law checks.
VI mean under the passive sign convention?Treat the lesson as a small function before treating it as a fact to memorize. Give every value a unit, keep only the state needed for the next step, and make the output easy to inspect.
\[\text{observable output} = f(\text{inputs},\,\text{state})\]For Power Dissipation, write down the quantities you can control, the values your program must retain, and the result a reader could inspect. In Currents and Circuits, the useful program is not the drawing: it is the smallest explicit model that makes a prediction you can test.
Prediction: changing one declared input while holding the others fixed should change only the outputs that the model connects to that input. Choose one input, predict the direction of change, then check a limiting case such as zero, a symmetric arrangement, or a familiar low-speed or small-change approximation.
This lesson is a teaching model, not a complete simulator. Before using it outside the stated question, check which interactions, scales, uncertainties, boundary conditions, and measurement limits it leaves out.
Treat Power Dissipation as a contract: named inputs and units enter a rule, the rule produces an observable result, and a known limit or invariant checks whether the implementation deserves trust.
Account for signed element power and verify whole-network electrical energy balance.