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


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

Re: How to rectify the error for NDSolve ?

From Rahul Chakraborty <rahul.6sept@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to rectify the error for NDSolve ?
Date 2012-07-03 02:19 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jstksd$k62$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web