This program Calculates the Voltage variation V(t)
with respect to time across Capacitor in Series connected RLC
circuits and print out all found values in .csv
file
-
Hi Guys 🙋♂️, This C program use user inputs to calculate :
V(t)
at any time given with time stepd(t)
until the code reach the specefied runtimet
by the user
-
I wrote this code for my university side project and thought it may be useful to someone out there.
-
The code print out a list
V(t)
values next ot the time of that certian value then stores all values in a.csv
file , the user can use this values to print out a simulation or just simply use the grapg tool inExcel
.
R
Value of Equavvilent the ResistorC
Value of the CapacitorL
Value of the InductorV(0)
Voltage att
< 0I(0)
Current att
< 0V(∞)
Voltage att
> 0d(t)
Code run timet
Time step
Then dpending on the respond of the circuit the code will excute one of the folllowing cases : >
S1
,S2
A1
,A2
--> roots of the EquationV(t)
A1
,A2
--> roots of the EquationV(t)
Wd
A1
,A2
--> roots of the EquationV(t)
This browser does not support PDFs. You can download the PDF to view it: Download PDF.