I need to solve the following differential equation:
NDSolve[{R[r, t], R[r, 0] == r/1000}, R, {t, 0, 30}, {r, 1, 30}]
Where R[r,t] goes like:
D[R[r, t], t] == Sqrt[(2*G*M1[r])/R[r, t] + (2 c^2*λ*(R[r, t])^2)/3 + 2 c^2* E1[r]]
M1[r] and E1[r] are exact valued functions which are solved. I need to now get a solution for R[r,t] based on the values of M1[r] and E1[r], then vary R[r,t] in time keeping it constant in r.
The problem is that when I run this, I get an error message saying that the max number of steps was performed without a solution being reached. I've scaled all my units down and set the WorkingPrecision to 1, wherein I was told that the precision of the problem at hand was less than 1.
Any thoughts?
r. It doesn't seem to make sense to includeras an additional independent variable. I think this question is similar to this. Maybe you find the answers there helpful. Otherwise you probably might want to edit you answer, clarify your question and/or provide a self-contained example... – Albert Retey Feb 12 at 17:08NDSolvedoesn't include any derivatives at all! Emulate the examples given in its help page. – whuber Feb 12 at 20:07