# Beams and plates A plate that bends under a load $f$ obeys $\nabla^4 u = f$, an equation of fourth order, and so does a beam in one dimension. Between walls such an equation takes two conditions on each face. This page says how they are stated, and which kinds of sides there are. ```python import sympy as sp import pdemagic as pm x, y = sp.symbols("x y", real=True) u = sp.Function("u")(x, y) plate = pm.Box({x: (0, 1), y: (0, 1)}) ``` ## Two conditions on a face An equation of second order needs one condition on a face, and one of fourth order needs two: give a list of two equations in the place of one. A plate that is clamped is held in its value and in its slope: ```python clamped = [sp.Eq(u, 0), sp.Eq(pm.normal_derivative(u), 0)] bending = pm.solve( pm.Problem(sp.Eq(pm.laplacian(pm.laplacian(u)), 1), domain=plate, boundary=clamped) ) bending.plot() assert bending.plan.method.kind == "collocation_split" assert abs(bending(0.5, 0.5) - 1.2653190875e-3) < 1e-11 ``` That number is the deflection in the middle of a clamped square plate, which the books give as $0.00126532\,q a^4/D$. You may write $\nabla^4 u$ as `pm.laplacian(pm.laplacian(u))` or with its derivatives, $u_{xxxx} + 2u_{xxyy} + u_{yyyy}$. `pm.normal_derivative(u)` is the slope along the normal that points out of the box, so that one pair of conditions stands for all four sides. ## Kinds of sides The two conditions of a side say how it is held: | A side that is | Its two conditions | |---|---| | clamped | the value and the slope: `sp.Eq(u, 0)`, `sp.Eq(pm.normal_derivative(u), 0)` | | simply supported | the value and the moment: `sp.Eq(u, 0)`, `sp.Eq(pm.laplacian(u), 0)`, or the second derivative across the side in the place of the Laplacian | | sliding | the slope and the shear: `sp.Eq(pm.normal_derivative(u), 0)`, `sp.Eq(pm.normal_derivative(pm.laplacian(u)), 0)` | | free, on a beam | the moment and the shear: `sp.Eq(w.diff(x, 2), 0)`, `sp.Eq(w.diff(x, 3), 0)` | The sides may differ, and each takes its own pair, in a mapping from the face to its list. This plate is clamped along two opposite sides and rests on the other two: ```python supported = [sp.Eq(u, 0), sp.Eq(pm.laplacian(u), 0)] sides = {(x, 0): clamped, (x, 1): clamped, (y, 0): supported, (y, 1): supported} held = pm.solve( pm.Problem(sp.Eq(pm.laplacian(pm.laplacian(u)), 1), domain=plate, boundary=sides) ) # Between the plate that rests on all four sides and the one that is # clamped on all four. resting = pm.solve( pm.Problem( sp.Eq(pm.laplacian(pm.laplacian(u)), 1), domain=plate, boundary=supported ) ) assert bending(0.5, 0.5) < held(0.5, 0.5) < resting(0.5, 0.5) assert abs(held(0.5, 0.5) - 1.91714e-3) < 1e-8 ``` What is given on a face is a number or a formula, and a condition is a sum of derivatives of the unknown up to the third order. ## A cantilever A cantilever is a beam that is clamped at one end and free at the other. Under an even load its tip sinks by $1/8$: ```python w = sp.Function("w")(x) beam = pm.Box({x: (0, 1)}) ends = { (x, 0): [sp.Eq(w, 0), sp.Eq(w.diff(x), 0)], (x, 1): [sp.Eq(w.diff(x, 2), 0), sp.Eq(w.diff(x, 3), 0)], } cantilever = pm.solve(pm.Problem(sp.Eq(w.diff(x, 4), 1), domain=beam, boundary=ends)) assert abs(cantilever(1.0) - 1 / 8) < 1e-12 cantilever.plot() ``` ## Tension and an elastic foundation The equation may be $a\,\nabla^4 u + b\,\nabla^2 u + c\,u = f$ with numbers $a$, $b$ and $c$: a plate under tension, with $b < 0$, and on an elastic foundation, with $c > 0$. Both hold the plate back. A beam that rests on its two ends sinks by $5/384$ in the middle, and by less on a foundation: ```python resting_ends = [sp.Eq(w, 0), sp.Eq(w.diff(x, 2), 0)] alone = pm.solve(pm.Problem(sp.Eq(w.diff(x, 4), 1), domain=beam, boundary=resting_ends)) bedded = pm.solve( pm.Problem(sp.Eq(w.diff(x, 4) + 500 * w, 1), domain=beam, boundary=resting_ends) ) assert abs(alone(0.5) - 5 / 384) < 1e-12 assert bedded(0.5) < alone(0.5) / 5 ``` ## How it is solved The equation is split into two of second order, each solved directly like any other equation on a [box](boxes.md). What the second unknown is on the faces is not given: it is found so that the second condition of each face holds. The plan says so in its last note. ## On other domains - On a box that is periodic in every direction, the plate equation is one of the [linear equations of any order](stationary.md#any-linear-equation-on-a-periodic-box) that are solved there. - On a [shape in the plane](regions.md), a plate that rests on its edge is written as a [system](systems.md) of two equations of second order, for the deflection and the bending moment. ## The tones of a plate A plate that vibrates sounds in its modes, $\nabla^4 u = E\,u$ with the conditions of its sides. They are asked for as any [modes](modes.md), with `eigenvalue=`: ```python E = sp.Symbol("E") ringing = pm.Problem( sp.Eq(pm.laplacian(pm.laplacian(u)), E * u), domain=pm.Box({x: (0, 1), y: (0, 1)}), boundary=[sp.Eq(u, 0), sp.Eq(pm.normal_derivative(u), 0)], eigenvalue=(E, 3), ) tones = pm.solve(ringing) books = [35.9852, 73.3938, 73.3938] assert all(abs(E_k**0.5 - root) < 1e-4 for E_k, root in zip(tones.eigenvalues, books)) ``` Those are the numbers that the books give for a clamped square. The frequencies of the plate go with $\sqrt{E}$. ## What does not work yet - A free edge of a plate in two dimensions: it needs conditions in its corners that a problem cannot state yet. - The plate equation in time. The modes of a plate are found, its motion is not. - In three dimensions the equation is solved on grids up to about 24 points along each axis. - A coefficient that varies, and a nonlinear term. ## See also - [Boundary conditions](boundary-conditions.md): one condition on a face, and what may be given. - Reference: [what is solved on boxes with walls](../ref/equations-boxes.md), and the [known limits](../dev/limits.md#boundary-conditions). - Gallery: [a clamped plate](../gallery/clamped-plate.md), [a cantilever](../gallery/cantilever.md), [a plate that rings](../gallery/plate-that-rings.md). - Method: [equations of fourth order on a box](../methods/plate-equation.md). - Recipe: [clamp a plate](../howto/clamp-a-plate.md).