Sign in with STEVE

steve/round-tube

Round tube, any outside diameter, wall and length; presets from EN 10305-1 and EN 10220 sizes.

v1.0.0 Latest STEVE MIT 0
Isometric
part.py 37 lines · Python · STEVE runtime · checked
Download
1"""Round tube, any outside diameter, wall and length: EN 10305-1 precision steel tubes and EN 10220 tube sizes.
2
3A hollow cylinder of outside diameter `diameter` (D) and wall thickness `wall` (T), its axis along +Z, one end face on
4the XY plane centred on the origin. The bore is D - 2T. Dimensions are nominal; tolerances are not modelled.
5"""
6from steve import Model
7
8diameter = 20 # mm Outside diameter D
9wall = 2 # mm Wall thickness T
10length = 1000 # mm Length
11material = "steel" # Material
12
13# Standard sizes the presets use, "DxT": (standard and table, D, T), mm, nominal. The model takes any D and T.
14SIZES = {
15 "6x1": ("EN 10305-1 Table 5", 6, 1), "8x1": ("EN 10305-1 Table 5", 8, 1), "10x1": ("EN 10305-1 Table 5", 10, 1),
16 "12x1.2": ("EN 10305-1 Table 5", 12, 1.2), "16x1.6": ("EN 10220 Table 1", 16, 1.6),
17 "20x2": ("EN 10305-1 Table 5", 20, 2), "25x2.5": ("EN 10305-1 Table 5", 25, 2.5),
18}
19# material choice: (STEVE material library id, appearance colour)
20MATERIALS = {
21 "steel": ("steel-generic", "#8a8d91"), # E235 (EN 10305-1)
22 "stainless-304": ("stainless-304", "#c9ccd0"), # EN 10088 1.4301
23 "aluminium-6061": ("aluminum-6061-t6", "#d4d7db"),
24}
25
26if not 0 < 2 * wall < diameter:
27 raise ValueError("The wall must be less than half the outside diameter.")
28material_id, colour = MATERIALS[material]
29
30model = Model()
31with model.sketch("section", on="XY", name="Section") as sk:
32 sk.circle("outside", (0, 0), diameter / 2)
33 sk.circle("bore", (0, 0), diameter / 2 - wall)
34model.extrude("tube", "section", distance=length, name="Tube")
35model.material(material_id, color=colour)
36result = model.result()
37

Round tube: a hollow cylinder of outside diameter D and wall thickness T, length l, axis along +Z, one end on the XY plane. Presets cover precision steel tube sizes of EN 10305-1 (Table 5) and one size of EN 10220 (Table 1). The dimensions are the nominal ones: the standards' tolerances are not modelled.

Round tube (EN 10305-1 / EN 10220 sizes)

Round tube at any outside diameter, wall thickness and length. Presets cover the catalogue's generic round tubes, each mapped to a standard tube size.

Geometry

A hollow cylinder of outside diameter D (diameter) and wall thickness T (wall), bore D − 2T, length l (length); its axis along +Z, one end face on the XY plane centred on the origin. Dimensions are nominal: the standards' tolerances are not modelled.

Parameters

Parameter Meaning
diameter Outside diameter D, mm
wall Wall thickness T, mm (less than D / 2)
length Length l, mm
material steel (E235, EN 10305-1), stainless-304 (1.4301), aluminium-6061 (6061-T6)

Sources

  • EN 10305-1:2002 (BS EN 10305-1:2002, incl. Corrigendum 1), Steel tubes for precision applications — Technical delivery conditions — Part 1: Seamless cold drawn tubes, Table 5 "Sizes and tolerances", pages 13–14 (copy consulted: https://www.fushunsteeltube.com/wp-content/uploads/2020/12/EN10305-part1-Steel-tubes-for-precision-applications-Seamless-cold-drawn-tubes.pdf). Cross-checked with Mannesmann Precision Tubes' delivery programme "according to EN 10305-1 and EN 10305-2", pages 1–2 (https://www.mannesmann.com/fileadmin/footage/MEDIA/gesellschaften/mannesmann/documents/products/MPT_Abmessungsprogramm_Nahtlose_gezogene_und_geschweisste_gezogene_Praezisionsstahlrohre.pdf), which agrees on every size below.
  • EN 10220:2002 (BS EN 10220:2002), Seamless and welded steel tubes — Dimensions and masses per unit length, Table 1, page 6 (copy consulted: https://www.haopipe.com/upLoad/news/month_1603/201603120241356601.pdf): OD 16 (series 2) × 1.6, 0.568 kg/m. EN 10305-1 Table 5 has no 1.6 mm wall, so this one size comes from EN 10220.
D × T (mm) Bore (mm) Standard, table Tolerance on D
6 × 1 4 EN 10305-1 Table 5 ±0.08
8 × 1 6 EN 10305-1 Table 5 ±0.08
10 × 1 8 EN 10305-1 Table 5 ±0.08
12 × 1.2 9.6 EN 10305-1 Table 5 ±0.08
16 × 1.6 12.8 EN 10220 Table 1 –
20 × 2 16 EN 10305-1 Table 5 ±0.08
25 × 2.5 20 EN 10305-1 Table 5 ±0.08

The catalogue entries give only the outside diameter and the length. Each diameter is mapped to the standard section whose wall the entry's own reference model has (checked privately by its volume; a match only, nothing taken from it).

Preset list: sizes and lengths of the step.parts catalogue (MIT), see library/NOTICE.md.

  1. 1.0.0 Latest
More #stock
STEVEMIT

steve/hollow-section

Square and rectangular hollow sections (structural tube), EN 10219-2, any size, wall and length.

0 185 sizes 0 1 day ago v1.1.0
STEVEMIT

steve/plate

Rectangular plate blank, any width, length and thickness, in common plate and sheet materials.

4 45 sizes 0 1 day ago v1.0.0
STEVEMIT

steve/square-bar

Square bar, EN 10059 sizes and plain square stock, any side and length.

2 105 sizes 0 1 day ago v1.0.0
STEVEMIT

steve/round-bar

Round bar / round rod, EN 10060 sizes and plain round stock, any diameter and length.

0 145 sizes 0 1 day ago v1.0.0