Skip to content

Bumper crash

The front of a car, a bumper beam on two crash boxes, drives into a rigid barrier at 15 km/h. The barrier covers 40% of the car's width and its face is turned 10 degrees, as in the RCAR low-speed structural test, so the crash box on the struck side takes the blow and folds up. The colour is the plastic strain, from purple where the steel never yielded to yellow at 0.5. The inset follows the struck crash box. The barrier's force peaks at about 93 kN.

python examples/fem/bumper_crash.py

--no-viewer prints the barrier's force against the crush, the car's energy balance, and the struck box's mean crush force next to the superfolding estimate of Wierzbicki and Abramowicz (1983) for a thin-walled square tube.

The front end

The crash boxes are DP600 dual-phase steel and the beam is press-hardened boron steel, each a plastic solid of quadratic hexahedra, one element through the 1.6 mm and 2 mm walls. Two beads pressed into each crash box's wide faces start its first fold. The car behind them is a near-rigid affine body of 1200 kg. Each box is pinned to the beam along its front end and to the car along its rear end, and everything starts at 15 km/h. The barrier is a fixed wall, and every part touches it and the others through contact with friction:

def build_scene(backend: str, speed: float, mass: float) -> Scene:
    world = trusty.World(backend=backend, timestep=DT, time_stepping="bdf2",
                         gravity=(0.0, 0.0, 0.0))      # a few tens of ms: gravity is negligible
    trusty.contact.enable(world, trusty.contact.Config(dhat=DHAT, kappa=KAPPA))
    quadratic = trusty.fem.ElementOrder.QuadraticSerendipity
    dp600 = trusty.HenckyVonMises(youngs_modulus=E, poisson_ratio=NU, yield_stress=BOX_YIELD,
                                  isotropic_hardening=BOX_HARDENING, kinematic_hardening=0.0)
    boron = trusty.HenckyVonMises(youngs_modulus=E, poisson_ratio=NU, yield_stress=BEAM_YIELD,
                                  isotropic_hardening=BEAM_HARDENING, kinematic_hardening=0.0)
    v = np.array([speed / 3.6, 0.0, 0.0])

    y_back, x_back = beam_stations()
    beam_x = lambda y: np.interp(y, y_back, x_back)
    beam_mesh_ = beam_mesh()
    beam = trusty.fem.add_hex_solid(world, beam_mesh_, boron, DENSITY, order=quadratic,
                                    friction_mu=MU)
    box_meshes = [box_mesh(y0, beam_x) for y0 in (-TRACK / 2.0, TRACK / 2.0)]
    boxes = [trusty.fem.add_hex_solid(world, mesh, dp600, DENSITY, order=quadratic,
                                      friction_mu=MU) for mesh in box_meshes]

    rail_front = beam_x(TRACK / 2.0) - BOX_LENGTH
    V, F = car_surface(rail_front)
    car = trusty.affine.add_affine_body(world, V, F, density=mass / volume(V, F),
                                        stiffness=CAR_STIFFNESS, friction_mu=MU)

    # Each box is welded to the beam along its front end and to the car along its rear end.
    rings = []
    for box in boxes:
        rest = np.asarray(trusty.fem.positions(world, box))
        front = np.flatnonzero(np.abs(rest[:, 0] - beam_x(rest[:, 1])) < 1e-8)
        rear = np.flatnonzero(np.abs(rest[:, 0] - rail_front) < 1e-8)
        trusty.constraints.add_pin(world, box, front.tolist(), to=beam)
        trusty.constraints.add_pin(world, box, rear.tolist(), to=car)
        trusty.fem.set_velocity(world, box, np.tile(v, (len(rest), 1)))
        rings.append((front, rear))
    n_beam = len(np.asarray(trusty.fem.positions(world, beam)))
    trusty.fem.set_velocity(world, beam, np.tile(v, (n_beam, 1)))
    trusty.affine.set_velocity(world, car, v)

    wall = barrier_surface(np.asarray(beam_mesh_.vertices))
    trusty.contact.add_wall(world, "barrier", np.asfortranarray(wall[0]),
                            np.asfortranarray(wall[1].astype(np.int32)), friction_mu=MU)
    return Scene(world, beam, boxes, car, V, car_points(rail_front, mass), wall, rings)

Every step is a plain world.step(); the run ends once the car has stopped and starts to roll back off the barrier.