reference : (see course web site) pspice assignment #2

19
Reference : (see course web site) • PSPICE Assignment #2 1 PSPICE Lecture - AC Circuits PSPICE – AC Circuits Topics to be presented : AC circuits – graphing sinusoidal waveforms using Transient Analysis AC circuits – finding phasor values using AC Sweep Varying frequency with AC Sweep

Upload: melora

Post on 22-Feb-2016

57 views

Category:

Documents


0 download

DESCRIPTION

PSPICE Lecture - AC Circuits. 1. PSPICE – AC Circuits. Reference : (see course web site) PSPICE Assignment #2. Topics to be presented : AC circuits – graphing sinusoidal waveforms using Transient Analysis AC circuits – finding phasor values using AC Sweep - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Reference :  (see course web site) PSPICE  Assignment  #2

Reference: (see course web site)• PSPICE Assignment #2

1PSPICE Lecture - AC Circuits

PSPICE – AC Circuits

Topics to be presented:• AC circuits – graphing sinusoidal waveforms using

Transient Analysis• AC circuits – finding phasor values using AC Sweep• Varying frequency with AC Sweep

Page 2: Reference :  (see course web site) PSPICE  Assignment  #2

AC Analysis in PSPICEThere are two common ways to analyze AC circuits in PSPICE:1) Transient Analysis

• Used for graphing sinusoidal waveforms• Time is varied, to time is on the x-axis of all graphs• Use the sources VSIN and ISIN• Angles referenced to sin( ), not cos( )

2) AC Sweep• Used for calculating phasor voltages, phasor currents, etc (use the same

starting and ending frequency for a single analysis)• Can also be used to vary frequency, so frequency (in Hz) is on the x-axis

of all graphs• Use the sources VAC and IAC • Angles are relative. If you use angles referenced to sin( ), then angles are

referenced to sin( ). If you use angles referenced to cos( ), then angles are referenced to cos( ).

2PSPICE Lecture - AC Circuits

Page 3: Reference :  (see course web site) PSPICE  Assignment  #2

Example - Analyze the circuit below by hand.

3PSPICE Lecture - AC Circuits

i(t). and (t), v(t), vfind Also .I and ,V ,V phasors theFind CRCR

+

50sin(2000t + 30o) V

-

+ VR -

250+

VC

-

1uF

Solution:

V )27.5 00t 26.8sin(10 (t)vV )62.5 00t 42.2sin(10 (t)v

A )62.5 000t 0.169sin(1 i(t)

V 5.2726.8 j159-62.50.169 ZI V

V 62.542.2 25062.50.169 RI V

A 62.50.169 j159 - 2503050

ZV I

j159- )61)(1000(2

j- fC2j-

wCj- Z

Hz 1000 2w f so rad/s, 2000 w

C

R

CC

R

Total

C

E

Phasor circuit:

5030o V

+ VR -

250+

VC

-

1uF+-

I

Page 4: Reference :  (see course web site) PSPICE  Assignment  #2

Example (continued) Use PSPICE to graph v(t) and vC(t) for 3 periods.Solution: Since we want to graph the waveforms, used a transient analysis and

use part VSIN for the source.

1) Create a New Project and draw the circuit in PSPICE. Since a transient analysis will be performed, use part VSIN for the voltage source. Add node labels as well.

4PSPICE Lecture - AC Circuits

Notes: Since v(t) = 50sin(2000t + 30), use the following values:• VOFF – This is the DC value. Use 0V.• VAMPL – This is the peak value of the sinusoid. Use 50V.• FREQ – This is the frequency in Hz. Use 1000Hz.(continued on next slide)

Page 5: Reference :  (see course web site) PSPICE  Assignment  #2

5PSPICE Lecture - AC Circuits

Notes: (continued)• AC – This is the phasor voltage. We will use

VAC instead for phasors. Delete this property.

• PHASE – This is the phase angle in degrees. It does not show by default. Double-click on the part and select Edit Part. The Parts Editor window to the right should appear. Select the property named Phase. Select Display and change it to Name and Value. Close the Parts Editor. Enter 30 degrees for the phase.

• The source below now has the correct values.• The units are not required, but are

recommended.

Page 6: Reference :  (see course web site) PSPICE  Assignment  #2

2) Select PSPICE – New Simulation Profile • Analysis Type: Select Time Domain (Transient) • Run to time: Since T = 1/f = 1/1000 = 1ms, enter 3ms for 3 periods• Select OK.

6PSPICE Lecture - AC Circuits

Page 7: Reference :  (see course web site) PSPICE  Assignment  #2

3) Select PSPICE – Run 4) The graphing window should appear.

• Select Trace – Add Trace• Select V(B) for the source voltage and V(C) for the capacitor voltage• Note that the voltages are a little choppy. This can be fixed by using

more points for the analysis. By default PSPICE uses about 100 points so the time increment is about 3ms/100 = 30us. If we change this to 3us, PSPICE will use 1000 points instead of 100 points. See next slide.

7PSPICE Lecture - AC Circuits

Page 8: Reference :  (see course web site) PSPICE  Assignment  #2

8PSPICE Lecture - AC Circuits

Blank value changed to 3us to use 3ms/3us = 1000 points for smoother graphs

Page 9: Reference :  (see course web site) PSPICE  Assignment  #2

• Select Plot – Label – Text to add labels to each waveform• Select Window – Copy to Clipboard so that you can easily paste the

graph into a Word document without the black background.

9PSPICE Lecture - AC Circuits

Page 10: Reference :  (see course web site) PSPICE  Assignment  #2

Example (continued) Use PSPICE to find the phasors Solution: Since we want to find phasors, use an AC Sweep analysis and use

part VAC for the source.

1) Create a New Project and draw the circuit in PSPICE. Since an AC Sweep will be performed, use part VAC for the voltage source. Add node labels as well.• Note that PSPICE only shows the values of two properties. Double-

click on the part to open the parts editor. Select each property and change Display from Value Only to Name and Value. Also display Name and Value for the property named ACPHASE.

10PSPICE Lecture - AC Circuits

CR V and ,V ,I

Page 11: Reference :  (see course web site) PSPICE  Assignment  #2

11PSPICE Lecture - AC CircuitsNotes: Since v(t) = 50sin(2000t + 30), use the following values:• ACMAG – This is the phasor magnitude. Use 50V.• ACPHASE – This is the phasor phase in degrees. Use 30degrees.• DC – This is the DC value. Use 0V or delete this property.

• Units are not required, but are recommended.

Page 12: Reference :  (see course web site) PSPICE  Assignment  #2

2) Add voltage and current printers• An AC sweep analysis only calculates DC node voltages (typically all 0) by default.

In order to find phasor voltages and currents, we must add printers.• Voltage Printers - must be placed in parallel with the desired component(s)• Current Printers – must be placed in series with the desired component(s)• Polarity – Note the (-) sign on each printer and rotate/flip if necessary for the

correct voltage polarity or current direction.• For both printers set the following properties:

• AC: Yes• MAG: Yes• PHASE: Yes

12PSPICE Lecture - AC Circuits

Use part VPRINT2 for the voltage printer and part IPRINT for the current printer. Both are in the Special library.

Page 13: Reference :  (see course web site) PSPICE  Assignment  #2

3) Select PSPICE – New Simulation Profile • Analysis Type: Select AC Sweep/Noise • AC Sweep Type: Use the same Start Frequency and End Frequency

(1000Hz in this case) for a single analysis. Even though the frequency isn’t actually being varied, a value must still be entered for Points/Decade

• Select OK.

13PSPICE Lecture - AC Circuits

Page 14: Reference :  (see course web site) PSPICE  Assignment  #2

4) Select PSPICE – Run 5) View Results

• The values from the voltage printers should now appear in the .OUT file.• Select PSPICE – View Output File• Note that the voltage printers express the voltages using node voltages• Add text to the Output file to clearly identify all results• A portion of the Output file is shown below:

14PSPICE Lecture - AC Circuits

V 62.4842.18 V so R

A 62.480.1687 I so

V 52.2726.85 V so C

All results agree with the hand calculations!

Page 15: Reference :  (see course web site) PSPICE  Assignment  #2

15PSPICE Lecture - AC Circuits

Example: Use PSPICE to graph total circuit impedance as frequency varies to show that |Z| is minimum at resonance. The circuit below is a series resonant circuit.

6)-f(1E2j- f(0.1)j2 100 Z

fC2j- fLj2 R Z

X R Z

X j R Z

Total

Total

2CL

2Total

CLTotal

X

jXAs frequency increases XL becomes more positive and XC becomes more negative. At the resonant frequency XL and XC cancel leaving a resistive circuit and minimum total impedance (equal to R).

Page 16: Reference :  (see course web site) PSPICE  Assignment  #2

16PSPICE Lecture - AC CircuitsThe resonant frequency is:

Hz 503.3 2

3162.3 2w f

rad/s 3162.3 6)-(0.1)(1E

1 LC1 w

oo

o

Total impedance was calculated below as frequency varies from 100 to 10,000 Hz.

Note that |Z| reaches a minimum at f = 500 Hz (close to the resonant frequency)

We will now graph |Z| vs f in PSPICE to verify this result.

Page 17: Reference :  (see course web site) PSPICE  Assignment  #2

17PSPICE Lecture - AC Circuits1) Create a new project and draw the circuit in PSPICE

• Use part VAC for the source since an AC Sweep analysis will be performed.

• Use any non-zero value for ACMAG and ACPHASE

Page 18: Reference :  (see course web site) PSPICE  Assignment  #2

18PSPICE Lecture - AC Circuits2) Create a new Simulation Profile

• Let frequency vary from 100Hz to 10000Hz• Frequency is typically shown on a log scale. • Select 50 points/decade (for a total of 100 points in this case)

Page 19: Reference :  (see course web site) PSPICE  Assignment  #2

19PSPICE Lecture - AC Circuits3) Analyze the circuit - Select PSPICE – Run4) Graph the results (PSPICE’s graphing window should open automatically)

• Select Trace – Add Trace and enter V(A)/I(R1) for the total impedance• Use a cursor to mark the minimum point on the curve• Add text• The results are correct!