Download Advanced Power System Simulation SIMPLIS Reference

Transcript
SIMPLIS Reference Manual
* Saturation of an Operational Amplifier
.PRINT ALL
.OPTIONS PSP_NPT=1001
.TRAN 2m 0
X$U1 2 0 1 opamp
V1 3 0 SIN VOFFSET=0 APEAK=1 FREQ=1k TDELAY=0
+ OFF_UNTIL_DELAY=NO DAMP_COEF=0
R1 1 3 1K
R2 2 1 10k
.SUBCKT opamp 3 4 2
.NODE_MAP VINN 2
.NODE_MAP VINP 4
.NODE_MAP VOUT 3
RIN 4 2 1Meg
EOP 1 0 4 2 1Meg
ROUT 3 1 50
!R$R1 3 0 R1$TP_SSPWLR IC=1
.MODEL R1$TP_SSPWLR VPWLR NSEG=3 X0=-5.1 Y0=-1MEG
+ X1=-5.0 Y1=-1U X2=5.0 Y2=1U X3=5.1 Y3=1MEG
.ENDS opamp
.END
9.8 Input File for Example 3
Input
Output
Virtual_Earth
4
V
2
0
-2
-4
0
0.2
0.4
0.6
time/mSecs
9.9 Waveforms for Example 3
126
0.8
1
1.2
1.4
1.6
1.8
2
200µSecs/div