I am trying to reproduce results from this paper, which involves solving a fourth-order differential equation.
After setting the various parameters:
l = 5.;
L = 25.;
rad = 0.4;
splay = Tan[17. Pi/180];
and defining the so-called "pressure" function:
press[x_] := Max[ 0.85 (1 - x/6.), 0.0]
I used NDSolve to solve the differential equation, imposing 4 boundary conditions:
sol = First[
NDSolve[ {
l^3 D[ R[s], {s, 4}] - (L - s) D[R[s], {s, 2}] + D[R[s], s] -
press[R[s]] == 0,
R[0.0] == rad,
Derivative[1][R][0.0] == splay , Derivative[2][R][L] == 0.0,
Derivative[3][R][L] == 0.0}, {R}, {s, 0, L}]]
The resulting solution:
rap[s_] = R[s] /. sol
looks absolutely fine to the eye. The problem occurs when I look at one of the properties obtained from the solution, which the authors term "elasticity":
elastic[s_] = l^3 D[rap[s], {s, 4}]
which is proportional to the 4th derivative of the solution. It has more or less the same behavior as the result shown in the paper, but has jagged oscillations superimposed on it. Below I compare the authors' result on the left with the Mathematica result on the right - in both cases they are the curves shown in black.
Clearly taking the 4th derivative numerically will amplify any irregularities in the solution. Is there any way to obtain a cleaner result for the elasticity?



4/10instead of0.4and addWorkingPrecision -> 30as an option ofNDSolve. $\endgroup$