I'm trying to plot the frequency response of a power supply I've designed. Here(adsbygoogle = window.adsbygoogle || []).push({});

is the netlist (made using Spice OPUS):

The first plot, I'm doing a time domain analysis (this works fine). However, I am having some trouble with varying the frequency of the input. I have bold my attempt at this. But something is definitely wrong here. I get in excess of 6000v when I vary the frequency. When I designed the circuit I was aiming for about 29v (which is what the time domain plot shows).Code (Text):

PowerSupply

v1 4 5 dc 0 sin(0 34 60)

D1 4 2 1N4007

D2 0 5 1N4007

D3 5 2 1N4007

D4 0 4 1N4007

c1 2 0 1000u

c2 2 0 100n

cout out 0 100n

radj adj 0 5k

r1 out adj 240

x 2 adj out LM317

.include parts.lib

.control

set units=degree

destroy all

tran 0.01ms 100ms

plot v(4,5) v(out) vs (time*1000)

destroy all

[b]ac dec 10 60Hz 7000Hz

plot ac1.v(out) vs ac1.frequency[/b]

.endc

.end

Can some please assist me in doing a frequency response analysis.

Thanks.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Frequency response using SPICE

Loading...

Similar Threads - Frequency response using | Date |
---|---|

Question about an LTI System and its Frequency Response | Feb 3, 2017 |

Op amp frequency response | Jun 19, 2016 |

Analytical Expressions for Frequency Response | Dec 17, 2015 |

How to use wolfram alpha to plot frequency response | Aug 26, 2012 |

**Physics Forums - The Fusion of Science and Community**