Hi Stackexchange community,
I am rather new to Mathematica, especially when it comes to dealing with numerical stuff. Right now I am trying to numerically solve a system of two coupled differential equations for certain sets of values. The system is the following:
modp = {D[r[t]*Cos[ϕ[t]], {t, 2}] == w1*D[r[t]*Sin[ϕ[t]], t] - w2*Cos[w1*t]*Sin[ϕ[t]], D[r[t]*Sin[ϕ[t]], {t, 2}] == -w1*D[r[t]*Cos[ϕ[t]], t] - w2*Cos[w1*t]*Cos[ϕ[t]]}; For the values
v0 = 7.5*10^7; w1 = 1.52*10^10; w2 = 1.59*10^(-11); Mathematica is able to solve these differential equations numerically. But for the values
v0 = 7.5*10^7; w1 = 1.52*10^10; w2 = 0.437; I get the message
NDSolve::mxst: Maximum number of 10000 steps reached at the point t == 2.879453677024192`*^-7.
Now, I know that the maximum number of steps can be increased by the MaxSteps-command but if I increase the steps by a factor of 10, the same warning occurs for a time that is a factor of 10 higher than the previous one:
dglmodphotp = NDSolve[ {modp, r[0] == v0/w1, ϕ[0] == 0, r'[0] == 0, ϕ'[0] == -v0/r[0]}, {r[t], ϕ[t]}, {t, 0, Pi*10^7}, MaxSteps -> 100000] Maximum number of 100000 steps reached at the point t == 2.843461540218415`*^-6.
So in order to solve the System of ODE for this time intervall I have to increase the maximum number of steps by a factor of 10^14 which (how I see it) roughly also increases the calculation time by this factor. Is there another possibility to solve this system which is not that time-comsuming ?
EDIT: The value of v0 is 7.5*10^7.

v0you are using? Your very largew1means that the $sin$ and $cos$ terms are oscillating wildly with a period of $10^{-10}$, and then you are trying to integrate up to $10^7$. On my system it claims to integrate, but the results don't actually satisfy the ODEs. $\endgroup$w1 = 1.52*10^(-10)? $\endgroup$