Skip to content

Ball Bearing (608, cutaway) ​

Ball Bearing (608, cutaway), rendered in the brepjs playground
Mechanical · 107 lines▶ Run it in the playground

A 608 deep-groove ball bearing with two rubber seals, in cutaway: two chamfered rings with raceways, seven balls, a riveted cage and the seal lips. The boundary dimensions, the ball set and the mass are published figures, and the kernel volumes give the mass for comparison. The shoulders, the cage and the seals are a display model.

Code ​

This is the full program. The playground runs it in your browser without a change.

ts
import { clone, compound, cut, cutAll, cylinder, fuseAll, intersect, measureVolume, polygon, revolve, rotate, sphere, torus, unwrap } from 'brepjs/quick';
import { color } from 'brepjs/playground';

// 608 deep-groove ball bearing with two rubber seals, in cutaway. The axis is Z and the units are millimetres.
// The boundary dimensions, the ball set and the mass are published figures. The shoulders, the riveted
// cage and the seals are a display model.
interface BearingParams {
  cutaway?: number; // degrees of the outer ring and the seals to cut away (0 = closed bearing)
  seals?: boolean; // false makes an open bearing
}

type P2 = [number, number]; // [r, z]
type Shape = ReturnType<typeof cylinder>;

// Kernel shapes live in WASM memory. Every temporary goes through own(). freeing() runs a build and then frees them all.
const owned: { delete(): void }[] = [];
const own = <T extends { delete(): void }>(s: T): T => {
  owned.push(s);
  return s;
};
const freeing = <T,>(build: () => T): T => { try { return build(); } finally { owned.splice(0).forEach((s) => s.delete()); } }; // also when the build throws

// ---- published figures (608)
const BORE = 8;
const OD = 22;
const WIDTH = 7;
const CHAMFER = 0.3; // smallest corner chamfer of the rings
const BALLS = { count: 7, diameter: 3.969, pitch: 14.7 }; // pitch circle diameter
const CATALOGUE_G = 12.1;
const DENSITY = { steel: 7.81e-3, rubber: 1.2e-3 }; // grams per cubic millimetre

// ---- display model
const GROOVE = 0.52 * BALLS.diameter; // raceway radius, a little more than the ball radius
const LAND = { inner: 5.9, outer: 8.8 }; // shoulder radius of each ring
const SEAT = { radius: 9.7, depth: 1 }; // step in the outer ring that holds a seal
const CAGE = { inner: 6.55, outer: 8.15, sheet: 0.35, clearance: 0.08, rivet: 0.42 }; // two pressed steel halves

// A closed profile in the (r, z) half-plane, revolved about the axis.
const lathe = (pts: P2[], angle = 2 * Math.PI): Shape => {
  const profile = own(unwrap(polygon(pts.map(([r, z]): [number, number, number] => [r, 0, z]))));
  return unwrap(revolve(profile, { axis: [0, 0, 1], angle })) as Shape;
};

const volume = (s: Shape): number => unwrap(measureVolume(s));

function bearing({ cutaway = 110, seals = true }: BearingParams = {}) {
  const h = WIDTH / 2;
  const c = CHAMFER;
  const rp = BALLS.pitch / 2;
  const raceway = own(torus(rp, GROOVE));

  // Rings: a chamfered section, then the raceway cut into its shoulder.
  const innerBlank = own(lathe([
    [BORE / 2, -h + c], [BORE / 2 + c, -h], [LAND.inner - c, -h], [LAND.inner, -h + c],
    [LAND.inner, h - c], [LAND.inner - c, h], [BORE / 2 + c, h], [BORE / 2, h - c],
  ]));
  const seat = h - SEAT.depth;
  const outerBlank = own(lathe([
    [OD / 2, -h + c], [OD / 2, h - c], [OD / 2 - c, h], [SEAT.radius, h], [SEAT.radius, seat], [LAND.outer, seat],
    [LAND.outer, -seat], [SEAT.radius, -seat], [SEAT.radius, -h], [OD / 2 - c, -h],
  ]));
  const inner = unwrap(cut(innerBlank, raceway)) as Shape;
  const outer = own(unwrap(cut(outerBlank, raceway)) as Shape);

  // Balls on the pitch circle.
  const turns = Array.from({ length: BALLS.count }, (_, i) => (360 * i) / BALLS.count);
  const around = (s: Shape, offset = 0): Shape[] => turns.map((a) => own(rotate(s, a + offset, { axis: [0, 0, 1] }) as Shape));
  const ballSet = around(own(sphere(BALLS.diameter / 2, { at: [rp, 0, 0] })));

  // Cage: a flat band with a spherical pocket around each ball, and a rivet between each pair of pockets.
  const pocket = BALLS.diameter / 2 + CAGE.clearance;
  const band = own(lathe([[CAGE.inner - 1, -CAGE.sheet], [CAGE.outer + 1, -CAGE.sheet], [CAGE.outer + 1, CAGE.sheet], [CAGE.inner - 1, CAGE.sheet]]));
  const lumpy = own(unwrap(fuseAll([band, ...around(own(sphere(pocket + CAGE.sheet, { at: [rp, 0, 0] })))])) as Shape);
  const tube = own(lathe([[CAGE.inner, -h], [CAGE.outer, -h], [CAGE.outer, h], [CAGE.inner, h]]));
  const pressed = own(unwrap(intersect(lumpy, tube)) as Shape);
  const cage = unwrap(cutAll(pressed, around(own(sphere(pocket, { at: [rp, 0, 0] }))))) as Shape;
  const rivets = [1, -1].flatMap((side) =>
    around(own(cylinder(CAGE.rivet, 0.25, { at: [rp, 0, side > 0 ? CAGE.sheet : -CAGE.sheet - 0.25] })), 180 / BALLS.count),
  );

  // Seals: a rubber lip in each seat of the outer ring. The lip touches the shoulder of the inner ring.
  const lip: P2[] = [[SEAT.radius, 0], [SEAT.radius, 0.5], [9.2, 0.7], [7, 0.7], [6.3, 0.5], [LAND.inner, 0.4], [LAND.inner, 0.1], [6.4, 0]];
  const rubber = (seals ? [1, -1] : []).map((side) => own(lathe(lip.map(([r, z]): P2 => [r, side * (seat + z)]))));

  // Mass from the kernel volumes of the closed bearing.
  const steel = [inner, outer, cage, ...ballSet, ...rivets].reduce((sum, s) => sum + volume(s), 0);
  const grams = steel * DENSITY.steel + rubber.reduce((sum, s) => sum + volume(s), 0) * DENSITY.rubber;

  // Cutaway: a boolean cut of the outer ring and the seals, centred on +X.
  const sweep = (Math.max(cutaway, 1) * Math.PI) / 180;
  const wedge = own(rotate(own(lathe([[0, -WIDTH], [OD, -WIDTH], [OD, WIDTH], [0, WIDTH]], sweep)), -cutaway / 2, { axis: [0, 0, 1] }) as Shape);
  const open = (s: Shape): Shape => (cutaway > 0 ? (unwrap(cut(s, wedge)) as Shape) : (unwrap(clone(s)) as Shape));

  return { inner, outer: open(outer), balls: compound(ballSet) as Shape, cage, rivets: compound(rivets) as Shape, seals: rubber.map(open), grams };
}

const part = freeing(() => bearing());
console.log('Mass: ' + part.grams.toFixed(1) + ' g from the kernel volumes. The catalogue has ' + CATALOGUE_G + ' g.');

export default [
  color(part.inner, '#c3c9d1'),
  color(part.outer, '#c3c9d1'),
  color(part.balls, '#f2f4f7'),
  color(part.cage, '#d3a956'),
  color(part.rivets, '#8b6a2c'),
  ...part.seals.map((s) => color(s, '#12b5b0')),
];

Functions used ​

clone compound cut cutAll cylinder fuseAll intersect measureVolume polygon revolve rotate sphere torus unwrap color

▶ Run Ball Bearing (608, cutaway) in the playground

Released under the Apache 2.0 License.