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


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

Re: How to rectify the error for NDSolve ?

Started byRahul Chakraborty <rahul.6sept@gmail.com>
First post2012-07-03 02:19 +0000
Last post2012-07-03 02:19 +0000
Articles 1 — 1 participant

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


Contents

  Re: How to rectify the error for NDSolve ? Rahul Chakraborty <rahul.6sept@gmail.com> - 2012-07-03 02:19 +0000

#10765 — Re: How to rectify the error for NDSolve ?

FromRahul Chakraborty <rahul.6sept@gmail.com>
Date2012-07-03 02:19 +0000
SubjectRe: How to rectify the error for NDSolve ?
Message-ID<jstksd$k62$1@smc.vnet.net>
Dear all,

 Thanks to Murray for your reply. I have made changes as per advice but still no result. The differential eqn is also changed to make it simpler. 

 Here is my code:

 Clear[x,\[Tau],Q,\[CapitalGamma],\[Phi]];
Q=100;
\[CapitalGamma]=50;
Subscript[\[Omega], 0]=10;
Subscript[V, p]=0.5;
Subscript[C, 0]=4.06 * 10^-4;
\[Phi]=90;
Subscript[V, 1](t)=Sqrt[2] Subscript[V, p]Sin(2Subscript[\[Omega], 0]t);
eqn= x''[t]+Subscript[\[Omega], 0]/Q x'[t]+Subscript[(\[Omega]^2), 0][1+Subscript[c, 0] Subscript[V, 1](t)]x[t]==\[CapitalGamma]Sin[Subscript[\[Omega], 0]t+\[Phi]];
sol=NDSolve[{eqn,x[0]==0.5,x'[0]==0},x[t],{t,0,250},MaxSteps-> 500000,WorkingPrecision-> 25][[1]]
ParametricPlot[Evaluate[{x[t],x'[t]}/.sol],{t,0,100},Frame->True,PlotRange-> All,AxesLabel-> {"t","Overscript[\[Theta], .]"}]

Regards,
rc

[toc] | [standalone]


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


csiph-web