I am trying to solve a problem involving the longitudinal vibration of a beam in Mathematica. The beam is fixed at the left end and has a concentrated mass at the right end. The system is subjected to a harmonic force excitation at the right end. The following figure shows the details of my setup: And here are my codes
(* Parameters *)
L = 1;
rho = 1;
A = 1;
Emodulus = 1;
M = 1;
(* PDE for longitudinal vibration *)
pde = rho*D[u[x, t], {t, 2}] == Emodulus*D[u[x, t], {x, 2}];
(* Boundary conditions *)
bc1 = u[0, t] == 0;
bc2 = (Emodulus*A*Derivative[1, 0][u][L, t] + M*Derivative[0, 2][u][L, t]) == Sin[t];
(* Initial conditions *)
ic1 = u[x, 0] == 0;
ic2 = Derivative[0, 1][u][x, 0] == 0;
(* Solving the PDE *)
solution = NDSolve[{pde, bc1, bc2, ic1, ic2}, u[x, t], {x, 0, L}, {t, 0, 10}];
However, I encounter an error related to the boundary conditions involving the second derivative in time. I understand that introducing a second-order time derivative in the boundary condition might be problematic since it matches the order of the PDE.
Could someone help me figure out how to properly set up and solve this problem in Mathematica?
Thank you in advance!
The differential order of the functions in the initial or boundary conditions should be strictly less than in the differential equations
if you try. (I have not, but this is what should happen. see related question too-high-differential-order-in-boundary-conditions $\endgroup$