Sign in with STEVE

steve/square-bar

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

v1.0.0 Latest STEVE MIT 2
Isometric
part.py 28 lines · Python · STEVE runtime · checked
Download
1"""Square bar (solid square stock), any size and length: EN 10059 hot-rolled square bars and plain square bar.
2
3A square section of side `side` centred on the origin in XY, extruded along +Z by `length`. Sharp corners: the
4small corner rounding allowed by EN 10059 is not modelled.
5"""
6from steve import Model
7
8side = 10 # mm Side a
9length = 100 # mm Length
10material = "steel" # Material
11
12# material choice: (STEVE material library id, appearance colour)
13MATERIALS = {
14 "steel": ("steel-s235jr", "#8a8d91"), # EN 10025-2 S235JR, hot rolled
15 "stainless-304": ("stainless-304", "#c9ccd0"), # EN 10088 1.4301
16 "aluminium-6061": ("aluminum-6061-t6", "#d4d7db"),
17 "brass": ("brass", "#c9a54a"),
18}
19
20material_id, colour = MATERIALS[material]
21
22model = Model()
23with model.sketch("section", on="XY", name="Section") as sk:
24 sk.center_rect("outline", (0, 0), side, side)
25model.extrude("bar", "section", distance=length, name="Bar")
26model.material(material_id, color=colour)
27result = model.result()
28

Solid square bar: side a, length l, centred on the origin in XY and extruded along +Z. Presets cover EN 10059 hot-rolled square bars (designated by side) and common square bar sizes. Nominal size with sharp corners: rolling tolerances and corner rounding are not modelled.

Square bar (EN 10059 / square stock)

Solid square stock at any side and length: EN 10059 hot-rolled square steel bars and plain square bar.

Geometry

A square section of side a (side) centred on the origin in XY, extruded along +Z by l (length). Sharp corners: the slight corner rounding EN 10059 allows on hot-rolled bars and its tolerances are not modelled.

Parameters

Parameter Meaning
side Side a, mm
length Length l, mm
material steel (S235JR, EN 10025-2), stainless-304 (1.4301), aluminium-6061 (6061-T6), brass

Source

EN 10059:2003, Hot rolled square steel bars for general purposes — Dimensions and tolerances on shape and dimensions (current edition), read from the SIST EN 10059:2004 preview (= EN 10059:2003, https://cdn.standards.iteh.ai/samples/19760/e741290f164a4d8fbf91457482f4111a/SIST-EN-10059-2004.pdf): a square bar is designated by its side a. Table 1 (p. 5) gives the dimension range, 8 to 150 mm; the catalogue's 160, 180 and 200 mm "EN 10059" bars are outside it and have no preset. EN 10059 bars carry no length (mill lengths): their presets are 1000 mm pieces. Plain square bar presets: side × side × length as designated, no standard.

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

  1. 1.0.0 Latest
More #stock
STEVEMIT

steve/flat-bar

Flat bar / rectangular bar, EN 10058 sizes and plain flat stock, any width, thickness and length.

0 180 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
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/round-tube

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

0 70 sizes 0 1 day ago v1.0.0