Skip to content

Building collapse

A four-story steel building, 6 m by 10 m in plan and 14 m tall, stands on a 15 m by 20 m shake table. The table moves the way the ground moved at the Takatori station in the 1995 Kobe earthquake, in all three directions. The first story sways, its column bases yield and buckle, and the upper three stories come down onto the folded columns. The colour is the von Mises stress, from blue to deep red at 450 MPa, about the steel's ultimate strength.

The shaking in the video is twice the recorded motion, beyond what the 2007 test at the E-Defense laboratory in Japan subjected the real building to. At the recorded level (--scale 1) the model's first story leans to 0.196 rad and stops, as the real building's did: the test measured 0.19 rad, where safety cables caught it.

python examples/structures/shake_table_collapse.py

The defaults are the video's: twice the record, to 7.8 s of it. The model has 270 000 degrees of freedom and the run takes about 20 minutes on an Apple-silicon Mac. --mesh lean is a coarser mesh and a run of about 15 minutes, but its column walls fold less readily: at 7.8 s the roof has dropped 0.4 m rather than 2.1 m. --no-viewer prints each step's first-story drift and the roof's drop instead of opening the viewer.

The building

Every member is a solid of quadratic hexahedra, one element thick through each plate: the square-tube columns, the wide-flange girders, the plates that tie girders to columns, the base plates, and the concrete floors. The steels are plastic solids whose yield stress and hardening come from coupon tests of the building's own steel; the floors are elastic concrete. Each of the 99 bodies is added with its own material:

# Quadratic hexes: the tube walls are one element thick and have to bend.
for p in parts:
    p.body = trusty.fem.add_hex_solid(world, trusty.make_hex_mesh(p.X, p.H), p.material, p.density,
                                      order=trusty.fem.ElementOrder.QuadraticSerendipity)
    p.X = np.asarray(trusty.fem.positions(world, p.body))      # with the mid-edge nodes

The members are welded together with pins to another body: each weld holds the nodes of one body that lie on another to it. The base plates are welded to the table and the first-story columns to the plates. The columns are not welded to the table, so a column that folds still meets it in contact:

def tie(p, nodes, anchor):
    nodes = [int(i) for i in nodes if int(i) not in held[p.name]]
    held[p.name].update(nodes)
    if nodes:
        trusty.constraints.add_pin(world, p.body, nodes, to=anchor.body)

# Base plates are welded to the table and each first-story column to its plate. The columns are not welded
# to the table, so a folded column still meets it in contact.
for p in parts:
    if p.kind == "base_plate":
        tie(p, np.flatnonzero(p.X[:, 2] < tol), by["table"])
    if p.name.startswith("col1_"):
        tie(p, np.flatnonzero(np.abs(p.X[:, 2] - BASE_PLATE["t"]) < tol), by["base_" + p.name[5:]])
# Each upper column sits on its first-story column.
for p in parts:
    if p.name.startswith("colU_"):
        tie(p, np.flatnonzero(np.abs(p.X[:, 2] - p.meta["z"][0]) < tol), by["col1_" + p.name[5:]])

The shaking

The table is a stiff plate held by a pin with moving targets on its underside. The record is three accelerations, which the script high-passes and integrates twice to the table's displacement, with a second of stillness first so the building settles under gravity:

# The table follows the ground through stiff springs on its underside.
table = next(p for p in parts if p.kind == "table")
nodes = np.flatnonzero(table.X[:, 2] < -TABLE["t"] + 1e-7)
pin = trusty.constraints.add_pin(world, table.body, nodes.tolist(), targets=table.X[nodes],
                                 stiffness=1e12 / len(nodes))

Every step moves the table's targets to the next displacement and steps the world. The world has gravity, and contact with friction between every pair of bodies that are not welded, so the floors come to rest on the folded columns and on the table:

def advance(s: Scene, step: int) -> None:
    """Move the table's pins to where the record puts it at the end of `step`, then step."""
    trusty.constraints.set_pin_targets(s.world, s.table_pin, s.table_rest + s.displacement[step + 1])
    s.world.step()

The floors land at about 7.8 s. After that nearly every step reaches the Newton iteration limit and the stress readout flickers, so the example stops there.

The record is in examples/data/kobe_takatori_1995.txt, with its source in the README beside it.