0% found this document useful (0 votes)
128 views4 pages

Code For R Load: VSWITCH (RON 0.01 ROFF 10E+5 VON 0.1V VOFF 0V)

This document contains code for an R load simulation in SPICE. It simulates a circuit with a sinusoidal voltage source, two pulse voltage sources, a resistor, capacitor, inductor, and two SCRs. The code runs a transient analysis from 10us to 33.33ms and outputs the Fourier analysis of the voltage across the resistor and current through the voltage source, both at 60Hz.

Uploaded by

pavan_eluru
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
128 views4 pages

Code For R Load: VSWITCH (RON 0.01 ROFF 10E+5 VON 0.1V VOFF 0V)

This document contains code for an R load simulation in SPICE. It simulates a circuit with a sinusoidal voltage source, two pulse voltage sources, a resistor, capacitor, inductor, and two SCRs. The code runs a transient analysis from 10us to 33.33ms and outputs the Fourier analysis of the voltage across the resistor and current through the voltage source, both at 60Hz.

Uploaded by

pavan_eluru
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

CODE FOR R LOAD

VS 1 0 SIN (0V 169.7V 60HZ)

VG1 2 4 PULSE (0 10V 4166.7US 1NS 1NS 100US 16666.7US)

VG2 3 1 PULSE (0 10V 12500.1US 1NS 1NS 100US 16666.7US)

R 4 6 2.5OHM

VX 6 0 DC 0V

CS 1 7 0.1UF

RS 7 4 750OHM

XT1 1 2 4 SCR

XT2 4 3 1 SCR

.SUBCKT SCR 1 3 2

S1 1 5 6 2 SMOD

RG 3 4 50OHM

VX 4 2 DC 0V

VY 5 2 DC 0V

RT 2 6 1OHM

CT 6 2 10UF

F1 2 6 POLY(2) VX VY 0 50 11

. MODEL SMOD VSWITCH (RON=0.01 ROFF=10E+5 VON=0.1V VOFF=0V)

. ENDS SCR

. TRAN 10US 33.33MS

. PROBE

. OPTIONS ABSTOL=1.00N RELTOL=1M VNTOL=1M ITL5=10000

.FOUR 60HZ V(4) I(VS)

.END
FOURIER COMPONENTS OF TRANSIENT RESPONSE V(4)

DC COMPONENT = 1.673829E-03

HARMO FREQUENCY FOURIER NORMALIZED PHASE NORMALIZED

NIC NO (HZ) COMPONENT COMPONENT (DEG) PHASE (DEG)

1 6.000E+01 1.000E+02 1.000E+00 -3.246E+01 0.000E+00

2 1.200E+02 3.349E-03 3.348E-05 1.018E+02 1.668E+02

3 1.800E+02 5.367E+01 5.366E-01 9.011E+01 1.875E+02

4 2.400E+02 3.317E-03 3.317E-05 1.141E+02 2.439E+02

5 3.000E+02 1.802E+01 1.802E-01 -8.971E+01 7.260E+01

6 3.600E+02 3.249E-03 3.248E-05 1.262E+02 3.209E+02

7 4.200E+02 1.797E+01 1.797E-01 8.987E+01 3.171E+02

8 4.800E+02 3.162E-03 3.162E-05 1.382E+02 3.979E+02

9 5.400E+02 1.078E+01 1.078E-01 -9.006E+01 2.021E+02

TOTAL HARMONIC DISTORTION = 6.035948E+01 PERCENT


FOURIER COMPONENTS OF TRANSIENT RESPONSE I(VS)

DC COMPONENT = -6.692569E-04

HARMO FREQUENCY FOURIER NORMALIZED PHASE NORMALIZED

NIC. NO (HZ) COMPONENT COMPONENT (DEG) PHASE (DEG)

1 6.000E+01 4.001E+01 1.000E+00 1.475E+02 0.000E+00

2 1.200E+02 1.339E-03 3.348E-05 -7.818E+01 -3.733E+02

3 1.800E+02 2.147E+01 5.366E-01 -8.989E+01 -5.325E+02

4 2.400E+02 1.327E-03 3.317E-05 -6.593E+01 -6.561E+02

5 3.000E+02 7.210E+00 1.802E-01 9.029E+01 -6.474E+02

6 3.600E+02 1.300E-03 3.248E-05 -5.384E+01 -9.391E+02

7 4.200E+02 7.188E+00 1.797E-01 -9.013E+01 -1.123E+03

8 4.800E+02 1.265E-03 3.161E-05 -4.181E+01 -1.222E+03

9 5.400E+02 4.312E+00 1.078E-01 8.994E+01 -1.238E+03

TOTAL HARMONIC DISTORTION = 6.035948E+01 PERCENT

JOB CONCLUDED TOTAL JOB TIME .09

You might also like