Superposition principle verification in MATLAB with DC and AC sources

5 replies · 4K views · last reply
Bloopy
Messages
13
Reaction score
1

Homework Statement



Verify Superposition Principle using Matlab, given a DC source of 100V, an AC source of 50V, 60Hz and three resistances, R1=10 ohms, R2=20 ohms and R3=15 ohms.

I created the circuit below and ran the program. Result:

Simulink schematic of a circuit with an AC voltage source feeding resistors R1, R2 and R3, plus a DC voltage source on the right, with RMS, voltage and current measurement blocks and displays showing 35.36, 100 and 1.538.


Homework Equations



None, just running the program.

The Attempt at a Solution



Now, the Principle of Superposition states the total current in any part of a linear circuit equals the algebraic sum of the currents produced by each source separately. I am trying to verify the current flowing through R3 = 15 ohms resistance.

  1. I short circuit the DC voltage source and run the program. Result:

    Simulink schematic of a circuit with an AC voltage source, resistors R7, R8 and R9, a voltage measurement block with RMS3 and Display6 showing 35.36, and a current measurement block with RMS2 and Display11 showing 1.088.
  2. I then short circuit the AC voltage source and run the program. Result:

    Simulink schematic of a circuit with resistors R4, R5 and R6, a DC Voltage Source1, Current Measurement1 reading 1.538 on Display7, and Voltage Measurement2 reading 100 on Display6.


    As clearly can be seen, the Superposition Principle is not verified. I am unable to reason where the discrepancy is.
 
Attachments
  • Simulink schematic of a circuit with an AC voltage source feeding resistors R1, R2 and R3, plus a DC voltage source on the right, with RMS, voltage and current measurement blocks and displays showing 35.36, 100 and 1.538.
    1.JPG
    18.2 KB · Views: 1,454
  • Simulink schematic of a circuit with an AC voltage source, resistors R7, R8 and R9, a voltage measurement block with RMS3 and Display6 showing 35.36, and a current measurement block with RMS2 and Display11 showing 1.088.
    2.JPG
    19.1 KB · Views: 1,193
  • Simulink schematic of a circuit with resistors R4, R5 and R6, a DC Voltage Source1, Current Measurement1 reading 1.538 on Display7, and Voltage Measurement2 reading 100 on Display6.
    3.JPG
    16.5 KB · Views: 1,171
Last edited:
I'm not the best with circuits, but I don't understand your result when you short-circuit the DC source. How can you measure 94.4 V in that circuit?
 
DrClaude said:
I'm not the best with circuits, but I don't understand your result when you short-circuit the DC source. How can you measure 94.4 V in that circuit?
Yeah, I altered the step-size to get the accurate value of RMS voltage. Edited the question.
 
Bloopy said:
I created the circuit below and ran the program. Result:

Simulink circuit diagram with an AC voltage source and a DC voltage source feeding resistors R1, R2 and R3, with Voltage Measurement1, RMS1 and Display showing 35.36, Current Measurement feeding Display3 showing 1.538, and Voltage Measurement feeding Display2 showing 100.

The Current Measurement block is processing a current waveform with both AC and DC components. The block outputs the instantaneous current Not sure how this block will represent a static value of an AC current. What happens if you use an RMS block right before Display3?
 
Attachments
  • Simulink circuit diagram with an AC voltage source and a DC voltage source feeding resistors R1, R2 and R3, with Voltage Measurement1, RMS1 and Display showing 35.36, Current Measurement feeding Display3 showing 1.538, and Voltage Measurement feeding Display2 showing 100.
    1-jpg.jpg
    18.2 KB · Views: 821
lewando said:
The Current Measurement block is processing a current waveform with both AC and DC components. The block outputs the instantaneous current Not sure how this block will represent a static value of an AC current. What happens if you use an RMS block right before Display3?
Simulink circuit diagram with an AC voltage source and a DC voltage source feeding resistors R1, R2 and R3, with voltage and current measurement blocks and RMS and display blocks showing 35.36, 100 and 1.884.


Sorry for the delayed replies, I am in college for 12-14 hours during the day.
 
Attachments
  • Simulink circuit diagram with an AC voltage source and a DC voltage source feeding resistors R1, R2 and R3, with voltage and current measurement blocks and RMS and display blocks showing 35.36, 100 and 1.884.
    Capture.JPG
    18.3 KB · Views: 911
So what is now displayed is the RMS value of the combined AC and DC currents. You should be able to verify this result by using your single-source results and a googleable formula for determining the RMS value of an AC signal with a DC offset.