I am trying to solve below 3rd order DE using Runge Kutta methed but we have problem at t=0,
ClassicalRungeKuttaCoefficients[4, prec_] :=
With[{amat = {{1/2}, {0, 1/2}, {0, 0, 1}},
bvec = {1/6, 1/3, 1/3, 1/6}, cvec = {1/2, 1/2, 1}},
N[{amat, bvec, cvec}, prec]]
σ = .07;
ρ = 1000; g = 10; σT = .3*10^-3;
lσ = Sqrt[σ/(ρ*g)]; ΔT = .02;
Cr = (σT*ΔT)/σ; h0 = 1*10^-3;
Amp = (3*lσ^2*Cr)/(2*h0^2); T0 = 300;
T = ΔT*Exp[-(t/(200*10^-6))^2];
θ = (T - T0)/ΔT;
solution1 =
NDSolve[{y''[t] + 1/t*y'[t] - y[t] ==
Amp*Integrate[θ/(y[t] + 1), {t, -.008, .008}],
y[-0.008] == 0, y[0.008] == 0}, y[t], {t, -.008, .008},
Method -> {"ExplicitRungeKutta", "DifferenceOrder" -> 4,
"Coefficients" -> ClassicalRungeKuttaCoefficients},
StartingStepSize -> 1/10000]
y'[t]/t
, so I'm not really sure why it's surprising to find an error att=0
. But thesolution1
you get out seems pretty useable as far as I can see. What exactly is the problem att=0
(since you get a solution at the end)? What are you wanting to do with the solution that you can't do now? $\endgroup$