Skip to content

bolts

structural_sections.fasteners.bolts

Bolt geometry definitions.

This module provides representations of bolt geometry that are independent of material properties (which live in blueprints.materials.fastener_steel). A single BoltElement can hold multiple PlateAttachment records so the same bolt can be referenced from several plates (e.g. lap joints). This keeps the geometry separate from the material while making it straightforward to list bolts later.

Classes:

  • BoltCategory –

    Bolt category, which selects the expression for alpha_b.

  • BoltElement –

    Geometry record for an individual bolt coupled to a material.

  • BoltGapFilling –

    Whether the gap of the bolt hole is filled with resin or not. A filled gap would be an injection bolt.

  • BoltPositionParallel –

    Position of the bolt in the direction of load transfer, which selects the expression for alpha_d.

  • BoltPositionPerpendicular –

    Position of the bolt perpendicular to the direction of load transfer, which selects the expression for k_1.

  • BoltSize –

    Bolt sizes of the ISO metric coarse thread series.

  • HoleType –

    Hole shape, with the reduction on the bearing resistance from note 1 of Table 3.4.

  • PlateAttachment –

    Geometry of a bolt where it passes through a particular plate.

structural_sections.fasteners.bolts.BoltCategory

Bases: StrEnum

Bolt category, which selects the expression for alpha_b.

structural_sections.fasteners.bolts.BoltElement dataclass

BoltElement(
    material: FastenerMaterial,
    size: BoltSize,
    attachments: tuple[PlateAttachment, ...] = tuple(),
    label: str | None = None,
    preload_force: KN | None = None,
)

Geometry record for an individual bolt coupled to a material.

This class intentionally keeps material (a FastenerMaterial) separate from plate-local geometry (the attachments tuple). It is frozen and lightweight so callers can safely create many bolts and keep them in sequences or other containers.

Parameters:

  • material (FastenerMaterial) –

    The material object describing the bolt strength and deformation behaviour.

  • size (BoltSize) –

    Standard ISO metric designation describing the nominal diameter and thread area.

  • attachments (tuple[PlateAttachment, ...], default: tuple() ) –

    One record per plate the bolt passes through. Defaults to an empty tuple.

  • label (str | None, default: None ) –

    Optional human-readable label for the bolt (e.g. "Bolt A1").

  • preload_force (KN | None, default: None ) –

    Prestressing (preload) force applied to the bolt [\(kN\)] (default: None, i.e. not preloaded).

Example

from blueprints.materials.bolts import FastenerMaterial, FastenerClass ... from blueprints.structural_sections.fasteners.bolts import BoltElement, BoltSize, PlateAttachment, HoleType ... ... s235 = SteelStrengthClass.S235 ... bolt = BoltElement( ... material=FastenerMaterial(bolt_class=FastenerClass.CLASS_8_8), ... size=BoltSize.M20, ... attachments=( ... PlateAttachment(plate_id="P1", plate_thickness=20.0, plate_material=s235, hole_type=HoleType.NORMAL), ... PlateAttachment(plate_id="P2", plate_thickness=15.0, plate_material=s235, hole_type=HoleType.OVERSIZED), ... PlateAttachment(plate_id="P3", plate_thickness=10.0, plate_material=s235, hole_type=HoleType.SLOTTED_PERPENDICULAR), ... ), ... label="Bolt A1", ... preload_force=50.0, # kN ... ) ... # Print the plate-provided hole diameter if present, otherwise a bolt-size recommendation. ... print(bolt.attachment_for_plate("P1").d0)

structural_sections.fasteners.bolts.BoltElement.diameter property

diameter: MM

Nominal bolt diameter (mm).

structural_sections.fasteners.bolts.BoltElement.gross_area property

gross_area: MM2

Gross cross-sectional area of the bolt shank (mm^2).

structural_sections.fasteners.bolts.BoltElement.tensile_stress_area property

tensile_stress_area: MM2

Tensile stress area of the threaded portion (mm^2).

structural_sections.fasteners.bolts.BoltElement.attachment_for_plate

attachment_for_plate(plate_id: str) -> PlateAttachment | None

Return the attachment record for the given plate_id, or None if missing.

Source code in blueprints/structural_sections/fasteners/bolts.py
396
397
398
399
400
401
def attachment_for_plate(self, plate_id: str) -> PlateAttachment | None:
    """Return the attachment record for the given `plate_id`, or None if missing."""
    for att in self.attachments:
        if att.plate_id == plate_id:
            return att
    return None

structural_sections.fasteners.bolts.BoltGapFilling

Bases: StrEnum

Whether the gap of the bolt hole is filled with resin or not. A filled gap would be an injection bolt.

structural_sections.fasteners.bolts.BoltParameters dataclass

BoltParameters(
    tensile_stress_area: MM2,
    hole_diameter_normal: MM,
    hole_diameter_oversized: MM,
)

Named container for bolt parameter triplets.

Fields: - tensile_stress_area: tensile stress area A_s in mm^2 - hole_diameter_normal: nominal hole diameter for a normal hole in mm - hole_diameter_oversized: nominal hole diameter for an oversized hole in mm

structural_sections.fasteners.bolts.BoltPositionParallel

Bases: StrEnum

Position of the bolt in the direction of load transfer, which selects the expression for alpha_d.

structural_sections.fasteners.bolts.BoltPositionPerpendicular

Bases: StrEnum

Position of the bolt perpendicular to the direction of load transfer, which selects the expression for k_1.

structural_sections.fasteners.bolts.BoltSize

Bases: StrEnum

Bolt sizes of the ISO metric coarse thread series.

The nominal diameter and the tensile stress area are properties of the thread, not of any Eurocode. They are held here because the resistance formulas of EN 1993-1-8 take them as input: the tensile stress area where the shear plane passes through the threads, and the gross area where it passes through the shank. Also applies to threaded rods and anchors, which share the same thread geometry.

structural_sections.fasteners.bolts.BoltSize.diameter property

diameter: MM

[\(d\)] Nominal diameter of the bolt [\(mm\)].

Returns:

  • MM –

    The number of the designation, so 20 mm for M20.

structural_sections.fasteners.bolts.BoltSize.gross_area property

gross_area: MM2

[\(A\)] Gross cross-section of the bolt shank [\(mm^2\)].

Returns:

  • MM2 –

    The area of a circle of the nominal diameter, which is the area to use where the shear plane passes through the unthreaded shank.

structural_sections.fasteners.bolts.BoltSize.hole_diameter_normal property

hole_diameter_normal: MM

Nominal diameter of a normal bolt hole [\(mm\)].

Returns:

  • MM –

    The diameter of the hole for a normal sized hole.

structural_sections.fasteners.bolts.BoltSize.hole_diameter_oversized property

hole_diameter_oversized: MM

Nominal diameter of an oversized bolt hole [\(mm\)].

Returns:

  • MM –

    The diameter of the oversized hole.

structural_sections.fasteners.bolts.BoltSize.tensile_stress_area property

tensile_stress_area: MM2

[\(A_s\)] Tensile stress area of the bolt [\(mm^2\)].

Returns:

  • MM2 –

    The tensile stress area of the ISO metric coarse thread, which is the area to use for the tension resistance and where the shear plane passes through the threaded portion.

structural_sections.fasteners.bolts.HoleType

Bases: StrEnum

Hole shape, with the reduction on the bearing resistance from note 1 of Table 3.4.

The note reduces the bearing resistance to 0.8 times its value for a bolt in an oversized hole, and to 0.6 times its value for a slotted hole whose long axis is perpendicular to the direction of load transfer. It prints no factor for a slotted hole whose long axis is parallel to that direction, so that case is not offered here.

structural_sections.fasteners.bolts.PlateAttachment dataclass

PlateAttachment(
    plate_id: str,
    plate_thickness: MM | None = None,
    plate_material: SteelStrengthClass = S235,
    p1: MM | None = None,
    p2: MM | None = None,
    e1: MM | None = None,
    e2: MM | None = None,
    e3: MM | None = None,
    e4: MM | None = None,
    hole_type: HoleType = NORMAL,
    bolt_position_parallel: BoltPositionParallel = END,
    bolt_position_perpendicular: BoltPositionPerpendicular = EDGE,
    d0: MM | None = None,
    gap_filling: BoltGapFilling | None = None,
)

Geometry of a bolt where it passes through a particular plate.

This keeps plate-local geometric data (hole diameter, edge/spacing distances, plate thickness) separate from the bolt material and global bolt properties. Multiple attachments allow a single bolt to be referenced from several plates.

Parameters:

  • plate_id (str) –

    Arbitrary identifier for the plate (e.g. a name or index) that is meaningful to the caller. Used to later find the attachment for a specific plate.

  • plate_thickness (MM | None, default: None ) –

    Thickness of the plate the bolt passes through in mm. Optional when unknown.

  • plate_material (SteelStrengthClass, default: S235 ) –

    Material of the plate the bolt passes through. Default is S235.

  • p1 (MM | None, default: None ) –

    Spacing to the next bolt in the loading direction (mm).

  • e1 (MM | None, default: None ) –

    Edge distance to the plate edge in the loading direction (mm).

  • p2 (MM | None, default: None ) –

    Spacing to the next bolt in the direction perpendicular to the load transfer (mm).

  • e2 (MM | None, default: None ) –

    Edge distance to the plate edge in the direction perpendicular to the load transfer (mm).

  • e3 (MM | None, default: None ) –

    Edge distance to the plate edge in the direction perpendicular to the load transfer (mm). This is used for slotted holes where the long axis is perpendicular to the load transfer direction.

  • e4 (MM | None, default: None ) –

    Edge distance to the plate edge in the loading direction (mm). This is used for slotted holes where the long axis is perpendicular to the load transfer direction.

  • hole_type (HoleType, default: NORMAL ) –

    Shape/type of the hole (normal, oversized, slotted perpendicular). Default is normal.

  • bolt_position_parallel (BoltPositionParallel, default: END ) –

    Position of the bolt in the direction of load transfer (end or inner). Default is end.

  • bolt_position_perpendicular (BoltPositionPerpendicular, default: EDGE ) –

    Position of the bolt perpendicular to the direction of load transfer (edge or inner). Default is edge.

  • d0 (MM | None, default: None ) –

    Hole diameter in mm. Automatically set by BoltElement based on hole_type if not provided.

  • gap_filling (BoltGapFilling | None, default: None ) –

    Whether the bolt hole is gap filled (e.g. with resin) or empty.