FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Forum index » Electronix » cad
Input Impedance plot using Spice
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
rkrishnan
electronics forum beginner


Joined: 14 Jul 2005
Posts: 4

PostPosted: Sun Jun 04, 2006 9:53 am    Post subject: Input Impedance plot using Spice Reply with quote

Hi,

I am starting to learn Spice, specifically for simulating some amateur
radio circuits. I am using ngspice, a version of the original Berkeley
Spice. I have a very silly doubt, sorry for my ignorance.

I have simulated a lowpass LC filter. The netlist is given below:

*============== Begin SPICE netlist of main design ============
R101 0 n3 50
C102 0 n3 330pF
C101 0 n2 820pF
L102 n2 n3 1.3uH
L101 1 n2 1.3uH
R102 2 1 50
V101 2 0 AC
C103 0 1 330pF
..END

I would like to plot the input impedance Vs frequency of this filter
using spice. How do I do that?

Thanks
Regards
Ramakrishnan
Back to top
rkrishnan
electronics forum beginner


Joined: 14 Jul 2005
Posts: 4

PostPosted: Sun Jun 04, 2006 10:32 am    Post subject: Re: Input Impedance plot using Spice Reply with quote

I solved it by a crude method : by adding a 1 ohm resistor in the
input and plotting the soltage across it (which will also be the
current, as R = 1 ohm) and using nutmeg commands real and imag. The new
netlist is:

* gnetlist -g spice-sdb -o norcal40A-harmonic-filter.net
norcal40A-harmonic-filter.sch
*********************************************************
* Spice file generated by gnetlist *
* spice-sdb version 12.27.2005 by SDB -- *
* provides advanced spice netlisting capability. *
* Documentation at http://www.brorson.com/gEDA/SPICE/ *
*********************************************************
*============== Begin SPICE netlist of main design ============
R101 0 n3 50
C102 0 n3 330pF
C101 0 n2 820pF
L102 n2 n3 1.3uH
L101 v2 n2 1.3uH
R103 1 v1 49
V101 1 0 AC
R102 v1 v2 1
C103 0 v2 330pF
..END

In the ngspice prompt:

let Rin = real((v1)/(v1-v2))
let Iin = imag((v1)/(v1-v2))
plot Rin
plot Iin

This plots the real and imag part of input impedance.

Is there a better, direct method to find the input impedance?

73
Ramakrishnan, VU3RDD

rkrishnan wrote:
Quote:
Hi,

I am starting to learn Spice, specifically for simulating some amateur
radio circuits. I am using ngspice, a version of the original Berkeley
Spice. I have a very silly doubt, sorry for my ignorance.

I have simulated a lowpass LC filter. The netlist is given below:

*============== Begin SPICE netlist of main design ============
R101 0 n3 50
C102 0 n3 330pF
C101 0 n2 820pF
L102 n2 n3 1.3uH
L101 1 n2 1.3uH
R102 2 1 50
V101 2 0 AC
C103 0 1 330pF
.END

I would like to plot the input impedance Vs frequency of this filter
using spice. How do I do that?

Thanks
Regards
Ramakrishnan
Back to top
Kevin Aylward
electronics forum Guru


Joined: 03 May 2005
Posts: 329

PostPosted: Sun Jun 04, 2006 11:58 am    Post subject: Re: Input Impedance plot using Spice Reply with quote

rkrishnan wrote:
Quote:
Hi,

I am starting to learn Spice, specifically for simulating some amateur
radio circuits. I am using ngspice, a version of the original Berkeley
Spice. I have a very silly doubt, sorry for my ignorance.

I have simulated a lowpass LC filter. The netlist is given below:

*============== Begin SPICE netlist of main design ============
R101 0 n3 50
C102 0 n3 330pF
C101 0 n2 820pF
L102 n2 n3 1.3uH
L101 1 n2 1.3uH
R102 2 1 50
V101 2 0 AC
C103 0 1 330pF
.END

I would like to plot the input impedance Vs frequency of this filter
using spice. How do I do that?


Use an ideal 1A current source to ground as the drive signal. The
voltage at the non ground lead is then equal to the input impedance.

Kevin Aylward
431infoEXTRACT@anasoft.co.uk
http://www.anasoft.co.uk
SuperSpice, a very affordable Mixed-Mode
Windows Simulator with Schematic Capture,
Waveform Display, FFT's and Filter Design.

"There are none more ignorant and useless,than they that seek answers
on their knees, with their eyes closed"
Back to top
rkrishnan
electronics forum beginner


Joined: 14 Jul 2005
Posts: 4

PostPosted: Sun Jun 04, 2006 3:03 pm    Post subject: Re: Input Impedance plot using Spice Reply with quote

Kevin Aylward wrote:
Quote:

Use an ideal 1A current source to ground as the drive signal. The
voltage at the non ground lead is then equal to the input impedance.

Kevin,

Thanks a lot. WIll try that.

Ramakrishnan
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Mon Nov 20, 2017 3:52 am | All times are GMT
Forum index » Electronix » cad
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts UC384X Spice other6614 cad 1 Wed Oct 21, 2009 8:21 pm
No new posts Impedance Roger Dewhurst Basics 4 Fri Jul 21, 2006 5:43 am
No new posts two output ports tied to 1 input?? thai.tony@gmail.com design 4 Wed Jul 19, 2006 9:20 am
No new posts spice mos transistor saturation bill_jetson321@yahoo.com design 3 Tue Jul 18, 2006 9:42 pm
No new posts SPICE simulation of finite Q inductors Joel Kolstad design 16 Tue Jul 18, 2006 4:27 pm

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Unix/Linux blog |  Unix/Linux documentation |  Unix/Linux forums |  Medicine forum |  Science forum  |  Send and track newsletters


Powered by phpBB © 2001, 2005 phpBB Group