= { } / i(0) vS(0) vC(0) R – = vR(0) i(0) R = = i(0) = pS(0) vS(0) i(0) pR(0) vR(0) pC(0) vC(0) i(0) = 0 = 0 = 0 uS(0) uR(0) uC(0) Values at all later times are found by implementing the routine in the order shown For accurate results the time increment should be chosen so t that << where is the capacitive time constant. t R C R C MATHLAB FILE FOR SERIES RC CIRCUIT %m260ah.m %1 feb 01 %numerical analysis of an RC circuit tic R = 500; C = 1e-6; tau = R*C; %time constnat dt = 1e-5; %time increment dt << RC; %construction of a rectangular pulse
i(0) = { vS(0) – vC(0) } / R vR(0) = i(0) R pS(0) = vS(0) i(0) pR(0) = vR(0) i(0) pC(0) = vC(0) i(0) uS(0) = 0 uR(0) = 0 uC(0) = 0 Values at all later times are found by implementing the routine in the order shown For accurate results the time increment t should be chosen so that t << R C where R C is the capacitive time constant. MATHLAB FILE FOR SERIES RC CIRCUIT %m260ah.m %1 feb 01 %numerical analysis of an RC circuit tic R = 500; C = 1e-6; tau = R*C; %time constnat dt = 1e-5; %time increment dt << RC; %construction of a rectangular pulse
CN02.docx