Hello,
i have this circuit that i did with LTspice, a DC buck voltage convertor. When I did the simulation, one of the traces on my plot shows a math function that is not producing the right #s and i can't figure out why. See Bellow. The picture shows the current coming out of V2, the green part.
on the bottom right, the equation for V is the integral of the (green) current thru V2, summed over a Δt of 22u seconds, divided by 22u. So the current thru the resistor (the top trace) is supposed to be equal to the instantaneous average of the current through V2.
Therefore the top trace is supposed to be parallel with the green one underneath. And at the beginning, it is. But the deviation looks very linear, like there's some kind of bias goin on in B1. I have zoomed in systematically at each 10ms interval and compared the average of the two traces. the top one is definitely deviating and has the wrong slope. anyone know what the problem could be?
i have this circuit that i did with LTspice, a DC buck voltage convertor. When I did the simulation, one of the traces on my plot shows a math function that is not producing the right #s and i can't figure out why. See Bellow. The picture shows the current coming out of V2, the green part.
on the bottom right, the equation for V is the integral of the (green) current thru V2, summed over a Δt of 22u seconds, divided by 22u. So the current thru the resistor (the top trace) is supposed to be equal to the instantaneous average of the current through V2.
Therefore the top trace is supposed to be parallel with the green one underneath. And at the beginning, it is. But the deviation looks very linear, like there's some kind of bias goin on in B1. I have zoomed in systematically at each 10ms interval and compared the average of the two traces. the top one is definitely deviating and has the wrong slope. anyone know what the problem could be?