# Fins A ring of fins round a body tube, for a rocket, a torpedo or a dart. Each fin is a planform (trapezoidal, clipped delta, delta, swept, elliptical or rectangular) with an edge profile (square, rounded, beveled or an airfoil), canted to spin the body and flared into the tube with a root fillet. The fins stand out of the tube's cylindrical face and fuse into it. ```js import { fins } from '@fluidcad/airfoils'; ``` ## Use ```js // Four airfoil fins at the tail of a Ø40 rocket body. fins(select(face().cylinder()), { rootChord: 70, tipChord: 30, span: 45, sweep: 35, edge: "airfoil" }); // Three clipped deltas, beveled, canted 2° to spin the rocket, 5 up from // the tube's end and filleted into it. fins(select(face().cylinder()), { count: 3, planform: "clipped", rootChord: 80, tipChord: 20, span: 50, edge: "beveled", bevel: 8, cant: 2, fillet: 3, offset: 5, }); // Swept fins, their sweep given as an angle. fins(select(face().cylinder()), { planform: "swept", rootChord: 50, span: 40, sweepBy: "angle", sweepAngle: 40 }); ``` `fins(body, { count, planform, rootChord, tipChord, span, sweepBy, sweep, sweepAngle, edge, thickness, bevel, cant, fillet, offset, phase, flip })`. It adds by default (`.new()` keeps it a body of its own). **Where they stand.** `body` is required: the tube's outside (cylindrical) face. A bore's face is refused. The fins stand evenly round the tube, their root chords along its axis. The roots' trailing edges sit at the face's end and the leading edges point along the tube towards its other end. `offset` moves the fins in from that end, `flip` stands them at the other end pointing the other way, and `phase` turns the ring about the tube. ## Values | Value | Default | What it does | |---|---|---| | `body` | required | The tube's outside (cylindrical) face. | | `count` | 4 | How many fins, 1 to 12, evenly spaced. | | `planform` | `"trapezoid"` | `"trapezoid"` (root, tip, height and sweep), `"clipped"` (a clipped delta: its trailing edge square to the tube), `"delta"` (the clipped delta closed to a point), `"swept"` (a parallelogram: the tip as long as the root), `"elliptic"` or `"rectangle"`. | | `rootChord` | 60 | The fin's length along the tube. | | `tipChord` | 25 | Trapezoidal and clipped delta: the tip's length. It must be over 0 (a point is the delta). | | `span` | 40 | The fin's height, out from the tube. | | `sweepBy` | `"length"` | Trapezoidal and swept: `"length"` (`sweep`) or `"angle"` (`sweepAngle`). | | `sweep` | 30 | How far back the tip's leading edge sits from the root's. | | `sweepAngle` | 35 | Degrees, the leading edge's, from square to the tube. −80 to 80. | | `edge` | `"rounded"` | The edge profile: `"square"`, `"rounded"` (half circles at both edges), `"beveled"` (both edges cut to a point over `bevel`) or `"airfoil"` (a symmetric NACA section). | | `thickness` | 3 | The fin's thickness, under half the root chord. An airfoil fin is that thick at its root and thins with the chord. | | `bevel` | 6 | Beveled: the bevel's length along the chord. | | `cant` | 0 | Degrees, turns each fin about its height, through the middle of its root. −30 to 30. | | `fillet` | 0 | The root fillet: flares the fins into the tube, as large as `fillet` at the tube and gone by twice that out. | | `offset` | 0 | The roots' trailing edges, from the face's end. | | `phase` | 0 | Degrees: turns the ring of fins about the tube. | | `flip` | `false` | Stands the fins at the face's other end, pointing the other way. | ## Buckets | Bucket | What it holds | |---|---| | `endFaces` | Each fin's tip face. | | `sideFaces` | Each fin's two faces, its leading and trailing edges and its root flare. | There are no `startFaces`: the roots sink into the tube and fuse with it. Fins have no generated part: they need a body tube to stand on, so they are a feature of the part that holds the tube.