Circuit Simulator
This documentation outlines the test cases for the circuit simulator of our project. To ensure that all components of the simulator function correctly, it is important to place elements and connections in different and arbitrary orders. This helps identify potential errors or unexpected behavior that may not occur with standardized workflows. The test cases therefore cover various configuration possibilities to ensure a comprehensive validation of the system. Also it is important to test all test cases with and without the GND Element such that always the correct results are obtained.
DC Simulation
Voltage Divider Circuit
Component |
Value |
Description |
---|---|---|
Voltage Source |
100 V |
DC Voltage Source |
Resistor R1 |
200 Ohm |
|
Resistor R2 |
200 Ohm |
|
GND |
Ground |
|
Voltage Meter |
Voltage Meter |
Solver Properties
Simulation Type |
Element |
From |
To |
Step |
---|---|---|---|---|
DC |
Voltage Source |
0 |
100 |
10 |
Current Divider Circuit
Component |
Value |
Description |
---|---|---|
Voltage Source |
100 V |
DC Voltage Source |
Resistor R1 |
200 Ohm |
|
Resistor R2 |
200 Ohm |
|
GND |
Ground |
|
Voltage Meter |
Voltage Meter |
Solver Properties
Simulation Type |
Element |
From |
To |
Step |
---|---|---|---|---|
DC |
Voltage Source |
0 |
100 |
10 |
AC Simulation
Series RLC Circuit
Component |
Value |
Description |
---|---|---|
Voltage Source |
1V Amplitude |
AC Voltage Source |
Resistor R1 |
10 Ohm |
|
Inductor |
100 mH |
|
Capacitor |
10 uF |
|
GND |
Ground |
|
Voltage Meter |
Voltage Meter |
Solver Properties
Simulation Type |
Variation |
Number of Points |
Starting Frequency |
Final Frequency |
---|---|---|---|---|
AC |
linear |
100 |
100 |
500 |
Parallel RLC Circuit
Component |
Value |
Description |
---|---|---|
Voltage Source |
1V Amplitude |
AC Voltage Source |
Resistor R1 |
10 Ohm |
|
Inductor |
100 mH |
|
Capacitor |
10 uF |
|
GND |
Ground |
|
Voltage Meter |
Voltage Meter |
Solver Properties
Simulation Type |
Variation |
Number of Points |
Starting Frequency |
Final Frequency |
---|---|---|---|---|
AC |
linear |
100 |
100 |
500 |
Transient Simulation
Rectifier Circuit
Component |
Value |
Description |
---|---|---|
Voltage Source |
Pulse(0 10 0 1 1 5 10) |
Transient Voltage Source |
Resistor R1 |
1000 Ohm |
|
Diode |
D1N4148 D(IS=2.52E-9,RS=0.01,N=1.5,Vfwd=0.7) |
|
Capacitor |
100 u |
|
GND |
Ground |
|
Voltage Meter |
Voltage Meter |
Solver Properties
Simulation Type |
Duration |
Time Steps |
---|---|---|
Tran |
40 |
1 |
The graph shows the output voltage of a rectifier circuit, which converts an AC input signal into a DC output signal. The rectifier circuit consists of a diode, a resistor, and a capacitor. The diode allows current to flow in only one direction, resulting in a pulsating DC output signal that is smoothed by the capacitor, providing a more stable voltage level.