Skip to main content

Analytic solution of dynamic Euler–Bernoulli beam equation with compatibility condition


The Euler–Bernoulli beam equation (also known as wave equation for beam) with pined-pined boundary has well-known solutions, but directly input the equation into Mathematica does not return them.


EI4wx4+μ2wt2==0 w(0,t)=w(L,t)=02w(0,t)x2=2w(L,t)x2=0


DSolve[{EI D[y[x, t], {x, 4}] + mu D[y[x, t], {t, 2}] == 0, 
y[0, t] == 0, y[L, t] == 0, Derivative[2, 0][y][0, t] == 0,
Derivative[2, 0][y][L, t] == 0}, y[x, t], {x, t}]


Can anyone give me a hint on how to solve it using DSolve?


Update:


Adding initial conditions does not help:


DSolve[{K D[y[x, t], {x, 4}] + M D[y[x, t], {t, 2}] == 0, 
y[0, t] == 0, y[L, t] == 0, Derivative[2, 0][y][0, t] == 0,
Derivative[2, 0][y][L, t] == 0, y[x, 0] == Sin[x/L Pi],
Derivative[0, 1][y][x, 0] == 0}, y[x, t], {x, t}]

The actual situation



Here is the actual boundary conditions and compatibility conditions I am trying to solve:



  1. Boundary conditions: w(0,t)=w(L,t)=02w(0,t)x2=2w(L,t)x2=0


  2. Compatibility conditions:


    (1). compatibility condition for spring at L/2 w(x,t)|xL/2=w(x,t)|xL/2+w(x,t)|xL/2=w(x,t)|xL/2+w(x,t)|xL/2=w(x,t)|xL/2+w(x,t)|xL/2=w(x,t)|xL/2++kw(L/2,t) (2). compatibility condition for mass at xm w(x,t)|xxm=w(x,t)|xx+mw(x,t)|xxm=w(x,t)|xx+mw(x,t)|xxm=w(x,t)|xx+mw(x,t)|xxm=w(x,t)|xx+mM¨w(xm,t)




For special cases of the problem, Russian expert Filippov gave the solution in his book in 1970, but it is now very hard to find a copy of the book. And what is worse, the book is written in Russian.


Solving this problem maybe is reinvent the wheel, but the old way to manufacture the wheel is lost.



I opened a new question on how to trade compatibility condition here.



Answer



The short answer is: It's a common sense that (at least currently) DSolve is very weak on solving PDE and it simply can't handle this problem, period. However, with a little effort, you can solve it with LaplaceTransform:


eqn = ϵ D[y[x, t], {x, 4}] + μ D[y[x, t], {t, 2}] == 0;
ic = {y[x, 0] == Sin[x/L Pi], Derivative[0, 1][y][x, 0] == 0};
bc = {y[0, t] == 0, y[L, t] == 0,
Derivative[2, 0][y][0, t] == 0, Derivative[2, 0][y][L, t] == 0};

teqn = With[{l = LaplaceTransform},
l[{eqn, bc}, t, s] /. HoldPattern@l[u_, t, s] :> u] /. Rule @@@ ic



{μ(s2y(x,t)ssin(πxL))+ϵy(4,0)(x,t)=0,{y(0,t)=0,y(L,t)=0,y(2,0)(0,t)=0,y(2,0)(L,t)=0}}



Notice that y(x,t) actually represents Lt[y(x,t)](x) in teqn. I made this replacement because DSolve has some difficulty in understanding Lt[y(x,t)](x). Now we just need to solve teqn with DSolve:


tsol = DSolve[teqn, y[x, t], x][[1, 1, -1]]


μL4ssin(πxL)(π2ϵiμL2s)(π2ϵ+iμL2s)




and change the transformed solution back:


sol = InverseLaplaceTransform[tsol, s, t]


12sin(πxL)eiπ2tϵμL2(1+e2iπ2tϵμL2)



When dealing with an initial boundary value problem, the above approach is more automatic than Jens' method of separation of variables. You can wrap the procedure into a function:


pdeSolveWithLaplaceTransform[eqn_, ic_, func : _[__], t_, nott_] := 
With[{l = LaplaceTransform},
Module[{s},

InverseLaplaceTransform[
func /. First@
DSolve[l[eqn, t, s] /. HoldPattern@l[u_, t, s] :> u /. Rule @@@ Flatten@{ic},
func, nott], s, t]]]

This function will probably fail in more complex cases, but does have a certain generality, for example, it can handle the problem in this post like this:


eqn = D[p[x, t], {t, 2}] == c^2 (D[p[x, t], {x, 2}]);
ic = {p[x, 0] == Exp[x], D[p[x, t], t] == Sin[x] /. t -> 0};

pdeSolveWithLaplaceTransform[eqn, ic, p[x, t], t, x]



c1δ(t+xc)+c2δ(txc)+c(e2ct+1)exctieict(1+e2ict)sin(x)2c





Update: solution to the actual situation


OK, since a solution containing InverseLaplaceTransform is acceptable for you, I'd like to make this complement. Still, I'll use LaplaceTransform for your actual situation. For brevity, let's define a helper function, a pdeSolveWithLaplaceTransform without inverse transform:


helper[eqn_, ic_, func : _[__], t_, s_, nott_, const_: C] := 
func /. First@
DSolve[With[{l = LaplaceTransform}, l[eqn, t, s] /. HoldPattern@l[u_, t, s] :> u] /.

Rule @@@ ic, func, nott, GeneratedParameters -> const]

First find the transformed solutions with boundary conditions at only one side respectively:


eqn = ϵ D[y[x, t], {x, 4}] + μ D[y[x, t], {t, 2}] == 0;
ic = {y[x, 0] == Sin[x/L Pi], Derivative[0, 1][y][x, 0] == 0};
bcL = {y[0, t] == 0, Derivative[2, 0][y][0, t] == 0};
bcR = {y[L, t] == 0, Derivative[2, 0][y][L, t] == 0};

tsolL = helper[{eqn, bcL}, ic, y[x, t], t, s, x, cL]
tsolR = helper[{eqn, bcR}, ic, y[x, t], t, s, x, cR]


Needless to say, tsolL and tsolR involve constants. (To be more specific, cL[1], cL[2], cR[1], cR[2].) How to eliminate them? We still have compatibility conditions unused:


(1) compatibility condition for spring at L/2


cond1 = Solve[{# == #2, D[#, x] == D[#2, x], D[#, {x, 2}] == D[#2, {x, 2}], 
D[#, {x, 3}] == D[#2, {x, 3}] + k #} &[tsolL, tsolR] /. x -> L/2,
{cL[1], cL[2], cR[1], cR[2]}][[1]];

tsolLcond1 = tsolL /. cond1 (*// Simplify*)
tsolRcond1 = tsolR /. cond1 (*// Simplify*)


(2) compatibility condition for mass at xm


cond2 = Solve[{# == #2, D[#, x] == D[#2, x], D[#, {x, 2}] == D[#2, {x, 2}], 
D[#, {x, 3}] == D[#2, {x, 3}] + s^2 # - s ic[[1, -1]] - ic[[2, -1]]} &
[tsolL, tsolR] /. x -> xm, {cL[1], cL[2], cR[1], cR[2]}][[1]];

tsolLcond2 = tsolL /. cond2 (*// Simplify*)
tsolRcond2 = tsolR /. cond2 (*// Simplify*)

The result is quite lengthy so I'd like to omit them here. The final step is to make the inverse transform. As mentioned above, InverseLaplaceTransform will remain unevaluated. If you want to calculate the transform numerically in the future work, have a look at this package.


Comments

Popular posts from this blog

functions - Get leading series expansion term?

Given a function f[x] , I would like to have a function leadingSeries that returns just the leading term in the series around x=0 . For example: leadingSeries[(1/x + 2)/(4 + 1/x^2 + x)] x and leadingSeries[(1/x + 2 + (1 - 1/x^3)/4)/(4 + x)] -(1/(16 x^3)) Is there such a function in Mathematica? Or maybe one can implement it efficiently? EDIT I finally went with the following implementation, based on Carl Woll 's answer: lds[ex_,x_]:=( (ex/.x->(x+O[x]^2))/.SeriesData[U_,Z_,L_List,Mi_,Ma_,De_]:>SeriesData[U,Z,{L[[1]]},Mi,Mi+1,De]//Quiet//Normal) The advantage is, that this one also properly works with functions whose leading term is a constant: lds[Exp[x],x] 1 Answer Update 1 Updated to eliminate SeriesData and to not return additional terms Perhaps you could use: leadingSeries[expr_, x_] := Normal[expr /. x->(x+O[x]^2) /. a_List :> Take[a, 1]] Then for your examples: leadingSeries[(1/x + 2)/(4 + 1/x^2 + x), x] leadingSeries[Exp[x], x] leadingSeries[(1/x + 2 + (1 - 1/x...

mathematical optimization - Minimizing using indices, error: Part::pkspec1: The expression cannot be used as a part specification

I want to use Minimize where the variables to minimize are indices pointing into an array. Here a MWE that hopefully shows what my problem is. vars = u@# & /@ Range[3]; cons = Flatten@ { Table[(u[j] != #) & /@ vars[[j + 1 ;; -1]], {j, 1, 3 - 1}], 1 vec1 = {1, 2, 3}; vec2 = {1, 2, 3}; Minimize[{Total@((vec1[[#]] - vec2[[u[#]]])^2 & /@ Range[1, 3]), cons}, vars, Integers] The error I get: Part::pkspec1: The expression u[1] cannot be used as a part specification. >> Answer Ok, it seems that one can get around Mathematica trying to evaluate vec2[[u[1]]] too early by using the function Indexed[vec2,u[1]] . The working MWE would then look like the following: vars = u@# & /@ Range[3]; cons = Flatten@{ Table[(u[j] != #) & /@ vars[[j + 1 ;; -1]], {j, 1, 3 - 1}], 1 vec1 = {1, 2, 3}; vec2 = {1, 2, 3}; NMinimize[ {Total@((vec1[[#]] - Indexed[vec2, u[#]])^2 & /@ R...

plotting - Plot 4D data with color as 4th dimension

I have a list of 4D data (x position, y position, amplitude, wavelength). I want to plot x, y, and amplitude on a 3D plot and have the color of the points correspond to the wavelength. I have seen many examples using functions to define color but my wavelength cannot be expressed by an analytic function. Is there a simple way to do this? Answer Here a another possible way to visualize 4D data: data = Flatten[Table[{x, y, x^2 + y^2, Sin[x - y]}, {x, -Pi, Pi,Pi/10}, {y,-Pi,Pi, Pi/10}], 1]; You can use the function Point along with VertexColors . Now the points are places using the first three elements and the color is determined by the fourth. In this case I used Hue, but you can use whatever you prefer. Graphics3D[ Point[data[[All, 1 ;; 3]], VertexColors -> Hue /@ data[[All, 4]]], Axes -> True, BoxRatios -> {1, 1, 1/GoldenRatio}]