Advertisement
Guest User

Capacitor Sinusoidal Response.asc

a guest
Apr 20th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. Version 4
  2. SHEET 1 1120 680
  3. WIRE 432 128 368 128
  4. WIRE 496 128 432 128
  5. WIRE 496 144 496 128
  6. WIRE 368 192 368 128
  7. WIRE 496 240 496 224
  8. WIRE 624 240 496 240
  9. WIRE 496 256 496 240
  10. WIRE 368 336 368 272
  11. WIRE 432 336 368 336
  12. WIRE 496 336 496 320
  13. WIRE 496 336 432 336
  14. WIRE 432 352 432 336
  15. FLAG 432 352 0
  16. FLAG 432 128 Vin
  17. FLAG 624 240 Vout
  18. SYMBOL res 480 128 R0
  19. SYMATTR InstName R1
  20. SYMATTR Value 1k
  21. SYMBOL cap 480 256 R0
  22. SYMATTR InstName C1
  23. SYMATTR Value 100µ
  24. SYMBOL bv 368 176 M0
  25. WINDOW 3 34 84 Left 2
  26. SYMATTR Value V=A*exp(alpha*time)*sin(2*PI*frequency*time+phase_offset*PI/180)+DC_offset
  27. SYMATTR InstName B1
  28. TEXT -512 216 Left 2 !.tran 0 1 0 10u startup uic
  29. TEXT -512 -24 Left 2 !.param A=1 alpha=0 frequency=4 phase_offset=0 initial=0 DC_offset=0
  30. TEXT -512 0 Left 2 ;A = set input peak amplitude at alpha=0 or scaling factor of decay and growth\nalpha = set input oscilating (0) exponential decay (<0) or growth (>0)\nfrequency = set the frequency in Hertz\nphase_offset = set the input phase offset in degree\ninitial = set the initial capacitor voltage\nDC_offset = set the input sinusoidal DC offset
  31. TEXT -512 296 Left 2 !.ic V(Vout) = {initial}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement