spice how to question

Discussion in 'Electronics Resources' started by marksheinbaum, Mar 21, 2012.

  1. marksheinbaum

    Thread Starter New Member

    Mar 21, 2012
    1
    0
    I'm a newbie to spice. I've been doing the experiments and reading the first chapter on DC. I've installed about 3 versions of spice on Windows 7 and linux. I've followed the instructions in the chapter on "Computer simulation of electric circuits" but I don't get the same results. After running the program in different ways, all I get is some line about the temperature. According to the doc, I should be getting some voltage and power output. I suspect I'm either doing something wrong, or need to do something else. Any help would be appreciated. Thanks in advance.

    Input file:
    cat test.cir
    my first circuit
    v1 1 0 dc 10
    r1 1 0 5
    .END

    Running the program yields this:
    ngspice test.cir
    ******
    ** ngspice-21 : Circuit level simulation program
    ** The U. C. Berkeley CAD Group
    ** Copyright 1985-1994, Regents of the University of California.
    ** Please submit bug-reports to: ngspice-bugs@lists.sourceforge.net
    ** Creation Date: Sun Sep 11 15:12:12 UTC 2011
    ******

    Circuit: my first circuit

    ngspice 1 -> run
    Doing analysis at TEMP = 27.000000 and TNOM = 27.000000

    ngspice 2 -> exit
     
  2. w2aew

    Member

    Jan 3, 2012
    219
    64
  3. noosphere

    New Member

    Sep 28, 2008
    2
    0
    I ran in to a similar problem when using Spice version 3.5.5 on Linux. The main problem appears to stem from the book (Lessons in Electric Circuits) using Spice version 2G6, which appears to have slightly different input deck specification requirements than version 3.5.5.

    Here is what the input deck for the first circuit should look like to work on Spice 3.5.5:

    Code ( (Unknown Language)):
    1. my first circuit
    2. v 1 0 dc 10
    3. r 1 0 5
    4. .op
    5. .print op
    6. .end
    7.  
     
Loading...