MATLAB: Verification of Superposition Principle

AI Thread Summary
The discussion focuses on verifying the Superposition Principle in a MATLAB simulation involving a 100V DC source and a 50V AC source with three resistances. The user attempts to measure the current through a 15-ohm resistor by short-circuiting each voltage source separately but finds discrepancies in the results, particularly a 94.4V measurement when short-circuiting the DC source. Suggestions include adjusting the step-size for accurate RMS voltage values and using an RMS block to better represent the combined AC and DC current outputs. The final output reflects the RMS value of the combined currents, which can be verified using established formulas for AC signals with DC offsets. The conversation highlights the challenges in circuit analysis and the importance of proper measurement techniques in simulations.
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:

1.JPG


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:

    2.JPG
  2. I then short circuit the AC voltage source and run the program. Result:

    3.JPG


    As clearly can be seen, the Superposition Principle is not verified. I am unable to reason where the discrepancy is.
 

Attachments

  • 1.JPG
    1.JPG
    18.2 KB · Views: 1,397
  • 2.JPG
    2.JPG
    19.1 KB · Views: 1,116
  • 3.JPG
    3.JPG
    16.5 KB · Views: 1,105
Last edited:
Physics news on Phys.org
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:

1-jpg.jpg

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

  • 1-jpg.jpg
    1-jpg.jpg
    18.2 KB · Views: 756
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?
Capture.JPG


Sorry for the delayed replies, I am in college for 12-14 hours during the day.
 

Attachments

  • Capture.JPG
    Capture.JPG
    18.3 KB · Views: 856
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.
 
Thread 'Struggling to make relation between elastic force and height'
Hello guys this is what I tried so far. I used the UTS to calculate the force it needs when the rope tears. My idea was to make a relationship/ function that would give me the force depending on height. Yeah i couldnt find a way to solve it. I also thought about how I could use hooks law (how it was given to me in my script) with the thought of instead of having two part of a rope id have one singular rope from the middle to the top where I could find the difference in height. But the...
Thread 'Voltmeter readings for this circuit with switches'
TL;DR Summary: I would like to know the voltmeter readings on the two resistors separately in the picture in the following cases , When one of the keys is closed When both of them are opened (Knowing that the battery has negligible internal resistance) My thoughts for the first case , one of them must be 12 volt while the other is 0 The second case we'll I think both voltmeter readings should be 12 volt since they are both parallel to the battery and they involve the key within what the...
Back
Top