help-gnucap
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnucap] Problems with C charge ¿?


From: address@hidden
Subject: Re: [Help-gnucap] Problems with C charge ¿?
Date: Wed, 27 Aug 2008 10:35:41 +0200
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

Hello

If I don't misunderstand you, you would like to see such resuts:
#Time       V(2)
0.         0.
0.1        4.4201
0.2        4.9345
0.3        4.9939
0.4        5.0002
0.5        5.
...

Before the tran analysis, gnucap uses a DC analysis to find a "static state".
In your case, This one determines that the value of V(2) must be 5V. Then
it does the tran analysis...

There are two ways (at least) to see the increasing capacitor charge :
1) ask gnucap "Do not do an initial DC analysis and Use initial conditions."
Vin 1 0 5
R1 1 2 1.K
C1 2 0 47.u IC=0
tran 0 1 0.1 uic

2) adapt your voltage sources : if(t>1e-9) V=5 else V=0
Vin 1 0 FIT 0 0 1e-9 5 order=0
R1 1 2 1.K
C1 2 0 47.u
tran 0 1 0.1


Jacques Le Coupanec





reply via email to

[Prev in Thread] Current Thread [Next in Thread]