cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Translate the entire conversation x

Mathcad Community Challenge January 2025: AC Circuits

DaveMartin
16-Pearl

Mathcad Community Challenge January 2025: AC Circuits

Happy New Year! This month's challenge is based around electrical engineering, specifically an AC circuit.

 

Calculation Challenge

An AC electrical circuit consists of the following components connected in series:
• A 120 Volt 60 Hertz power source
• A 50 Ohm resistor
• A 0.20 Henry inductor
• A 10 micro Farad capacitor

 

Calculate the following for this circuit:
• The reactances of the inductor and capacitor
• The impedance in the circuit
• The current in the circuit
• The power dissipated in the circuit
• The phase angle of the circuit

 

Graphing Challenge

Using an XY Plot or a Chart Component, graph the following in the same plot or chart over a minimum of 2 cycles:
• The current in the circuit.
• The voltage in the circuit.
• The voltage drop across the resistor.
• The voltage drop across the inductor.
• The voltage drop across the capacitor.

 

You can use the values from the calculation challenge, or you can use generic values. The point is to communicate that the current, total voltage, and voltage drop across the resistor are in phase; that the voltage drop across the inductor leads the current by a quarter cycle; and that the voltage drop across the capacitor lags the current by a quarter cycle. You may want to use 2 y-axes, one for current and one for voltage.

 

Mathcad Prime 10 Challenge

Using the advanced input controls like sliders, buttons, check boxes, etc., allow people to change one or more values in the Calculation Challenge to see how that affects the calculated values.

 

Find the Mathcad Community Challenge Guidelines here!

 

Disclaimer: I am not an electrical engineer. I apologize in advance if any of my terminology offends your sensibilities.

 

 

 

Dave Martin - dmartin@creowindchill.com - https://www.mcaeconsulting.com
21 REPLIES 21

Prime 10.01

image.png

LucMeekes
23-Emerald IV
(To:DaveMartin)

Prime 4 express:

LucMeekes_0-1735901727258.png

Luc

I'm no electrical engineer, but here's how I tackled the challenge:

Jan2025.png

Just noticed that my calculation of the cumulative average, used in the calculation of dissipated power, should have a divisor of k+1, not just k.  This is because Mathcad's origin is 0 not 1.  However, the correction makes no significant difference!

Alan

1. Add phase shift of sine wave.

2. Add transient responces of 3 waveforms, with all 120VRMS.

3. Add rectifier radio bottuns.

 

image.pngimage.png

ttokoro
21-Topaz I
(To:ttokoro)

Transient responce of sine wave with phi and rectifier can not calculate by Laplace Transform method. So, need more Mathcad  skill to solve it.image.png

LucMeekes
23-Emerald IV
(To:ttokoro)

Can be done in express...:

LucMeekes_0-1737322751213.png

Luc

ttokoro
21-Topaz I
(To:LucMeekes)

Thanks exsellent answer. How about cosine or rectangular waves, that not start from 0 values.

image.png

LucMeekes
23-Emerald IV
(To:ttokoro)

On my sheet, last page, change the input signal v.r to you liking, and its Laplace transform v.s.

Then see what happens.

 

Success!

Luc

ttokoro
21-Topaz I
(To:LucMeekes)

In your last page vs is fixed to sine wave. So nothing change for output signals, except an input voltage waveform.

image.png

LucMeekes
23-Emerald IV
(To:ttokoro)

I said to change the signal AND  its Laplace transform...

Then a square wave function might be:

LucMeekes_0-1737410752766.png

Its Laplace transform (from literature) is:

LucMeekes_1-1737410789607.png

And  the waveform results are:

LucMeekes_2-1737410819666.png

Not too bad, as far as the low frequency signals go (circuit current, resistor and capacitor voltage). But the inductor voltage goes way off after the first half period. That's due to the invlaplace function. See how it transforms the square wave back:

LucMeekes_3-1737410990547.png

LucMeekes_4-1737410998407.png

LucMeekes_6-1737411153861.png

 

Success!

Luc

ttokoro
21-Topaz I
(To:LucMeekes)

I want to say the noize after the half cycle, such as typically vL, as you sayed.

One of the confusing arise from s. It is sometimes Laplace's and unit s. But Mathcad treat it in your sheet and show the plot.
So, this is not the reason of noize. The Laplace transform treatment of vL=L*di/dt sometimes includes delta(t), the impulse function. Mathcad can not plot delta(t) and plot result may faild. Using unit step function to make rectangular wave cycle may be 2 cycle is OK. More than 4 cycles Mathcad can not show the results because it is to long to show. Also using long time to calculate.

Therefore, only using Laplace transform is limited to use it. We need another method to solve it. 

image.pngimage.png

The resulst of cosine half rectifiered wave and rectangular waves are must be below.

image.pngimage.pngimage.png

Ver. 3 can chage each of R, L, C to short it.  Applied voltage  has angle Z. Therefore, RL circuit can start no transient responce.

You can see RC, RLC or LC circuit's transient responces.

image.pngimage.png

Version 4. Solved by using the odesolve of Prime 10.0.1.

image.png

Thank you for your iterations, Tokoro-san!

And for everyone else, the challenge submission period ends in one week (end of January 31), so if you were thinking about giving it a try but haven't yet, now's the time!

I manage the Creo and PTC Mathcad YouTube channels for PTC, as well as all PTC Mathcad marketing in general.

Today's the last day for submitting for the write-up!

 

(I'm also very curious on how Dave Martin will discuss Ttokoro's 8 versions...)

I manage the Creo and PTC Mathcad YouTube channels for PTC, as well as all PTC Mathcad marketing in general.

Version 5. Solved by using the convolution integral of Prime 10.0.1. 

ttokoro_0-1737778188268.png

image.png

Version 6. Solved by using the convolution * of Prime 10.0.1.  Sampling 1000 data for one cycle's period,T. 

 

image.png

image.png

Version 7. Solved by using the Fourier series to make 120 V AC wavefroms  of Prime 10.0.1. 

 

image.png

Version 8. Solved by using the Fourier series AC wavefroms on and off responces of Prime 10.0.1. 

Most interesting points of this monthes challange are how to treat impulse function and time shift of the plots for on and off of the applied voltage. Therefore, 2 versions with ...1.mcdx sheets have a hidden area to do them. Hope electrical engineers or LTI system engineers to try it.

 

image.png

Hey Dave,

Thanks for writing the solution blog!

https://www.mathcad.com/en/blogs/community-challenge-ac-circuit

I manage the Creo and PTC Mathcad YouTube channels for PTC, as well as all PTC Mathcad marketing in general.
Announcements


Top Tags