Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
/ rlc-simulator Public archive

A simulation of an RLC (resistor-coil-capacitor) circuit made in Python for the physics laboratory.

License

Notifications You must be signed in to change notification settings

lukapopovici/rlc-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentatia in limba romana poate fi gasita aici.

RLC Simulator

This is the code for an RLC circuit simulator. The program renders an interactive representation of an RLC circuit with options to change the value of the components, render the graph of the voltage across the capacitor, and get the value of certain variables.

Requirements

The only requirements for compiling the main executable of the program and running it are pyinstaller and any Windows installation above Vista.

Compilation

To compile it, you simply need to run the "compile.bat" script with administrator privileges.

Usage

To start using the program, open circuit.exe within the root folder of the program.

Checking the value of a component

To check the value of a component, simply click on the corresponding image on the circuit, and the value, along with the unit it's measured in, will be displayed on top.

clip1.mp4

Modifying the value of a component

To modify the value of a component, click on the "Valori RLC" button on the bottom-left of the window. This will open a menu as a parallel process that allows you to edit the value of the desired component. Simply change the number next to its name and then click on "START!". Floating-point numbers are allowed.

clip2.mp4

Rendering the voltage graph

To render the graph of the voltage across the capacitor, press the button on the middle-bottom of the window. This action triggers the rendering of the capacitor's voltage function, specifically for the initial 300 nanoseconds of the circuit's operation.

clip3.mp4

Getting circuit variables

On the bottom-right corner of the window, you can press the "Calcule" button to get the value of a variable specific to the circuit. Simply select its name from the menu that will pop up, then click on the "Calculeaza" button. The value will be printed on the top of the main window.

clip4.mp4

Use Case

image

This program is meant to be used within my University's physics lab during the study of the RLC circuit. Outside of this, it has little practicality.

About

A simulation of an RLC (resistor-coil-capacitor) circuit made in Python for the physics laboratory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published