simple ac simulation question

View: New views
6 Messages — Rating Filter:   Alert me  

simple ac simulation question

by Chris Cole-7 :: Rate this Message:

| View Threaded | Show Only this Message

Hello all,
I'm seeing some weirdness with the simplest possible AC circuit you can
do. All I have is a voltage source described by a sine wave, SIN(0 24
50) with a resistor in series. I get something completely off the wall
when I plot this in gwave. Attached is my example with a schematic and a
script, sim.sh to generate the netlist and generate the plot.

Thanks,
   Chris

_______________________________________________
Help-gnucap mailing list
Help-gnucap@...
http://lists.gnu.org/mailman/listinfo/help-gnucap

Re: simple ac simulation question

by Jorge Ernesto Guevara Cuenca :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

You forgot the attachment files

2010/9/17 Chris Cole <clecol@...>:

> Hello all,
> I'm seeing some weirdness with the simplest possible AC circuit you can do.
> All I have is a voltage source described by a sine wave, SIN(0 24 50) with a
> resistor in series. I get something completely off the wall when I plot this
> in gwave. Attached is my example with a schematic and a script, sim.sh to
> generate the netlist and generate the plot.
>
> Thanks,
>  Chris
>
> _______________________________________________
> Help-gnucap mailing list
> Help-gnucap@...
> http://lists.gnu.org/mailman/listinfo/help-gnucap
>
>



--
Jorge Ernesto Guevara Cuenca

http://www.el-directorio.org/jegc
El sitio para el Software Libre y Linux en Colombia

No leo mensajes técnicos en Colibri
http://www.el-directorio.org/Colibri/UsoLista

_______________________________________________
Help-gnucap mailing list
Help-gnucap@...
http://lists.gnu.org/mailman/listinfo/help-gnucap

Re: simple ac simulation question

by Chris Cole-7 :: Rate this Message:

| View Threaded | Show Only this Message

On 09/18/2010 10:36 AM, Jorge Ernesto Guevara Cuenca wrote:

> Hello,
>
> You forgot the attachment files
>
> 2010/9/17 Chris Cole<clecol@...>:
>    
>> Hello all,
>> I'm seeing some weirdness with the simplest possible AC circuit you can do.
>> All I have is a voltage source described by a sine wave, SIN(0 24 50) with a
>> resistor in series. I get something completely off the wall when I plot this
>> in gwave. Attached is my example with a schematic and a script, sim.sh to
>> generate the netlist and generate the plot.
>>
>> Thanks,
>>   Chris
>>      
Dumb! Ok, here they are. Thanks for the reply.

_______________________________________________
Help-gnucap mailing list
Help-gnucap@...
http://lists.gnu.org/mailman/listinfo/help-gnucap

Re: simple ac simulation question

by Chris Cole-7 :: Rate this Message:

| View Threaded | Show Only this Message

Attached is a simple shell script that shows the behavior I'm seeing.
You'll see from the script that if you set the frequency to '1' the
output inside gwave is a normal sine wave. As you bump up the frequency,
you get a distorted wave, and the only thing in the circuit is a
resistor. What gives?

Thanks,
   Chris

_______________________________________________
Help-gnucap mailing list
Help-gnucap@...
http://lists.gnu.org/mailman/listinfo/help-gnucap

Re: simple ac simulation question

by asomers (Bugzilla) :: Rate this Message:

| View Threaded | Show Only this Message

I think that the list server is stripping attachments.  Try including
the script in the body of your email instead of attaching it.

On Tue, Sep 21, 2010 at 7:45 AM, Chris Cole <clecol@...> wrote:

> Attached is a simple shell script that shows the behavior I'm seeing. You'll
> see from the script that if you set the frequency to '1' the output inside
> gwave is a normal sine wave. As you bump up the frequency, you get a
> distorted wave, and the only thing in the circuit is a resistor. What gives?
>
> Thanks,
>  Chris
>
> _______________________________________________
> Help-gnucap mailing list
> Help-gnucap@...
> http://lists.gnu.org/mailman/listinfo/help-gnucap
>
>

_______________________________________________
Help-gnucap mailing list
Help-gnucap@...
http://lists.gnu.org/mailman/listinfo/help-gnucap

Re: simple ac simulation question

by Chris Cole-7 :: Rate this Message:

| View Threaded | Show Only this Message

On 09/21/2010 11:32 AM, asomers@... wrote:
> I think that the list server is stripping attachments.  Try including
> the script in the body of your email instead of attaching it.
Ok, sorry about that. For whatever reason I don't get a copy of my
message to the list in my inbox so I never saw the attachments not going
through. Here's the script:

gnucap <<EOF
build
Vcc ( vin 0 ) sin offset=0. amplitude=24. frequency=1.
r1 ( vin 0 ) 1.K

list
print tran v(Vcc)
tran 10m 10 1 > ac_test.gwave
!gwave ac_test.gwave
EOF
rm ac_test.gwave




_______________________________________________
Help-gnucap mailing list
Help-gnucap@...
http://lists.gnu.org/mailman/listinfo/help-gnucap