voltage decay capacitor spice commandline

M

Marc Weber

Guest
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
 
On Sat, 18 Nov 2006 14:05:23 +0100 (CET), Marc Weber
<marco-oweber@gmx.de> wrote:

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.
 
"Marc Weber" <marco-oweber@gmx.de> wrote in message
news:ejn0ej$rgu$1@aioe.server.aioe.org...
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.
 

Welcome to EDABoard.com

Sponsor

Back
Top