Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #3159 > unrolled thread

Re: capacitor equation solution not working

Started bymichael partensky <partensky@gmail.com>
First post2011-06-17 09:51 +0000
Last post2011-06-17 09:51 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: capacitor equation solution not working michael partensky <partensky@gmail.com> - 2011-06-17 09:51 +0000

#3159 — Re: capacitor equation solution not working

Frommichael partensky <partensky@gmail.com>
Date2011-06-17 09:51 +0000
SubjectRe: capacitor equation solution not working
Message-ID<itf83k$21t$1@smc.vnet.net>
>
> On Fri, Jun 17, 2011 at 12:09 AM, J and B <noslowski@comcast.net> wrote:
>
>> I am trying to solve a very simple circuit, one that has only a capacitor
>> in
>> it.  What am I doing wrong?  The final graph should show that the
>> capacitor
>> has discharged, but its staying constant.  I have current starting at t=10
>> and ending at t=60.
>> I hope I have used the correct way to put in my code, I am using a new
>> computer and I having trouble with my email program.  Any advice would be
>> appreciated.
>>
>> Thanks
>>
>> I did not check the rest , but fixing two formatting errors can
> be helpful.
> >
> > My code.
> > I[t_]:= If[t<10||t>60,0,1]
> > Plot[i[t],{t,0,100}]  (* you use different letters for the current, iand
> I; btw, I is reserved for the imaginary unit *)
>
> *Eq*=v'[t]==i[t]/c
> c=1;
> >
> > c=1;
> > Soleq==v[t]/.NDSolve[{*eq*,v[0]==0},v[t],{t,0,100}],[[1]]
> > Plot[soleq,{t,0,100}]
> ( **Eq* and *eq* are also different *)

Btw, your circuit without a resistor is "short": the capacitor will
discharge instantly.
Be also aware that the derivative of a step function is expressed though the
so called delta-function which must be handled with extreme care.

Best
MP

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web