Electronics Computer-Aided Design voltage decay capacitor spice commandline

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
voltage decay capacitor spice commandline Marc Weber 11-18-06
Posted by Marc Weber on November 18, 2006, 8:05 am
Please log in for more thread options


Hi. I want to learn how to use spice.

To get to know spice I want to start simulating a simple schema:

--| R 1 | --
| |
0 1
| |
-x-||--x----
C1

(One resistor and capacitor)
The Capacitor should start having some voltage.

Now I want spice3/ ngspice to simulate and print/ plot the voltage decay

By now I've managed to write the netlist file:

----- res_cap.cir ----
* RESISTOR AND CAPACITOR - VOLTAGE DECAY.
R1 0 1 1Ohm
C1 0 1 1u
.END
----- res_cap.cir ----

Can you tell me which .PRINT .PLOT options to use to get the voltage decay?
I want to use batch processing until I know the basics. This way I can ask my
editor to start spice automatically.

Should look like this
.
.
.
'
I do need AC analysis, right?
I don't know exactly how to invoke spice to get this information.
I can use
.PRINT AC V(0,1)
to get the voltage difference, correct?

If you now a page describing this I would be glad, too.
I've spent some time googling but haven't fond this information.

Marc

Posted by Jim Thompson on November 18, 2006, 10:56 am
Please log in for more thread options


On Sat, 18 Nov 2006 14:05:23 +0100 (CET), Marc Weber

>Hi. I want to learn how to use spice.
>
>To get to know spice I want to start simulating a simple schema:
>
>--| R 1 | --
>| |
>0 1
>| |
>-x-||--x----
> C1
>
>(One resistor and capacitor)
>The Capacitor should start having some voltage.
>
>Now I want spice3/ ngspice to simulate and print/ plot the voltage decay
>
>By now I've managed to write the netlist file:
>
>----- res_cap.cir ----
>* RESISTOR AND CAPACITOR - VOLTAGE DECAY.
>R1 0 1 1Ohm
>C1 0 1 1u
>.END
>----- res_cap.cir ----
>
>Can you tell me which .PRINT .PLOT options to use to get the voltage decay?
>I want to use batch processing until I know the basics. This way I can ask my
>editor to start spice automatically.
>
>Should look like this
>.
> .
> .
> '
>I do need AC analysis, right?

No. You need a .TRAN

>I don't know exactly how to invoke spice to get this information.
>I can use
>.PRINT AC V(0,1)

No. .PRINT V(1) or .PRINT V(1,0)

>to get the voltage difference, correct?
>
>If you now a page describing this I would be glad, too.
>I've spent some time googling but haven't fond this information.
>
>Marc

You need a voltage source... split you node zero into "0" and "2", add
a step... VPULSE.

RTFM!

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.

Posted by Charles Schuler on November 19, 2006, 5:20 pm
Please log in for more thread options



> Hi. I want to learn how to use spice.
>
> To get to know spice I want to start simulating a simple schema:
>
> --| R 1 | --
> | |
> 0 1
> | |
> -x-||--x----
> C1
>
> (One resistor and capacitor)
> The Capacitor should start having some voltage.
>
> Now I want spice3/ ngspice to simulate and print/ plot the voltage decay
>
> By now I've managed to write the netlist file:
>
> ----- res_cap.cir ----
> * RESISTOR AND CAPACITOR - VOLTAGE DECAY.
> R1 0 1 1Ohm
> C1 0 1 1u
> .END
> ----- res_cap.cir ----
>
> Can you tell me which .PRINT .PLOT options to use to get the voltage
> decay?
> I want to use batch processing until I know the basics. This way I can ask
> my
> editor to start spice automatically.
>
> Should look like this
> .
> .
> .
> '
> I do need AC analysis, right?

Transient analysis.





Similar ThreadsPosted
voltage decay capacitor spice commandline November 18, 2006, 8:05 am
Sample-and-hold or switched capacitor noise simulation in SPICE? December 16, 2004, 3:28 pm
Modeling Series R in an MOS (Active Device) Capacitor ?? February 4, 2005, 2:41 pm
diode voltage February 8, 2008, 11:09 am
Multiple voltage supply September 8, 2008, 4:15 pm
Offset Voltage in Op-amp simulation problem. January 31, 2007, 11:39 pm
Problem with input waveform (voltage) while using PSpice December 6, 2007, 5:12 am
ltspice sine wave voltage source question July 2, 2005, 3:42 pm
[allegro15.7]import netlist error(ERROR: Property requires a voltage.) September 28, 2008, 5:29 am
(OrCAD 10.3) How to consolidate circuit into voltage source for other circuit? July 12, 2005, 12:28 pm
NTE2402 NPN Spice Model (or NTE Spice Library) July 7, 2005, 9:50 pm
XML and spice August 28, 2004, 4:42 am
Is someone here using B2 SPICE? September 26, 2004, 4:55 am
SPICE for Mac OS X? November 18, 2004, 3:39 am
spice March 28, 2007, 8:42 am