0
0
Simulinkdata~10 mins

AC source and load modeling in Simulink - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - AC source and load modeling
Define AC Source Parameters
Generate AC Voltage Signal
Connect Load Model
Calculate Current and Power
Analyze Output Waveforms
End
This flow shows how an AC source is defined, connected to a load, and how current and power are calculated and analyzed.
Execution Sample
Simulink
ac_voltage = Vm * sin(2 * pi * f * t + phase)
current = ac_voltage / load_impedance
power = ac_voltage * current
plot(t, ac_voltage, t, current)
This code models an AC voltage source, calculates current through a load, computes power, and plots voltage and current over time.
Execution Table
StepTime (t)AC Voltage (V)Load Impedance (Ohm)Current (A)Power (W)
100.0100.00.0
20.0016.28100.6283.94
30.00212.35101.23515.25
40.00317.32101.73230.0
50.00420.0102.040.0
60.00520.0102.040.0
70.00617.32101.73230.0
80.00712.35101.23515.25
90.0086.28100.6283.94
100.0090.0100.00.0
110.01-6.2810-0.6283.94
120.011-12.3510-1.23515.25
130.012-17.3210-1.73230.0
140.013-20.010-2.040.0
150.014-20.010-2.040.0
160.015-17.3210-1.73230.0
170.016-12.3510-1.23515.25
180.017-6.2810-0.6283.94
190.0180.0100.00.0
200.0196.28100.6283.94
Exit0.020.0100.00.0
💡 Simulation time reached 0.02 seconds, completing one full AC cycle.
Variable Tracker
VariableStartAfter 1After 2After 3After 4After 5After 6After 7After 8After 9After 10Final
ac_voltage (V)0.06.2812.3517.3220.020.017.3212.356.280.00.00.0
current (A)0.00.6281.2351.7322.02.01.7321.2350.6280.00.00.0
power (W)0.03.9415.2530.040.040.030.015.253.940.00.00.0
Key Moments - 2 Insights
Why does the current have the same shape as the voltage but scaled down?
Because current is voltage divided by load impedance (Ohm's law), so it follows the voltage waveform shape but with smaller amplitude as shown in execution_table rows 2-10.
Why is power always positive even when voltage and current are negative?
Power is voltage times current; negative times negative gives positive power, indicating energy flow direction, as seen in execution_table rows 11-18.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table at step 5, what is the current value?
A2.0 A
B1.732 A
C0.628 A
D0.0 A
💡 Hint
Check the 'Current (A)' column at step 5 in the execution_table.
At which step does the AC voltage first become negative?
AStep 10
BStep 11
CStep 9
DStep 12
💡 Hint
Look at the 'AC Voltage (V)' column in execution_table rows 10-12.
If the load impedance doubles, how does the current at step 5 change?
AIt doubles
BIt stays the same
CIt halves
DIt becomes zero
💡 Hint
Current = Voltage / Load Impedance; see variable_tracker for current changes.
Concept Snapshot
AC Source and Load Modeling:
- AC voltage: V = Vm * sin(2πft + phase)
- Current: I = V / Load Impedance
- Power: P = V * I
- Load affects current amplitude
- Power positive when voltage and current signs match
Full Transcript
This visual execution traces AC source and load modeling in Simulink. We start by defining AC source parameters, generating the voltage waveform, connecting a load, calculating current and power, and analyzing waveforms. The execution table shows voltage, current, and power values at each time step over one AC cycle. Current follows voltage shape scaled by load impedance. Power remains positive even when voltage and current are negative due to multiplication of two negatives. Key moments clarify why current waveform matches voltage shape and why power is always positive. The quiz tests understanding of current values, voltage sign changes, and effect of load impedance on current. The snapshot summarizes formulas and key points for AC source and load modeling.