(Possible duplicate yet I still can't understand.)
Basic 2D revolving around origin:
With[{o = 2, R = 2},
NDSolveValue[{
r''[t] == -o^2 R Normalize[r[t]],
r[0] == {R, 0},
r'[0] == {0, o R}},
r, {t, 0, 3}]]
ParametricPlot[%[t], {t, 0, 3}]
However, I add an origin displacement to rhs of r''[t]
and suddenly it can't be solved.
With[{o = 2, R = 2, p = {0, 0}},
NDSolveValue[{
r''[t] == -o^2 R Evaluate[Normalize[r[t] - p]],
r[0] == p + {R, 0},
r'[0] == {0, o R}},
r, {t, 0, 3}]]
Errors-filled return of NDSolveValue
also shows rhs of r''[t]
is evaluated in an undesired fashion. How can I remedy this but still go on with my vector variable?