SwaMiti Surface Development Tool - TURRETDEV4
Cylinder with variable-direction inclined ends
Visit www.swamiti.com for more

CONTENTS
  TURRETDEV4.lsp
  README.txt

USE IN AUTOCAD
1. Extract the ZIP and open a test drawing in model space.
2. APPLOAD TURRETDEV4.lsp.
3. Run TURRETDEV4. All lengths are millimetres; angles are degrees.
4. Follow the input definitions below. Enter accepts the sample defaults.
5. Pick the drawing point. Use ZOOM, Extents to see the result.
6. One UNDO removes a completed run. Esc cancels an input.
7. Rerun after changing inputs: dimensions are non-associative.

ARRANGEMENT AND DIMENSIONS
A circular shell with independent end tilts and an adjustable azimuth between the two high-point directions.
Both end angles are measured FROM A SQUARE plane, perpendicular to the cylinder axis. They describe the cut planes, rather than the cylinder axis inclination from vertical used in TURRETDEV1. L follows the axis between the intersections of the two cut planes with that axis.
Use the same positive axial direction, from bottom towards top, to identify the highest point of each cut. Look from the top towards the bottom and measure φ counterclockwise from the bottom high-point direction to the top high-point direction.
Axial length is not the seam length. Measure L between the cut-plane intersections with the axis. The shortest seam is chosen automatically.

INPUTS
| Symbol | Definition | Sample | Range
 | ID | Internal cylinder diameter | 2,000 mm | > 0
 | t | Uniform wall thickness normal to shell | 12 mm | > 0
 | L | Axial distance between the end planes at the axis | 2,400 mm | Greater than the height amplitude below
 | α₁ | Bottom cut tilt FROM SQUARE | 20° | 0° ≤ α₁ < 90°
 | α₂ | Top cut tilt FROM SQUARE | 30° | 0° ≤ α₂ < 90°
 | φ | CCW high-point direction angle, looking top-to-bottom | 90° | 0°…360°; 360° equals 0°

PLACEMENT
Pick the LEFT DATUM point below the seam; this point need not lie on the cut edge.

CALCULATION METHOD
1Form the mean cylinder and station pitch
Dm = ID + t;   R = Dm/2
C = πDm;   p = C/18
A1 = R tan α1;   A2 = R tan α2
The sample gives Dm = 2,012 mm, C = 6,320.8844 mm, A1 = 366.1541 mm and A2 = 580.8144 mm.

2Combine the two slope directions
With the bottom high point as azimuth zero, the difference between the two plane-slope vectors determines the variation in plate length:
c = A2 cos φ − A1
d = A2 sin φ
V = √(c² + d²)
θ0 = atan2(d, c) + π   (mod 2π)
The sample gives V = 686.5960 mm and shortest-seam azimuth θ₀ = 302.2279° from the bottom high point. When V = 0, choose θ₀ = 180°.

3Evaluate the profiles from that seam
Let u be angular travel counterclockwise from the seam. Both ordinates share the datum through the theoretical lowest bottom point:
B(u) = A1[1 + cos(θ0 + u)]
T(u) = A1 + L + A2 cos(θ0 + u − φ)
H(u) = T − B = L − V cos u

4Set out all stations
ui = i × 20°;   xi = iC/18
Hmin = L − V;   Hmax = L + V
Individual edges are generally asymmetric in the development, while their difference H is symmetric about station 9. φ = 0° reduces to the same-direction case; φ = 180° reduces to the opposite-direction case. If one end is square its high-point direction is arbitrary.
B and T are coordinates from one datum; H = T − B is the actual plate length at a generator. The datum is not a cutting edge. The program includes all 19 stations in dense upper and lower cutting polylines, with a 0.01 mm interpolation bound per edge.

SAMPLE RESULTS
Developed width: 6,320.88 mm - One mean circumference
Division pitch: 351.16 mm - 18 equal intervals
Shortest generator: 1,713.40 mm - At the seam
Longest generator: 3,086.60 mm - At station 9

ASSUMPTIONS AND LIMITATIONS
- True circular cylinder, constant ID and uniform wall thickness.
- All dimensions positive; each tilt is at least 0° and less than 90°.
- L must exceed the height amplitude A or V; otherwise the cutting edges touch or cross.
- The mathematical mean surface uses ID + t.
- The seam lies at the shortest generator; 18 intervals are equal in circumferential distance.
- Weld gaps, overlap, trimming margins and cutting kerf.
- Rolling stretch, springback and material-specific forming compensation.
- Full-thickness cut-face bevels and fit corrections for adjoining components.

The LISP is standalone; the SwaMiti logo is embedded. No preview image or helper file is needed.
