Power Lab Report 01
Power Lab Report 01
Simulation Model:
Scripts:
2
Fig 3. Script in MATLAB for RLC Circuit Simulation and FFT analysis.
Simulation Results: After running the simulation and using the scripts shown in
Figures 2 and 3, the following results were obtained.
3
Fig 4. Results for RL Circuit Simulation.
4
Fig 6. Results for RLC Circuit Simulation and FFT.
The graphs illustrate the transient response of RL and RC circuits when connected
to a DC source. In the RL circuit (Figure 4), the inductor initially resists changes in
current, causing the voltage across it to drop exponentially while the current
increases over time. Conversely, in the RC circuit (Figure 5), the capacitor initially
acts as a short circuit, drawing maximum current, while the voltage across it
gradually builds up until reaching a steady-state value. These behaviors align with
the expected theoretical responses of inductors and capacitors in transient
conditions.
Figure 6 presents the results of the RLC circuit simulation, including voltage,
current, and frequency domain analysis. The first two plots show the time domain
response of voltage and current, displaying oscillatory behavior. These oscillations
occur due to the energy exchange between the inductor and the capacitor, with a
gradual decay in amplitude due to resistive losses.
The third graph in Figure 6 represents the frequency domain analysis of the RLC
circuit using the Fast Fourier Transform. This plot shows the magnitude of different
frequency components present in the oscillatory response of the circuit.
The peak observed around 1.59 Hz corresponds to the resonant frequency of the
circuit, confirming that the oscillations in the time-domain response are primarily
5
dominated by this frequency. This result aligns with the theoretical resonance
frequency calculated using:
𝟏
𝒇=
𝟐𝛑√𝑳𝑪
where L=100 mH and C=100 mF, yielding a resonance frequency of approximately
1.59 Hz.
Calculations:
• Time constant for RL circuit:
𝑳 𝟏𝟎𝟎 𝒎𝑯
𝝉= = = 𝟎. 𝟏 𝒔𝒆𝒄
𝑹 𝟏𝜴
• Time constant for RC circuit:
𝝉 = 𝑹 ⋅ 𝑪 = 𝟏𝜴 × 𝟏𝟎𝟎 𝒎𝑭 = 𝟎. 𝟏 𝒔𝒆𝒄
• Resonance frequency for LC circuit:
𝟏 𝟏
𝒇= = ≈ 𝟏. 𝟓𝟗 𝑯𝒛
𝟐𝛑√𝑳𝑪 𝟐𝛑√(𝟎. 𝟏)(𝟎. 𝟏)
RT-Lab Simulation:
The model was exported to RT-LAB, as shown in Figure 7, enabling real-time
simulation and testing. Measurements were then performed using an oscilloscope,
as illustrated in Figure 8 for the RL circuit and Figure 9 for the RC circuit. These
measurements validated the simulation results obtained in Simulink, where the
yellow signal is the voltage and the blue signal represents the current.
6
Fig 7. Simulation in RT-Lab.
RT-Lab Results: