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.

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:

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
The figure that the example above draws. The figure that the example above draws.

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:

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\):

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()
The figure that the example above draws. The figure that the example above draws.

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:

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. 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 that are solved there.

  • On a shape in the plane, a plate that rests on its edge is written as a system 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, with eigenvalue=:

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