3

Background

I'm going to investigate a beam-pendulum coupling system (in this question I won't consider the pendulum though), that is, a spherical pendulum is suspended on the tip of a cantilever beam. therefore it may be essential to write the vibrational displacement in two functions, which are constrained by inextensibility of the beam.

I'm following this article, which starts from a Lagrangian with a Lagrange multiplier.

https://doi.org/10.1119/10.0001389

I upload 2 pages of this paper here.

formulae apparatus

I've set $T_1,T_2=0$ to ignore effects from pendulum etc., i.e. there is the beam only.

PDE

(* PDE *)
eqn = {
  \[Mu] Derivative[2,0][u][t,s] + c Derivative[1,0][u][t,s] - D[\[Lambda][t, s](1+Derivative[0,1][u][t,s]), s] == 0,
  \[Mu] Derivative[2,0][v][t,s] + c Derivative[1,0][v][t,s] - D[\[Lambda][t, s]Derivative[0,1][v][t,s], s] +
    EI(D[(1+Derivative[0,1][v][t,s]^2+Derivative[0,1][v][t,s]^4)Derivative[0,2][v][t,s], {s, 2}] +
    D[(1+Derivative[0,1][v][t,s]^2/2)Derivative[0,2][v][t,s]^2, s]) == 0
}

(* Boundary Condition *) bcrhs = D[(1+D[v[t,s], s]^2+D[v[t,s], s]^4)D[v[t,s], s, s], s] + (1+D[v[t,s], s]^2/2)D[v[t,s], s, s]^2 /. s->l bc = { u[t, 0] == 0, Derivative[0, 1][u][t, l] == -1, v[t, 0] == 0, Derivative[0, 1][v][t, 0] == 0, Derivative[0, 2][v][t, l] == 0, [Lambda][t, l]Derivative[0, 1][v][t, l] == EI bcrhs };

(* Initial Condition, a trivial one though *) ic = { u[0, s] == 0, Derivative[1, 0][u][0, s] == 0, v[0, s] == 0, Derivative[1, 0][v][0, s] == 0 }

(* Constraint *) constraint = (1+Derivative[0,1][u][t,s])^2+Derivative[0,1][v][t,s]^2==1

(* Parameters *) l = 1; EI = 1; [Mu] = 1; c = 1;

My attempts

I've tried manual discretization of PDEs and BCs for spatial variable $s$(with the help of pdetoode from 127997). Redundant ODEs are removed (2 of u, 4 of v). Finally I got a correct amount of DEs, which is $2m$ where $m$ is the grid size.

For the constraint, as its sign is not fixed, it cannot be directly solved. Thus I followed the instruction of the wiki, differentiated the constraint for 2 times and substituted high-order derivatives by terms including $\lambda$ to obtain a constraint with $\lambda$. Then differentiate it once more to obtain a DE version constraint.

For the initial condition for the DE version constraint, I don't know what to do. After substitute ICs into the constraint equation with $\lambda$, I got a equation which evaluates to True. Thus, being inspired by some observation of arbitrariness, I tried to set constraint IC $\lambda(0,s)=0$. Then it's discretized to $m$ ICs.

Finally, I got $2m$ second order ODEs, $m$ first order ODEs, and $5m$ initial conditions. When I throw them into NDSolve(without set any option), it says:

  1. NDSolve::parpiv: Zero pivot was detected during the numerical factorization or there was a problem in the iterative refinement process. It is possible that the matrix is ill-conditioned or singular.
  2. NDSolve::ivres: NDSolve has computed initial values that give a zero residual for the differential-algebraic system, but some components are different from those specified. If you need them to be satisfied, giving initial conditions for all dependent variables and their derivatives is recommended.
  3. NDSolve::index: The DAE solver failed at `t` = `0`. The solver is intended for index 1 DAE systems and structural analysis indicates that the DAE index is `3`. The option Method->{"IndexReduction"->Automatic} may be used to reduce the index of the system.

Set Method -> {"IndexReduction" -> True} gives NDSolve::ivres and NDSolve::nderr.

My question

I want to know what's the correct way to solve this PDE system. (Use built-in discretizer is also OK, but I'm afraid that it may be not so handy for introduce the pendulum coupling)

If you think that my code for attempts is a needed info, please comment.

rnotlnglgq
  • 3,740
  • 7
  • 28
  • The paper is behind a pay wall so I can't read it. The Bernoulli Euler beam has forth derivatives of the displacement for the PDE. I can't immediately see those. Is this a beam that has its axis horizontal? Have you also got damping in there? Is your equation for the Lagrangian or the equation of motion? – Hugh Jan 17 '24 at 20:18
  • @Hugh 4th derivative can be found in the equation for v (where there're two nested $\partial^2$). The beam axis is horizontal, and gravity is ignored and we only care for the horizontal dimensions. There's a linear damping. The equation is a Euler-Lagrange equation of a Lagrangian. – rnotlnglgq Jan 18 '24 at 00:08
  • @Hugh I've uploaded two main pages of that paper. – rnotlnglgq Jan 18 '24 at 00:23
  • There is a typo in constraint, it should be (1+Derivative[0,1][u][t,s])^2+Derivative[0,1][v][t,s]^2==1 - see equation (3) in the paper. – Alex Trounev Jan 18 '24 at 01:14
  • @AlexTrounev Thanks. I'll edit, though fixing it does not change any complaint of NDSolve. – rnotlnglgq Jan 18 '24 at 01:20
  • What's the desired end time? 2. There's a typo in bcrhs, you've missed a ^2 in the end. 3. I suggest using With to rewrite the system so it'll be easier to check.
  • – xzczd Jan 18 '24 at 04:44
  • …After taking a closer look at the paper, I'm afraid you've made a severe mistake: equation (3) should not be included in the system, it's used for deducing (8) and (9). And the $\lambda$ is not a function of $s$. Just read the paragraph below equation (A2).
  • – xzczd Jan 18 '24 at 08:04
  • @xzczd 4. Yes. I'm aware that I introduced the $s$ dependence blindly, possibly be inspired by the author writing the $\lambda$ inside derivative operators, while I didn't note that obtaining (A1) implies its independence. It sounds like that $\lambda$ is independent of $s$, so it may be directly solved from given equations. I'll try to figure it out later. – rnotlnglgq Jan 18 '24 at 08:55
  • The desired end time is not determinated yet. For observing some mode instability, I guess I'll need dozens of periods.
  • – rnotlnglgq Jan 18 '24 at 08:57