Skip to content

This prtogram Calculates the voltage variation with respect to time across capacitor in Series connected RLC circuits

License

Notifications You must be signed in to change notification settings

iboSaber/series-RLC-circuits-voltage-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Series-RLC-circuits-voltage-Calculator

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

Resistor Calculator

  • Hi Guys 🙋‍♂️, This C program use user inputs to calculate :

    V(t) at any time given with time step d(t) until the code reach the specefied runtime t 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 in Excel.

The program will do the following

Ask the User to input

  • R Value of Equavvilent the Resistor
  • C Value of the Capacitor
  • L Value of the Inductor
  • V(0) Voltage at t < 0
  • I(0) Current at t < 0
  • V(∞) Voltage at t > 0
  • d(t) Code run time
  • t Time step

Calculates

  • Alfa
  • W0
  • Value of dv/dt using Current on capacitor law





Then dpending on the respond of the circuit the code will excute one of the folllowing cases : >


Case 1 Overdapmed Law :


  • S1, S2
  • A1, A2 --> roots of the Equation
  • V(t)

Case 2 Criticaly Dapmed Law :


  • A1, A2 --> roots of the Equation
  • V(t)

Case 3 Under Dapmed Law :


  • Wd
  • A1, A2 --> roots of the Equation
  • V(t)

Refrence Circuit :

This browser does not support PDFs. You can download the PDF to view it: Download PDF.

Flowchart

Akış Şeması 2 drawio

Simulation obtained from the code excution













































About

This prtogram Calculates the voltage variation with respect to time across capacitor in Series connected RLC circuits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages