Hi, I have prepared the given NDSolve script for a third-order differential PDE:
K1 = i;
V = Tan[x];
P = r^2/(Cos[y])^5
eq = K1*r^3*D[u[r, y], {r, 3}] + r^2*D[u[r, y], {r, 2}] + r*K1*D[V^2*u[r, y], {r, 1}] + V*r*K1*D[u[r, y], {r, 1}] + V*r*K1*D[V*u[r,y], {r,1}]+ V^2*r*K1*D[u[r, y], {r, 1}] +
V^3*K1*D[u[r, y], {r, 1}] == 2*u[r,y]*P
sol = u[r, y] /.
NDSolve[{eq,
u[0, y] == 1,
Derivative[1, 0][u][0, y] == 0,
Derivative[2, 0][u][0, y] == 10,
u[r, 0] == Cos[x],
Derivative[0, 1][u][r, 0] == 0},
u, {r, 0, 3}, {y, 0, 3},
MaxSteps -> Infinity, PrecisionGoal -> 1,
AccuracyGoal -> 1,
Method -> {"MethodOfLines",
"SpatialDiscretization" -> {"TensorProductGrid",
"MinPoints" -> 32, "MaxPoints" -> 32, "DifferenceOrder" -> 2},
Method -> {"Adams", "MaxDifferenceOrder" -> 1}}] // Quiet
Plot3D[sol, {r, 0, 3}, {y, 0, 3}, AxesLabel -> Automatic]
However, I get the error:
NDSolve::dsvar: 0.00021449999999999998` cannot be used as a variable.
ReplaceAll::reps: {NDSolve[{0.0002145 i Tan[x] (u^(1,0))[0.0002145,0.0002145]+0.0006435 i Tan[<<1>>]^2 (u^(1,0))[0.0002145,0.0002145]+i Tan[<<1>>]^3 (u^(1,0))[0.0002145,0.0002145]+4.60102*10^-8 (u^(2,0))[0.0002145,0.0002145]+9.8692*10^-12 i (u^(3,0))[0.0002145,0.0002145]==9.20205*10^-8 u[0.0002145,0.0002145],<<4>>,(u^(0,1))[0.0002145,0]==0},u,<<4>>,AccuracyGoal->1,Method->{<<1>>}]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing.
What is the error really?
Thanks!